Revert "Unused fields in WidgetRegisterInfo"
authorZbigniew Kostrzewa <z.kostrzewa@samsung.com>
Wed, 13 Feb 2013 09:03:26 +0000 (10:03 +0100)
committerZbigniew Kostrzewa <z.kostrzewa@samsung.com>
Wed, 13 Feb 2013 09:03:26 +0000 (10:03 +0100)
This reverts commit 19e65d3fdcde442f24e99d4df014d9ccb1bcb74e.

modules/widget_dao/dao/widget_dao.cpp
modules/widget_dao/include/dpl/wrt-dao-ro/config_parser_data.h
modules/widget_dao/include/dpl/wrt-dao-ro/widget_dao_read_only.h

index 65ea027..6529fd0 100644 (file)
@@ -380,8 +380,15 @@ DbWidgetHandle WidgetDAO::registerWidgetInfo(
         row.Set_app_id(*handle);
     }
 
-    row.Set_widget_type(regInfo.webAppType.appType);
-
+    if (regInfo.webAppType == APP_TYPE_UNKNOWN && regInfo.type !=
+        APP_TYPE_UNKNOWN)
+    {
+        // TODO : regInfo.type is temporary code for security.
+        //        This code will be removed.
+        row.Set_widget_type(regInfo.type.appType);
+    } else {
+        row.Set_widget_type(regInfo.webAppType.appType);
+    }
     row.Set_widget_id(widgetConfigurationInfo.widget_id);
     row.Set_defaultlocale(widgetConfigurationInfo.defaultlocale);
     row.Set_widget_version(widgetConfigurationInfo.version);
index f56be55..c6ae0bd 100644 (file)
@@ -299,6 +299,7 @@ class ConfigParserData
     IconsList iconsList;
 
     // tizen id / required platform min version for TIZEN webapp
+    DPL::OptionalString tizenId;
     DPL::OptionalString tizenMinVersionRequired;
     DPL::OptionalString tizenPkgId;
     DPL::OptionalString tizenAppId;
index c2b1de2..a7cd866 100644 (file)
@@ -163,6 +163,7 @@ struct WidgetRegisterInfo
     {}
 
     WidgetType webAppType;
+    WidgetType type; // TODO : This type will be removed.
     DPL::OptionalString guid;
     DPL::OptionalString version;
     DPL::OptionalString minVersion;
@@ -173,6 +174,8 @@ struct WidgetRegisterInfo
     ConfigParserData configInfo;
     LocalizationData localizationData;
 
+    DPL::OptionalString pkgname;
+    WidgetPkgName pkgName;
     TizenPkgId tzPkgid;
     TizenAppId tzAppid;