Remove deprecated API
authorJihoon Chung <jihoon.chung@samsaung.com>
Sun, 4 Aug 2013 07:38:31 +0000 (16:38 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Mon, 5 Aug 2013 13:37:25 +0000 (13:37 +0000)
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Remove deprecated API
Remove registerOrUpdateWidget, backupAndUpdateWidget and
restoreUpdateWidget.
[SCMRequest] N/A

Change-Id: I8b0bfe580ec2ec04b1cad1c1864f5c71d09e896b

src/jobs/widget_install/task_database.cpp

index de10e4a..2f5b786 100644 (file)
@@ -92,13 +92,13 @@ void TaskDatabase::StepWrtDBInsert()
                          "Given tizenId not found for update installation");
             }
 
-            WidgetDAO::backupAndUpdateWidget(
-                m_backAppId,
-                m_context.widgetConfig.tzAppid,
-                m_context.widgetConfig,
-                m_context.widgetSecurity);
-            m_handle = WidgetDAOReadOnly::getHandle(
-                    m_context.widgetConfig.tzAppid);
+            WidgetDAO::updateTizenAppId(m_context.widgetConfig.tzAppid,
+                                        m_backAppId);
+            WidgetDAO::registerWidget(m_context.widgetConfig.tzAppid,
+                                      m_context.widgetConfig,
+                                      m_context.widgetSecurity);
+            m_handle =
+                WidgetDAOReadOnly::getHandle(m_context.widgetConfig.tzAppid);
         } else { //new installation
             LogDebug("Registering widget...");
             WidgetDAO::registerWidget(
@@ -252,8 +252,9 @@ void TaskDatabase::StepAbortDBInsert()
     Try
     {
         if (m_context.isUpdateMode) {
-            WidgetDAO::restoreUpdateWidget(m_backAppId,
-                    m_context.widgetConfig.tzAppid);
+            WidgetDAO::unregisterWidget(m_context.widgetConfig.tzAppid);
+            WidgetDAO::updateTizenAppId(m_backAppId,
+                                        m_context.widgetConfig.tzAppid);
         } else {
             WidgetDAO::unregisterWidget(m_context.widgetConfig.tzAppid);
         }