Update wrt-commons_0.2.54
[framework/web/wrt-commons.git] / modules / widget_dao / include / dpl / wrt-dao-ro / widget_dao_read_only.h
index 9dbd580..db1de98 100644 (file)
@@ -154,23 +154,26 @@ struct WidgetRegisterInfo
         signatureType(SIGNATURE_TYPE_UNIDENTIFIED),
         isFactoryWidget(0),
         isTestWidget(0),
-        configInfo()
+        configInfo(),
+        pType(PKG_TYPE_UNKNOWN)
     {
     }
 
     WidgetType type;
     DPL::OptionalString guid;
     DPL::OptionalString version;
+    DPL::OptionalString minVersion;
     std::string shareHref;
     std::string baseFolder;
     WidgetSignatureType signatureType;
     int isFactoryWidget;
     int isTestWidget;
     ConfigParserData configInfo;
-    Powder::Description powderDescription;
     LocalizationData localizationData;
     DPL::OptionalString pkgname;
     time_t installedTime;
+    PkgType pType;
+    EncryptedFileList encryptedFiles;
 };
 
 typedef std::list<std::string> CertificateChainList;
@@ -284,6 +287,7 @@ class WidgetDAOReadOnly
      * @param[in] widgetHandle application id of widget.
      */
     WidgetDAOReadOnly(DbWidgetHandle widgetHandle);
+    WidgetDAOReadOnly(DPL::OptionalString widgetGUID);
 
     /**
      * Destructor
@@ -680,15 +684,17 @@ class WidgetDAOReadOnly
     // Local storage
     std::string getPrivateLocalStoragePath() const;
 
-    ChildProtection::Record getChildProtection() const;
-
-    Powder::Description getPowderDescription() const;
-
     bool getBackSupported() const;
 
     static bool isWidgetInstalled(DbWidgetHandle handle);
     static bool isWidgetInstalled(DPL::String pkgName);
 
+    /* This method get path of the splash image.
+     *
+     * @return path of the widget's splash image
+     */
+    DPL::OptionalString getSplashImgSrc() const;
+
     CertificateChainList getWidgetCertificate() const;
 
     void getWidgetSettings(WidgetSettings& outWidgetSettings) const;
@@ -701,6 +707,18 @@ class WidgetDAOReadOnly
      */
     void getAppServiceList(
             WidgetApplicationServiceList& outAppServiceList) const;
+
+    /**
+     * This method returns the type of the package.
+     *
+     * @return PkgType
+     * @exception WRT_CONF_ERR_EMDB_FAILURE - Fail to query DB table.
+     * @exception WRT_CONF_ERR_EMDB_NO_RECORD - Can not find matching
+                                                records in DB table.
+     */
+    PkgType getPkgType() const;
+
+    void getEncryptedFileList(EncryptedFileList& filesList) const;
 };
 
 } // namespace WrtDB