} \
else \
{ \
- LogInfo("Setting dev cap " << dev_cap_name << " param: " << \
+ LogDebug("Setting dev cap " << dev_cap_name << " param: " << \
param.name << " to value " << param.value); \
devcapit->devCapParams.push_back(param); \
} \
bool JsFunctionManager::initialize()
{
- LogInfo("JSObjectDeclaration for js functions are intialized");
+ LogDebug("JSObjectDeclaration for js functions are intialized");
JSObjectDeclarationPtr jsPrintObj(
new JSObjectDeclaration(JavaScriptFunctions::jsPrintPtr));
JsFunctionManager::Functions JsFunctionManager::getFunctions()
{
- LogInfo("get standard js fucntions");
+ LogDebug("get standard js fucntions");
static bool initialized = initialize();
(void) initialized;
return m_functions;
// void* data)
//{
// LogDebug("--| ENTER");
-// LogInfo("Event: " << *event);
+// LogDebug("Event: " << *event);
//}
//
//void Manager::onNetConnectionOpen(const NetErr_t error,
//
//void Manager::onNetStatusChange(NetStatusInfo_t* status, void *userData) {
// LogDebug("--| ENTER");
-// LogInfo("Type: " << status->transportType << ", status: " <<
+// LogDebug("Type: " << status->transportType << ", status: " <<
// status->WiFiStatus);
//}
bool PluginManager::loadChild(const string &name) const
{
- LogInfo("loading " << name);
+ LogDebug("loading " << name);
string localUri = m_objectUri;
localUri.append(SEPARATOR).append(name);
if (stat(databaseFile.c_str(), &buffer) != 0) {
//Create fresh database
- LogInfo("Creating database " << databaseFile);
+ LogDebug("Creating database " << databaseFile);
std::fstream file;
file.open(GetWrtWidgetInterfaceDatabaseFilePath(), std::ios_base::in);
JSObjectPtr parent,
JSGlobalContextRef context)
{
- LogInfo("Registration object: " << declaration->getParentName() <<
+ LogDebug("Registration object: " << declaration->getParentName() <<
"<-" << declaration->getName());
Assert(parent && "parent object is NULL");
args->state,
args->width,
args->height));
- LogInfo("softkeyboard event's state: " << args->state);
+ LogDebug("softkeyboard event's state: " << args->state);
// call js callback function for 'softkeyboardchange' js event on each
// frame
frame, eventType, eventObject);
}
} else {
- LogInfo("Not supported custom event type");
+ LogDebug("Not supported custom event type");
return;
}
#endif
const std::string &propertyName,
const JSObjectPtr& propertyObject)
{
- LogInfo("JSObjectSetProperty(" << context << ", \"" << propertyName << "\")");
+ LogDebug("JSObjectSetProperty(" << context << ", \"" << propertyName << "\")");
//create name
JSStringRef name = JSStringCreateWithUTF8CString(propertyName.c_str());
void JSPageSession::Impl::installStandardFunctions()
{
- LogInfo("Installing standard functions...");
+ LogDebug("Installing standard functions...");
//add standard functions
FOREACH(it, JsFunctionManagerSingleton::Instance().getFunctions()) {
m_objectExplorer->registerObject(*it, NULL);
}
- LogInfo("Installing standard functions...[done]");
+ LogDebug("Installing standard functions...[done]");
}
void JSPageSession::Impl::installRootPlugins()
{
- LogInfo("Installing requested root plugins...");
+ LogDebug("Installing requested root plugins...");
PluginContainerSupport::PluginsList rootPlugins =
m_pluginsSupport->getRootPlugins();
installPlugin(*it);
}
- LogInfo("Installing requested root plugins...[done]");
+ LogDebug("Installing requested root plugins...[done]");
}
bool JSPageSession::Impl::installPlugin(PluginModelPtr plugin)
return false;
}
- LogInfo("Install Plugin : " << library->GetFileName());
+ LogDebug("Install Plugin : " << library->GetFileName());
// Register new class
FOREACH(it, *(library->GetClassList()))
}
}
- LogInfo("Install Plugin [done]");
+ LogDebug("Install Plugin [done]");
return true;
}
void JSPageSession::Impl::installRequestedFeatures()
{
- LogInfo("Installing requested widget features...");
+ LogDebug("Installing requested widget features...");
std::list<std::string> allowedFeatures =
m_pluginsSupport->getAllowedFeatures(m_widgetHandle);
installPlugin(*plugin);
}
- LogInfo("requested features installed.");
+ LogDebug("requested features installed.");
}
bool JSPageSession::Impl::loadPluginOnDemand(
}
// //TODO here may be a bug. if plugin contains feature rejected and
// accepted
- // LogInfo("Installing feature : " << widgetFeature.name);
+ // LogDebug("Installing feature : " << widgetFeature.name);
// if (widgetFeature.rejected) {
// LogWarning("This api-feature was rejected");
// return;
return false;
}
- LogInfo("Install Plugin '" << library->GetFileName());
+ LogDebug("Install Plugin '" << library->GetFileName());
if (!(parentObject.instance)) {
LogError("NULL pointer value");
const char* encodedBundle,
const char* theme)
{
- LogInfo(
+ LogDebug(
"set properties of window object " << scaleFactor << ", "
<< encodedBundle << ", " <<
theme);
return;
}
- LogInfo("Request dispatching javascript event");
+ LogDebug("Request dispatching javascript event");
m_objectExplorer->callEventListeners(eventType, data);
}
const char* encodedBundle,
const char* theme)
{
- LogInfo("Starting widget session...");
+ LogDebug("Starting widget session...");
// Check if corresponding session if not already created
if (m_sessionStarted) {
// set scale, bundle as window's property
setCustomProperties(scaleFactor, encodedBundle, theme);
- LogInfo("Starting widget session...[done]");
+ LogDebug("Starting widget session...[done]");
}
void JSPageSession::Impl::stopSession()
{
- LogInfo("Stopping widget session...");
+ LogDebug("Stopping widget session...");
if (!m_sessionStarted) {
LogWarning("Session not started!");
unloadPluginsFromSession();
m_sessionStarted = false;
- LogInfo("Widget session stopped.");
+ LogDebug("Widget session stopped.");
}
void JSPageSession::Impl::unloadPluginsFromSession()
(*pluginIt)->LibraryInstance.Set(PluginPtr());
}
- LogInfo("unloaded " << unloadedLibraries << " unreferenced libraries!");
+ LogDebug("unloaded " << unloadedLibraries << " unreferenced libraries!");
#endif
}
Plugin::~Plugin()
{
- LogInfo("Unloading plugin library: " << m_fileName << "...");
+ LogDebug("Unloading plugin library: " << m_fileName << "...");
// Unload library
if (dlclose(m_libHandle) != 0) {
if (logEnable)
{
- LogInfo("#####");
- LogInfo("##### Plugin: " << fileName << " supports new plugin API");
- LogInfo("#####");
- LogInfo("##### $onWidgetStartProc: " << onWidgetStartProcPtr);
- LogInfo("##### $onWidgetInitProc: " << onWidgetInitProcPtr);
- LogInfo("##### $onWidgetStopProc " << onWidgetStopProcPtr);
- LogInfo("##### $onFrameLoadProc " << onFrameLoadProcPtr);
- LogInfo("##### $onFrameUnloadProc " << onFrameUnloadProcPtr);
- LogInfo("##### $classMap: " << reinterpret_cast<const void *>(rawClassList));
- LogInfo("##### ");
- LogInfo("##### Class map:");
+ LogDebug("#####");
+ LogDebug("##### Plugin: " << fileName << " supports new plugin API");
+ LogDebug("#####");
+ LogDebug("##### $onWidgetStartProc: " << onWidgetStartProcPtr);
+ LogDebug("##### $onWidgetInitProc: " << onWidgetInitProcPtr);
+ LogDebug("##### $onWidgetStopProc " << onWidgetStopProcPtr);
+ LogDebug("##### $onFrameLoadProc " << onFrameLoadProcPtr);
+ LogDebug("##### $onFrameUnloadProc " << onFrameUnloadProcPtr);
+ LogDebug("##### $classMap: " << reinterpret_cast<const void *>(rawClassList));
+ LogDebug("##### ");
+ LogDebug("##### Class map:");
}
const js_entity_definition_t *rawEntityListIterator = rawClassList;
if (logEnable)
{
// Logging
- LogInfo("#####");
- LogInfo("##### [" << rawEntityListIterator->object_name << "]: ");
- LogInfo("##### Interface: " <<
+ LogDebug("#####");
+ LogDebug("##### [" << rawEntityListIterator->object_name << "]: ");
+ LogDebug("##### Interface: " <<
rawEntityListIterator->interface_name);
- LogInfo("##### Parent: " << rawEntityListIterator->parent_name);
+ LogDebug("##### Parent: " << rawEntityListIterator->parent_name);
}
// Register class
{
if (NULL != m_apiOnWidgetStart) {
(*m_apiOnWidgetStart)(widgetId);
- LogInfo("Called!");
+ LogDebug("Called!");
}
}
Assert(NULL != mapping && "NULL mapping interface provided");
if (NULL != m_apiOnWidgetInit) {
(*m_apiOnWidgetInit)(mapping);
- LogInfo("Called!");
+ LogDebug("Called!");
}
}
{
if (NULL != m_apiOnWidgetStop) {
(*m_apiOnWidgetStop)(widgetId);
- LogInfo("Called!");
+ LogDebug("Called!");
}
}
{
if (NULL != m_apiOnFrameLoad) {
(*m_apiOnFrameLoad)(context);
- LogInfo("Called!");
+ LogDebug("Called!");
}
}
{
if (NULL != m_apiOnFrameUnload) {
(*m_apiOnFrameUnload)(context);
- LogInfo("Called!");
+ LogDebug("Called!");
}
}
std::list<std::string> allowedFeatures;
FOREACH(it, features) {
- LogInfo("Loading api-feature: " << it->name);
+ LogDebug("Loading api-feature: " << it->name);
if (it->rejected) {
LogWarning("Api-feature was rejected by ace. (Api-feature name: "
<< it->name << ")");
model.Reset(new PluginModel(handle));
- LogInfo("Model Created. Handle: " <<
+ LogDebug("Model Created. Handle: " <<
handle << ", name: " << model->LibraryName.Get());
m_pluginModels.insert(model);
void PluginLogic::Impl::initSession(int widgetHandle)
{
- LogInfo("init pluginLogic...");
+ LogDebug("init pluginLogic...");
m_pluginsSupport->Initialize(widgetHandle);
const char* encodedBundle,
const char* theme)
{
- LogInfo("Starting widget session...");
+ LogDebug("Starting widget session...");
if (!m_pluginsSupport->isInitialized()) {
m_pluginsSupport->Initialize(widgetHandle);
void PluginLogic::Impl::stopSession(JSGlobalContextRef context)
{
- LogInfo("Stopping widget session...");
+ LogDebug("Stopping widget session...");
auto sessionIt = m_sessions.find(context);
if (sessionIt == m_sessions.end()) {
sessionIt->second->stopSession();
m_sessions.erase(sessionIt);
- LogInfo("Widget session stopped.");
+ LogDebug("Widget session stopped.");
}
bool PluginLogic::Impl::loadPluginOnDemand(
JSGlobalContextRef context
)
{
- LogInfo("Load plugin on demand");
+ LogDebug("Load plugin on demand");
auto sessionIt = m_sessions.find(context);
if (sessionIt == m_sessions.end()) {
const char* encodedBundle,
const char* theme)
{
- LogInfo(
+ LogDebug(
"set properties of window object " << scaleFactor << ", "
<< encodedBundle << ", " <<
theme);
void WindowPropertySupport::setScaleToNavigatorProperty(const double scale)
{
- LogInfo("set window.navigator.scale: " << scale);
+ LogDebug("set window.navigator.scale: " << scale);
m_scale = scale;
void WindowPropertySupport::setBundleToWindowProperty(const char* bundle)
{
- LogInfo("set window.__bundle: " << bundle);
+ LogDebug("set window.__bundle: " << bundle);
if (bundle) {
m_bundle = bundle;
void WindowPropertySupport::setThemeToNavigatorProperty(const char* theme)
{
- LogInfo("set window.navigator.__theme: " << theme);
+ LogDebug("set window.navigator.__theme: " << theme);
if (theme) {
m_theme = theme;
PluginsInstaller::PluginsInstaller() :
m_initialized(false)
{
- LogInfo("PluginsInstaller created.");
+ LogDebug("PluginsInstaller created.");
}
PluginsInstaller::~PluginsInstaller()
{
- LogInfo("PluginsInstaller destroyed.");
+ LogDebug("PluginsInstaller destroyed.");
}
void PluginsInstaller::checkDatabaseTablesExistance()
LogError("Plugins installer not initialized.");
return ReturnStatus::NotInitialized;
}
- LogInfo("Plugin installation started. Checking path: " << libPath);
+ LogDebug("Plugin installation started. Checking path: " << libPath);
if (!PluginUtils::checkPath(libPath)) {
return ReturnStatus::WrongPluginPath;
}
- LogInfo("Plugin path ok. Searching for config file...");
+ LogDebug("Plugin path ok. Searching for config file...");
std::string metaFileName = libPath + DIRECTORY_SEPARATOR +
std::string(WrtDB::GlobalConfig::GetPluginMetafileName());
PluginMetafileData pluginInfo;
pluginInfo.m_libraryName = getLibraryName(libPath);
- LogInfo(
+ LogDebug(
"Config file done. Lib name: " << pluginInfo.m_libraryName
<<
". Searching for installed plugin...");
if (WrtDB::PluginDAO::isPluginInstalled(pluginInfo.m_libraryName)) {
- LogInfo("Plugin already installed.");
+ LogDebug("Plugin already installed.");
return ReturnStatus::AlreadyInstalled;
}
- LogInfo("Plugin not installed. Loading library file...");
+ LogDebug("Plugin not installed. Loading library file...");
PluginObjectsPtr libraryObjects;
PluginHandle pluginHandle;
}
libraryObjects = PluginObjectsPtr(new PluginObjects());
- LogInfo("#####");
- LogInfo("##### Plugin: " << filename << " supports new plugin API");
- LogInfo("#####");
+ LogDebug("#####");
+ LogDebug("##### Plugin: " << filename << " supports new plugin API");
+ LogDebug("#####");
FOREACH(o, *plugin->GetObjects()) {
libraryObjects->addObjects(CAST(*o)->GetParentName(),
return ReturnStatus::LoadingLibraryError;
}
- LogInfo("Library loaded. Registering plugin...");
+ LogDebug("Library loaded. Registering plugin...");
Try
{
pluginHandle =
PluginDAO::registerPlugin(pluginInfo, libPath);
- LogInfo("Plugin registered. Registering features...");
+ LogDebug("Plugin registered. Registering features...");
FOREACH(it, pluginInfo.m_featureContainer)
{
FeatureDAO::RegisterFeature(*it, pluginHandle);
}
- LogInfo("Features registered. Registering objects...");
+ LogDebug("Features registered. Registering objects...");
registerPluginObjects(pluginHandle, libraryObjects);
- LogInfo("Registration done. Resolving dependencies...");
+ LogDebug("Registration done. Resolving dependencies...");
//TODO: can it be replaced with resolvePluginDependencies(handle)
if (!registerAndUpdateInstallation(pluginHandle, libraryObjects)) {
return ReturnStatus::DatabaseError;
}
- LogInfo("Plugin installed successfully.");
+ LogDebug("Plugin installed successfully.");
return ReturnStatus::Success;
}
PluginObjectsPtr PluginsInstaller::loadLibraryFromMetafile(
const std::string& libName) const
{
- LogInfo("Loading library: " << libName);
+ LogDebug("Loading library: " << libName);
void *dlHandle = dlopen(libName.c_str(), RTLD_NOW);
if (dlHandle == NULL) {
PluginObjectsPtr libraryObjects = PluginObjectsPtr(new PluginObjects());
const js_entity_definition_t *rawEntityListIterator = rawEntityList;
- LogInfo("#####");
- LogInfo("##### Plugin: " << libName << " is using deprecated API");
- LogInfo("#####");
+ LogDebug("#####");
+ LogDebug("##### Plugin: " << libName << " is using deprecated API");
+ LogDebug("#####");
while (rawEntityListIterator->parent_name != NULL &&
rawEntityListIterator->object_name != NULL)
{
- LogInfo("##### [" << rawEntityListIterator->object_name << "]: ");
- LogInfo("##### Parent: " << rawEntityListIterator->parent_name);
- LogInfo("#####");
+ LogDebug("##### [" << rawEntityListIterator->object_name << "]: ");
+ LogDebug("##### Parent: " << rawEntityListIterator->parent_name);
+ LogDebug("#####");
libraryObjects->addObjects(rawEntityListIterator->parent_name,
rawEntityListIterator->object_name);
}
if (WrtDB::PluginDAO::isPluginInstalled(pluginData->m_libraryName)) {
- LogInfo("Plugin already installed.");
+ LogDebug("Plugin already installed.");
return ReturnStatus::AlreadyInstalled;
}
Try {
PluginHandle pluginHandle =
PluginDAO::registerPlugin(*pluginData, path);
- LogInfo("Plugin registered. Registering features...");
+ LogDebug("Plugin registered. Registering features...");
FOREACH(it, pluginData->m_featureContainer)
{
FeatureDAO::RegisterFeature(*it, pluginHandle);
}
- LogInfo("Features registered. Registering objects...");
+ LogDebug("Features registered. Registering objects...");
registerPluginObjects(pluginHandle, objects);
- LogInfo("Objects registered. Finishing...");
+ LogDebug("Objects registered. Finishing...");
if (!registerAndUpdateInstallation(pluginHandle, objects)) {
return ReturnStatus::InstallationWaiting;
return ReturnStatus::DatabaseError;
}
- LogInfo("Plugin installed successfully.");
+ LogDebug("Plugin installed successfully.");
return ReturnStatus::Success;
}
return INSTALLATION_ERROR;
}
- LogInfo("Plugin DIRECTORY IS" << PLUGIN_PATH);
+ LogDebug("Plugin DIRECTORY IS" << PLUGIN_PATH);
int return_code;
struct dirent libdir;
struct dirent* result;
int installedPluginsCount = 0;
ReturnStatus ret = ReturnStatus::Unknown;
FOREACH(it, pluginsPaths) {
- LogInfo("Preparing to plugin installation: " << *it);
+ LogDebug("Preparing to plugin installation: " << *it);
ret = installPlugin(*it);
if (ReturnStatus::Success == ret) {
++installedPluginsCount;
- LogInfo("Plugin " << *it << " installed.");
+ LogDebug("Plugin " << *it << " installed.");
} else if (ReturnStatus::InstallationWaiting == ret) {
LogWarning("Plugin not installed. Waiting for dependency");
} else {
printf("\n");
installedPluginsCount += installWaitingPlugins();
m_registry.UnloadAll();
- LogInfo("Installed " << installedPluginsCount
+ LogDebug("Installed " << installedPluginsCount
<< " plugins of total: " << pluginsPaths.size());
return installedPluginsCount;
}
PluginsInstaller::OptionalPluginMetafileData PluginsInstaller::parseMetafile(
const std::string& path) const
{
- LogInfo("Plugin Config file::" << path);
+ LogDebug("Plugin Config file::" << path);
Try
{
PluginMetafileData pluginInfo;
int main(int /*argc*/, char */*argv*/[])
{
DPL::Log::LogSystemSingleton::Instance().SetTag("PLUGINS_INSTALLER");
- LogInfo("Plugins installation started.");
+ LogDebug("Plugins installation started.");
printf("Installing plugins...\n");
PluginsInstallerSingleton::Instance().initialize();
PluginsInstallerSingleton::Instance().deinitialize();
printf("Completed: %d plugins installed.\n", installed);
- LogInfo("All plugins installed successfuly");
+ LogDebug("All plugins installed successfuly");
return 0;
}
void* /*event_info*/,
void* data)
{
- LogInfo("ButtonCallback");
+ LogDebug("ButtonCallback");
Assert(m_initialized);
AnswerCallbackData answerData;
EvasObject getBaseObject()
{
if (getExternalCanvas() == NULL) {
- LogInfo("Create old style popup");
+ LogDebug("Create old style popup");
EvasObject win(elm_win_add(NULL, "Popup", ELM_WIN_DIALOG_BASIC));
elm_win_borderless_set(win, EINA_TRUE);
elm_win_alpha_set(win, EINA_TRUE);
evas_object_show(win);
return win;
} else {
- LogInfo("Create new style popup");
+ LogDebug("Create new style popup");
EvasObject win(getExternalCanvas());
evas_object_show(win);
return win;
// show buution
switch (buttonObjectList.size()) {
case 0:
- LogInfo("no button");
+ LogDebug("no button");
break;
case 1:
DoRender(buttonObjectList.at(0),
void WrtPopup::OnStop()
{
- LogInfo("On Stop");
+ LogDebug("On Stop");
}
void WrtPopup::OnCreate()
if (!openPipes()) {
PostEvent(QuitEvent());
}
- LogInfo("On Create");
+ LogDebug("On Create");
}
void WrtPopup::OnResume()
return -1;
}
- LogInfo("Starting tests");
+ LogDebug("Starting tests");
WrtDB::WrtDatabase::attachToThreadRW();