signatureType(SIGNATURE_TYPE_UNIDENTIFIED),
isFactoryWidget(0),
isTestWidget(0),
- configInfo()
+ configInfo(),
+ pType(PKG_TYPE_UNKNOWN)
{
}
LocalizationData localizationData;
DPL::OptionalString pkgname;
time_t installedTime;
+ PkgType pType;
};
typedef std::list<std::string> CertificateChainList;
* @param[in] widgetHandle application id of widget.
*/
WidgetDAOReadOnly(DbWidgetHandle widgetHandle);
+ WidgetDAOReadOnly(DPL::OptionalString widgetGUID);
/**
* Destructor
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;
*/
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;
};
} // namespace WrtDB