From: Jan Olszak Date: Thu, 3 Jan 2013 14:41:42 +0000 (+0100) Subject: Changed PkgName type from Optional to String PART 5 X-Git-Tag: submit/trunk/20130124.065648~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=62f52cc871aacbe3f0c49408d146a857025b85d0;p=platform%2Fframework%2Fweb%2Fwrt-commons.git Changed PkgName type from Optional to String PART 5 [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 --- diff --git a/modules/widget_dao/dao/widget_dao.cpp b/modules/widget_dao/dao/widget_dao.cpp index e078797..1c73f94 100644 --- a/modules/widget_dao/dao/widget_dao.cpp +++ b/modules/widget_dao/dao/widget_dao.cpp @@ -96,15 +96,7 @@ void WidgetDAO::setProperty( } } -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 { diff --git a/modules/widget_dao/dao/widget_dao_read_only.cpp b/modules/widget_dao/dao/widget_dao_read_only.cpp index ade490b..7adaf41 100644 --- a/modules/widget_dao/dao/widget_dao_read_only.cpp +++ b/modules/widget_dao/dao/widget_dao_read_only.cpp @@ -413,16 +413,6 @@ WidgetPkgNameList WidgetDAOReadOnly::getPkgnameList() 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(); - } - SQL_CONNECTION_EXCEPTION_HANDLER_END("Failed to get Pkgname list") -} DbWidgetDAOReadOnlyList WidgetDAOReadOnly::getWidgetList() { @@ -528,11 +518,6 @@ WidgetGUID WidgetDAOReadOnly::getGUID() const return row.Get_widget_id(); } -DPL::OptionalString WidgetDAOReadOnly::getPkgname() const -{ - return DPL::OptionalString(getPkgName()); -} - DPL::OptionalString WidgetDAOReadOnly::getDefaultlocale() const { WidgetInfoRow row = getWidgetInfoRow(m_widgetHandle); diff --git a/modules/widget_dao/include/dpl/wrt-dao-ro/common_dao_types.h b/modules/widget_dao/include/dpl/wrt-dao-ro/common_dao_types.h index 444f176..3620658 100644 --- a/modules/widget_dao/include/dpl/wrt-dao-ro/common_dao_types.h +++ b/modules/widget_dao/include/dpl/wrt-dao-ro/common_dao_types.h @@ -237,7 +237,6 @@ typedef std::multiset DbWidgetFeatureSet; typedef std::list DbWidgetHandleList; typedef std::list WidgetPkgNameList; //TODO: this cannot be null -> appropriate changes in db schema needed -typedef std::list WidgetPkgNameList_TEMPORARY_API; //TODO: this cannot be null -> appropriate changes in db schema needed class WidgetDAOReadOnly; //forward declaration typedef std::shared_ptr WidgetDAOReadOnlyPtr; diff --git a/modules/widget_dao/include/dpl/wrt-dao-ro/widget_dao_read_only.h b/modules/widget_dao/include/dpl/wrt-dao-ro/widget_dao_read_only.h index f454637..8be742c 100644 --- a/modules/widget_dao/include/dpl/wrt-dao-ro/widget_dao_read_only.h +++ b/modules/widget_dao/include/dpl/wrt-dao-ro/widget_dao_read_only.h @@ -373,15 +373,6 @@ class WidgetDAOReadOnly /** - * 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 @@ -574,7 +565,6 @@ class WidgetDAOReadOnly * @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. diff --git a/modules/widget_dao/include/dpl/wrt-dao-rw/widget_dao.h b/modules/widget_dao/include/dpl/wrt-dao-rw/widget_dao.h index 3f7b819..3137c24 100644 --- a/modules/widget_dao/include/dpl/wrt-dao-rw/widget_dao.h +++ b/modules/widget_dao/include/dpl/wrt-dao-rw/widget_dao.h @@ -132,8 +132,7 @@ class WidgetDAO : public WidgetDAOReadOnly /* 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