[Issue] Deleting temporary API.
[Bug] N/A
[Cause] N/A
[Solution] Changed Pkgname type, changed api methods.
[Verification] Build commons, installer. Run all tests.
Change-Id: If76af2c0b9655260a8b35883bf693e30128cb66a
}
}
-void WidgetDAO::setPkgName(const DPL::OptionalString& pkgName)
-{
-
- // if(!!pkgName)
- setPkgName_TEMPORARY_API(*pkgName);
-}
-
-
-void WidgetDAO::setPkgName_TEMPORARY_API(const WidgetPkgName& pkgName)
+void WidgetDAO::setPkgName(const WidgetPkgName& pkgName)
{
SQL_CONNECTION_EXCEPTION_HANDLER_BEGIN
{
SQL_CONNECTION_EXCEPTION_HANDLER_END("Failed to get Pkgname list")
}
-WidgetPkgNameList_TEMPORARY_API WidgetDAOReadOnly::getPkgnameList_TEMPORARY_API()
-{
- LogDebug("Getting Pkgname List ");
- SQL_CONNECTION_EXCEPTION_HANDLER_BEGIN
- {
- WRT_DB_SELECT(select, WidgetInfo, &WrtDatabase::interface())
- return select->GetValueList<WidgetInfo::pkgname>();
- }
- SQL_CONNECTION_EXCEPTION_HANDLER_END("Failed to get Pkgname list")
-}
DbWidgetDAOReadOnlyList WidgetDAOReadOnly::getWidgetList()
{
return row.Get_widget_id();
}
-DPL::OptionalString WidgetDAOReadOnly::getPkgname() const
-{
- return DPL::OptionalString(getPkgName());
-}
-
DPL::OptionalString WidgetDAOReadOnly::getDefaultlocale() const
{
WidgetInfoRow row = getWidgetInfoRow(m_widgetHandle);
typedef std::list<DbWidgetHandle> DbWidgetHandleList;
typedef std::list<WidgetPkgName> WidgetPkgNameList; //TODO: this cannot be null -> appropriate changes in db schema needed
-typedef std::list<WidgetPkgName> WidgetPkgNameList_TEMPORARY_API; //TODO: this cannot be null -> appropriate changes in db schema needed
class WidgetDAOReadOnly; //forward declaration
typedef std::shared_ptr<WidgetDAOReadOnly> WidgetDAOReadOnlyPtr;
/**
- * This method returns the Package name of the widget.
- *
- * @return pkgname
- * @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.
- */
- DPL::OptionalString getPkgname() const;
-
- /**
* This method returns the defaultlocale for the widget.
*
* @return defaultlocale
* @return list of pkgname of installed packages
*/
static WidgetPkgNameList getPkgnameList();
- static WidgetPkgNameList_TEMPORARY_API getPkgnameList_TEMPORARY_API();
/**
* This method returns a list of all the installed widgets.
/* set PkgName
*/
- void setPkgName(const DPL::OptionalString& pkgName);
- void setPkgName_TEMPORARY_API(const WidgetPkgName& pkgName);
+ void setPkgName(const WidgetPkgName& pkgName);
/* This function will update of api-feature status.
* If status is true (feature rejected) plugin connected with this