#include <dpl/event/model.h>
#include <dpl/event/property.h>
#include <dpl/optional.h>
+#include <string>
#include "widget_data_types.h"
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
*/
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.
*/
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;
};