update wrt_0.8.107
[platform/framework/web/wrt.git] / src / domain / widget_model.h
index a768086..d0f4f82 100644 (file)
@@ -25,6 +25,7 @@
 #include <dpl/event/model.h>
 #include <dpl/event/property.h>
 #include <dpl/optional.h>
+#include <string>
 
 #include "widget_data_types.h"
 
@@ -166,44 +167,11 @@ class WidgetModel : public DPL::Event::Model
     DPL::Event::Property<OptionalWidgetIcon> Icon;
 
     /**
-     * @brief Widget name if running
+     * @brief Widget splash image src
      */
-    DPL::Event::Property<DPL::OptionalString> RunningName;
-
-    /**
-     * @brief Widget icon if running
-     */
-    DPL::Event::Property<OptionalWidgetIcon> RunningIcon;
-
-    /**
-     * @brief Start URL for widget if running
-     */
-    DPL::Event::Property<DPL::OptionalString> RunningStartURL;
-
-    /**
-     * @brief Widget short name  for widget if running
-     */
-    DPL::Event::Property<DPL::OptionalString> RunningShortName;
-
-    /**
-     * @brief Widget description for widget if running
-     */
-    DPL::Event::Property<DPL::OptionalString> RunningDescription;
-
-    /**
-     * @brief Widget license
-     */
-    DPL::Event::Property<DPL::OptionalString> RunningLicense;
-
-    /**
-     * @brief Widget license href
-     */
-    DPL::Event::Property<DPL::OptionalString> RunningLicenseHref;
-
-    /**
-     * @brief Start URL information for widget
-     */
-    DPL::Event::Property<OptionalWidgetStartFileInfo> RunningStartFileInfo;
+    DPL::Event::Property<DPL::OptionalString,
+                  DPL::Event::PropertyReadOnly,
+                  DPL::Event::PropertyStorageDynamicCached> SplashImg;
 
     /**
      * @brief window mode
@@ -217,12 +185,7 @@ class WidgetModel : public DPL::Event::Model
      */
     DPL::Event::Property<DPL::String,
                   DPL::Event::PropertyReadOnly,
-                  DPL::Event::PropertyStorageDynamicCached> PkgName;
-
-    /**
-     * @brief Current widget language tags
-     */
-    DPL::Event::Property<LanguageTagsList> LanguageTags;
+                  DPL::Event::PropertyStorageDynamicCached> TizenId;
 
     /**
      * @brief Minimum of the WAC Engine Standard required to run widget.
@@ -278,14 +241,15 @@ class WidgetModel : public DPL::Event::Model
      */
     DPL::Event::Property<WidgetApplicationServiceList> AppServiceList;
 
-    WidgetModel(const WidgetHandle &handle);
+    WidgetModel(const std::string &tizenId);
 
   private:
     // Custom read write delegates
-    static DPL::String           readPkgName(DPL::Event::Model *model);
+    static DPL::String           readTizenId(DPL::Event::Model *model);
     static WidgetStandard        readStandard(DPL::Event::Model *model);
     static OptionalWidgetVersion readVersion(DPL::Event::Model *model);
     static WidgetStorageSize     getApplicationStorage(DPL::Event::Model *model);
+    static DPL::String           getTimestamp();
 
     WidgetHandle getHandle() const;
 };