[Release] wrt-commons_0.2.145
[framework/web/wrt-commons.git] / modules / widget_dao / include / dpl / wrt-dao-rw / widget_dao.h
index 42fb635..710249e 100644 (file)
@@ -87,37 +87,8 @@ class WidgetDAO : public WidgetDAOReadOnly
         const WidgetRegisterInfo &pWidgetRegisterInfo,
         const IWidgetSecurity &widgetSecurity);
 
-    /**
-     * This method re-registers the widget information to the DB when it is
-     * installed.
-     *
-     * It performs unregistration and new registration of widget in db in one
-     * transaction.
-     *
-     * @see WidgetRegisterInfo
-     * @param[in] tzAppId  Widget tizen app id that will be registered.
-     * @param[in] pWidgetRegisterInfo    Specified the widget's information
-     * needed to be registered.
-     * @param[in] widgetSecurity   Widget's security certificates.
-     */
-    static void registerOrUpdateWidget(
-        const TizenAppId & tzAppId,
-        const WidgetRegisterInfo &widgetRegInfo,
-        const IWidgetSecurity &widgetSecurity);
-
-    /* This method backup widget information and update new widget information
-     * for restore widget information
-     */
-    static void backupAndUpdateWidget(
-        const TizenAppId & oldAppId,
-        const TizenAppId & newAppId,
-        const WidgetRegisterInfo &widgetRegInfo,
-        const IWidgetSecurity &widgetSecurity);
-
-    static void restoreUpdateWidget(
-        const TizenAppId & oldAppId,
-        const TizenAppId & newAppId);
-
+    static void updateTizenAppId(const TizenAppId & fromAppId,
+                                 const TizenAppId & toAppId);
     /**
      * This method removes a widget's information from EmDB.
      *
@@ -126,9 +97,6 @@ class WidgetDAO : public WidgetDAOReadOnly
      */
     static void unregisterWidget(const TizenAppId & tzAppId);
 
-    static void unregisterWidget(WrtDB::DbWidgetHandle handle) __attribute__((
-                                                                                 deprecated));
-
     /* This method removes widget property
      */
     void removeProperty(const PropertyDAOReadOnly::WidgetPropertyKey &key);
@@ -234,20 +202,14 @@ class WidgetDAO : public WidgetDAOReadOnly
         const IWidgetSecurity &widgetSecurity,
         const DPL::Optional<DbWidgetHandle> handle =
             DPL::Optional<DbWidgetHandle>());
-    static void unregisterWidgetInternal(
-        const TizenAppId & tzAppId);
-
-    static void updateWidgetAppIdInternal(
-        const TizenAppId & fromAppId,
-        const TizenAppId & toAppId);
-
+    static void unregisterWidgetInternal(const TizenAppId & tzAppId);
     static void insertAppControlInfo(DbWidgetHandle handle,
-                                             DPL::String src,
-                                             DPL::String operation,
-                                             DPL::String uri,
-                                             DPL::String mime,
-                                             unsigned index,
-                                             unsigned disposition);
+                                     DPL::String src,
+                                     DPL::String operation,
+                                     DPL::String uri,
+                                     DPL::String mime,
+                                     unsigned index,
+                                     unsigned disposition);
 };
 } // namespace WrtDB