#include "plugin_logic.h"
#include <dpl/assert.h>
-#include <dpl/scoped_array.h>
#include <dpl/log/secure_log.h>
#include <dpl/foreach.h>
#include <dpl/singleton_impl.h>
#include <dpl/wrt-dao-ro/widget_dao_read_only.h>
#include <dpl/wrt-dao-ro/common_dao_types.h>
#include <dpl/wrt-dao-ro/global_config.h>
+#include <dpl/wrt-dao-ro/wrt_db_types.h>
#include <JavaScriptCore/JavaScript.h>
private:
///< Widget handle using this session
- int m_widgetHandle;
+ WidgetHandle m_widgetHandle;
//view for this session
JSGlobalContextRef m_context;
~Impl();
// Widget session
- void startSession(int widgetHandle,
+ void startSession(WidgetHandle widgetHandle,
JSGlobalContextRef view,
double scaleFactor,
const char* encodedBundle,
JSPageSession::Impl::~Impl()
{
if (m_sessionStarted) {
- LogError("Must stop widget session before exit!");
+ _E("Must stop widget session before exit!");
stopSession();
}
// accepted
// LogDebug("Installing feature : " << widgetFeature.name);
// if (widgetFeature.rejected) {
- // LogWarning("This api-feature was rejected");
+ // _W("This api-feature was rejected");
// return;
// }
//
if (!parent->getObject()) {
_E("NULL pointer value");
- assert(false);
+ Assert(false);
return false;
}
m_objectExplorer->callEventListeners(eventType, data);
}
-void JSPageSession::Impl::startSession(int widgetHandle,
+void JSPageSession::Impl::startSession(WidgetHandle widgetHandle,
JSGlobalContextRef context,
double scaleFactor,
const char* encodedBundle,
void JSPageSession::Impl::performLibrariesUnload()
{
#if 0
- LogDebug("Perform library unload");
+ _D("Perform library unload");
size_t unloadedLibraries = 0;
FOREACH(pluginIt, m_loadedPlugins)
{
- LogDebug("Preparing library: " << (*pluginIt)->LibraryName.Get());
+ _D("Preparing library: %s", (*pluginIt)->LibraryName.Get().c_str());
- PluginPtr plugin = (*pluginIt)->LibraryInstance.Get();
+ PluginPtr plugin = (*pluginIt)->LibraryInstance.get();
if (!plugin) {
- LogWarning("Library not loaded " << (*pluginIt)->LibraryName.Get());
+ _W("Library not loaded %s", (*pluginIt)->LibraryName.Get().c_str());
continue;
}
unloadedLibraries++;
m_objectExplorer->unloadFrame(context);
}
-void JSPageSession::startSession(int widgetHandle,
+void JSPageSession::startSession(WidgetHandle widgetHandle,
JSGlobalContextRef ctx,
double scaleFactor,
const char* encodedBundle,