m_featureModels.clear();
}
-void PluginContainerSupport::Initialize(int widgetHandle)
+void PluginContainerSupport::Initialize(WidgetHandle widgetHandle)
{
if (isInitialized() == true && m_widgetHandle != widgetHandle) {
// re-initialize required
}
std::list<std::string> PluginContainerSupport::getAllowedFeatures(
- int widgetHandle) const
+ WidgetHandle widgetHandle) const
{
//TODO it has to return LIST NOT SET!!!
WidgetDAOReadOnly widgetDao(widgetHandle);
std::list<std::string> allowedFeatures;
FOREACH(it, features) {
- _D("Loading api-feature: %s", DPL::ToUTF8String(it->name).c_str());
+ _D("Loading api-feature: %ls", it->name.c_str());
if (it->rejected) {
- _W("Api-feature was rejected by ace. (Api-feature name: %s)",
+ _W("Api-feature was rejected by ace. (Api-feature name: %ls)",
it->name.c_str());
continue;
}
return allowedFeatures;
}
-void PluginContainerSupport::readAllowedPlugins(int widgetHandle)
+void PluginContainerSupport::readAllowedPlugins(WidgetHandle widgetHandle)
{
std::list<std::string> allowedFeatures;
auto requested = getAllowedFeatures(widgetHandle);
}
}
-void PluginContainerSupport::readRootPlugins(int widgetHandle)
+void PluginContainerSupport::readRootPlugins(WidgetHandle widgetHandle)
{
WidgetDAOReadOnly dao(widgetHandle);
WidgetType appType = dao.getWidgetType();
return;
}
- model.Reset(new PluginModel(handle));
-
+ Try {
+ model.reset(new PluginModel(handle));
+ } Catch(WrtDB::PluginDAOReadOnly::Exception::PluginNotExist) {
+ // database changed between receiving plugin handle and creating PluginModel
+ _E("Failed to create PluginModel - database may be changed");
+ return;
+ }
\r_D("Model Created. Handle: %d, name: %s",
handle,
model->LibraryName.Get().c_str());