Deleted factory_widget, so had to remove isDeletable and places where it was used.
authorJan Olszak <j.olszak@samsung.com>
Mon, 22 Oct 2012 12:14:56 +0000 (14:14 +0200)
committerJihoon Chung <jihoon.chung@samsung.com>
Tue, 30 Oct 2012 08:14:15 +0000 (17:14 +0900)
[Issue#] N/A
[Problem] factory_widget not used anymore
[Cause] N/A
[Solution] Deleted factory_widget, so had to remove isDeletable and places where it was used.
[Verification] Build wrt. idDeletable should not be used anyware.

src/common/wrt_error.h
src/domain/widget_model.cpp
src/domain/widget_model.h

index 3ae0cf2..fae6dfd 100644 (file)
@@ -111,8 +111,7 @@ enum WrtError
     WRT_WM_ERR_REMOVE_FILES_FAILED = WRT_WM_ERRCODE + WRT_ERROR_SET(0x0e),
     WRT_WM_ERR_ALREADY_LATEST = WRT_WM_ERRCODE + WRT_ERROR_SET(0x0f),
     WRT_WM_ERR_UPDATE_CANCEL = WRT_WM_ERRCODE + WRT_ERROR_SET(0x10),
-    WRT_WM_ERR_IS_FACTORY_WIDGET = WRT_WM_ERRCODE + WRT_ERROR_SET(0x11),
-    WRT_WM_ERR_INVALID_APP_ID = WRT_WM_ERRCODE + WRT_ERROR_SET(0x12),
+    WRT_WM_ERR_INVALID_APP_ID = WRT_WM_ERRCODE + WRT_ERROR_SET(0x11),
 
     /* Access Control Manager */
     WRT_SAI_ERR_INIT_ACE_FAILED = WRT_SAI_ERRCODE + WRT_ERROR_SET(0x01)
@@ -167,7 +166,6 @@ enum IGError
     ERR_WIDGET_REMOVE_FILES_FAILED = WRT_WM_ERR_REMOVE_FILES_FAILED,
     ERR_WIDGET_IS_LATEST = WRT_WM_ERR_ALREADY_LATEST,
     ERR_WIDGET_UPDATE_CANCEL = WRT_WM_ERR_UPDATE_CANCEL,
-    ERR_WIDGET_IS_FACTORY_WIDGET = WRT_WM_ERR_IS_FACTORY_WIDGET,
     ERR_WIDGET_INVALID_APP_ID = WRT_WM_ERR_INVALID_APP_ID,
     ERR_WIDGET_NONE_FILES_EXIST = WRT_WM_ERRCODE + WRT_ERROR_SET(0x13),
     ERR_WIDGET_INSTALL_SEARCH_EXCEPTION = WRT_WM_ERRCODE + WRT_ERROR_SET(0x14),
index 4b4158d..5b29c82 100644 (file)
@@ -129,14 +129,6 @@ WidgetModel::WidgetModel(const std::string &tizenId) :
                        DPL::Event::PropertyStorageDynamicCached>::ReadDelegateType) &
         BindToWidgetDAO<bool, &WidgetDAOReadOnly::isTestWidget>::Get),
 
-    IsDeletable(
-        this,
-        //TODO this type has to be here now, as Property constructor is wrongly
-        //chosen
-        (DPL::Event::Property<bool,
-                       DPL::Event::PropertyReadOnly,
-                       DPL::Event::PropertyStorageDynamicCached>::ReadDelegateType) &
-        BindToWidgetDAO<bool, &WidgetDAOReadOnly::isDeletable>::Get),
     SettingList(this),
     AppServiceList(this)
 {
index d0f4f82..bd5d504 100644 (file)
@@ -230,9 +230,6 @@ class WidgetModel : public DPL::Event::Model
                   DPL::Event::PropertyReadOnly,
                   DPL::Event::PropertyStorageDynamicCached> IsTestWidget;
 
-    DPL::Event::Property<bool,
-                  DPL::Event::PropertyReadOnly,
-                  DPL::Event::PropertyStorageDynamicCached> IsDeletable;
 
     DPL::Event::Property<WidgetSettingList> SettingList;