Apply appcontrol spec
authorJongTaeOh <jongtae.oh@samsung.com>
Thu, 4 Apr 2013 02:47:10 +0000 (11:47 +0900)
committerJongTaeOh <jongtae.oh@samsung.com>
Thu, 4 Apr 2013 02:47:10 +0000 (11:47 +0900)
Change-Id: I51d7059ad1cd51dab6474c998416f9b98c610ddd

src/MpAllListPanel.cpp
src/MpArtistContentListForm.cpp
src/MpFolderContentListForm.cpp

index a3466af..538c565 100644 (file)
@@ -227,7 +227,12 @@ 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_PATH), new (std::nothrow) String(pContentInfoStruct->ContentFilePath));
+
+                       Tizen::Base::Collection::ArrayList* pValueList = new (std::nothrow) ArrayList(SingleObjectDeleter);
+                       pValueList->Construct();
+                       pValueList->Add(*(new (std::nothrow) String(pContentInfoStruct->ContentFilePath)));
+
+                       pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), pValueList);
 
                        pAppControl->Start(null, null, pDataList, this);
 
index c441558..2ffeff5 100644 (file)
@@ -996,7 +996,12 @@ ArtistContentListForm::EventHandlerContextMenuItemMessageEmail(ContentInformatio
 
        HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
        pDataList->Construct();
-       pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), new (std::nothrow) String(contentInfo.ContentFilePath));
+
+       Tizen::Base::Collection::ArrayList* pValueList = new (std::nothrow) ArrayList(SingleObjectDeleter);
+       pValueList->Construct();
+       pValueList->Add(*(new (std::nothrow) String(contentInfo.ContentFilePath)));
+
+       pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), pValueList);
 
        pAppControl->Start(null, null, pDataList, this);
 
index 66333c0..ffc0719 100644 (file)
@@ -281,7 +281,12 @@ 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_PATH), new (std::nothrow) String(pContentInfo->ContentFilePath));
+
+                       Tizen::Base::Collection::ArrayList* pValueList = new (std::nothrow) ArrayList(SingleObjectDeleter);
+                       pValueList->Construct();
+                       pValueList->Add(*(new (std::nothrow) String(pContentInfo->ContentFilePath)));
+
+                       pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), pValueList);
                        delete pContentInfo;
 
                        pAppControl->Start(null, null, pDataList, this);