Implementation new appcontrol policy
authorJongTaeOh <jongtae.oh@samsung.com>
Tue, 2 Apr 2013 07:32:38 +0000 (16:32 +0900)
committerJongTaeOh <jongtae.oh@samsung.com>
Tue, 2 Apr 2013 07:32:38 +0000 (16:32 +0900)
Change-Id: Idcbfeef8f309e915febd8f2f31e074e65a7644c6

inc/MpTypes.h
src/MpAllListPanel.cpp
src/MpArtistContentListForm.cpp
src/MpFolderContentListForm.cpp
src/MpSetAsPopup.cpp

index 8322eeb..db9ae6c 100644 (file)
@@ -359,8 +359,10 @@ static const Tizen::Base::String RENAME_BG_LABEL = L"RenameBgLabel";
 static const Tizen::Base::String APPCONTROL_KEY_PATH = L"http://tizen.org/appcontrol/data/path";
 static const Tizen::Base::String APPCONTROL_KEY_SOCIAL_ITEM_ID = L"http://tizen.org/appcontrol/data/social/item_id";
 static const Tizen::Base::String APPCONTROL_KEY_SELECTION_MODE = L"http://tizen.org/appcontrol/data/selection_mode";
+static const Tizen::Base::String APPCONTROL_KEY_SOCIAL_ITEM_TYPE = L"http://tizen.org/appcontrol/data/social/item_type";
 static const Tizen::Base::String APPCONTROL_KEY_SOCIAL_RESULT_TYPE = L"http://tizen.org/appcontrol/data/social/result_type";
 static const Tizen::Base::String APPCONTROL_OPTION_SINGLE = L"single";
+static const Tizen::Base::String APPCONTROL_OPTION_PERSON = L"person";
 static const Tizen::Base::String APPCONTROL_OPTION_ITEM_ID = L"item_id";
 
 static const Tizen::Base::String SHARE_BUTTON_NAME = L"ShareButton";
index c39591c..c0db300 100644 (file)
@@ -323,6 +323,7 @@ AllListPanel::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
                        HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
                        pDataList->Construct();
                        pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_SELECTION_MODE), new (std::nothrow) String(APPCONTROL_OPTION_SINGLE));
+                       pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_SOCIAL_ITEM_TYPE), new (std::nothrow) String(APPCONTROL_OPTION_PERSON));
                        pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_SOCIAL_RESULT_TYPE), new (std::nothrow) String(APPCONTROL_OPTION_ITEM_ID));
 
                        pAppControl->Start(null, null, pDataList, this);
index 2ac297f..041f187 100644 (file)
@@ -933,6 +933,7 @@ ArtistContentListForm::EventHandlerContextMenuItemCaller(void)
        }
 
        pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_SELECTION_MODE), new (std::nothrow) String(APPCONTROL_OPTION_SINGLE));
+       pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_SOCIAL_ITEM_TYPE), new (std::nothrow) String(APPCONTROL_OPTION_PERSON));
        pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_SOCIAL_RESULT_TYPE), new (std::nothrow) String(APPCONTROL_OPTION_ITEM_ID));
 
        pAppControl->Start(null, null, pDataList, this);
index 81f9345..3012921 100644 (file)
@@ -322,6 +322,7 @@ FolderContentListForm::OnActionPerformed(const Tizen::Ui::Control& source, int a
                        HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
                        pDataList->Construct();
                        pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_SELECTION_MODE), new (std::nothrow) String(APPCONTROL_OPTION_SINGLE));
+                       pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_SOCIAL_ITEM_TYPE), new (std::nothrow) String(APPCONTROL_OPTION_PERSON));
                        pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_SOCIAL_RESULT_TYPE), new (std::nothrow) String(APPCONTROL_OPTION_ITEM_ID));
 
                        pAppControl->Start(null, null, pDataList, this);
index d5eab0d..3299517 100644 (file)
@@ -331,6 +331,7 @@ SetAsPopup::OnTableViewItemStateChanged(Tizen::Ui::Controls::TableView& tableVie
                HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
                pDataList->Construct();
                pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_SELECTION_MODE), new (std::nothrow) String(APPCONTROL_OPTION_SINGLE));
+               pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_SOCIAL_ITEM_TYPE), new (std::nothrow) String(APPCONTROL_OPTION_PERSON));
                pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_SOCIAL_RESULT_TYPE), new (std::nothrow) String(APPCONTROL_OPTION_ITEM_ID));
 
 //             Tizen::Base::Collection::ArrayList* pData = new (std::nothrow) Tizen::Base::Collection::ArrayList();