, __pNotificationListener(null)\r
{\r
__operationId.Append(L"");\r
+ __mimeType.Append(L"");\r
__bAppControlEnabled = false;\r
__inputSource = APPCONTROL_STATE_MAINVIEW_SELECTED;\r
__currentFileType = FILE_TYPE_ALL;\r
{\r
if (__operationId.CompareTo("http://tizen.org/appcontrol/operation/pick") == 0)\r
{\r
- if (__currentView != APPCONTROL_VIEW_IMPORT && __currentView != APPCONTROL_VIEW_EXPORT)\r
+ if (__currentView != APPCONTROL_VIEW_IMPORT)\r
{\r
- AppLogDebug("Ravi: inside appcontrol");\r
__inputSource = APPCONTROL_STATE_SELECTED;\r
IList* pArgs = new (std::nothrow) ArrayList();\r
pArgs->Add(new (std::nothrow) Integer(APPCONTROL_STATE_SELECTED));\r
pSceneManager->GoForward(ForwardSceneTransition(IDSCN_TEMP_FORM), pArgs);\r
}\r
\r
+#if 0\r
else if (__currentView == APPCONTROL_VIEW_EXPORT)\r
{\r
if (__pResultList == null)\r
{\r
pSceneManager->GoForward(ForwardSceneTransition(IDSCN_TOP_MOST_SELECTION_FORM), null);\r
}\r
+#endif\r
}\r
else\r
{\r
AppLogDebug("ENTER");\r
String resultList;\r
result r = E_SUCCESS;\r
+ ArrayList* pAppControlResultList = null;\r
\r
// Deallocate resources allocated by this App for termination.\r
// The App's permanent data and context can be saved via appRegistry.\r
}\r
else\r
{\r
+ pAppControlResultList = new (std::nothrow) ArrayList();\r
+ pAppControlResultList->Construct();\r
resultList = FolderNavigationPresentationModel::GetCurrentPath();\r
+ pAppControlResultList->Add(new (std::nothrow) String(resultList));\r
if (__pResultList != null && resultList.CompareTo("") != 0)\r
{\r
- __pResultList->Add(new (std::nothrow) String(appcontrolKey), new (std::nothrow) String(resultList));\r
+ __pResultList->Add(new (std::nothrow) String(appcontroldataKey),pAppControlResultList);\r
}\r
AppLog("Result added is %S",resultList.GetPointer());\r
r = AppControlProviderManager::GetInstance()->SendAppControlResult(__currentRequestId, __currentAppControlResult, __pResultList);\r
\r
pResultHash = FolderEntryEditorPresentationModel::GetInstance()->GetCheckedList();\r
\r
- if (pResultHash != null)\r
- {\r
- pResultMapEnum = pResultHash->GetMapEnumeratorN();\r
-\r
- if (pResultMapEnum != null)\r
+ if (__currentAppControlResult != APP_CTRL_RESULT_CANCELED)\r
{\r
- if (pResultHash->GetCount() != 0)\r
+ if (pResultHash != null)\r
{\r
- //__pResultList->Add(*new (std::nothrow) String(APPCONTROL_RESULT_SUCCEEDED));\r
- while (pResultMapEnum->MoveNext() == E_SUCCESS)\r
+ pResultMapEnum = pResultHash->GetMapEnumeratorN();\r
+\r
+ if (pResultMapEnum != null)\r
{\r
- pDirStr = static_cast< DirectoryEntry* >(pResultMapEnum->GetValue());\r
+ pAppControlResultList = new (std::nothrow) ArrayList();\r
+ pAppControlResultList->Construct();\r
\r
- if (pDirStr != null)\r
+ if (pResultHash->GetCount() != 0)\r
{\r
- resultList.Append(pDirStr->GetFullFilePath());\r
- Count++;\r
- if (Count < pResultHash->GetCount())\r
- resultList.Append(";");\r
+ //__pResultList->Add(*new (std::nothrow) String(APPCONTROL_RESULT_SUCCEEDED));\r
+\r
+ while (pResultMapEnum->MoveNext() == E_SUCCESS)\r
+ {\r
+ pDirStr = static_cast< DirectoryEntry* >(pResultMapEnum->GetValue());\r
+\r
+ if (pDirStr != null)\r
+ {\r
+ pAppControlResultList->Add(new (std::nothrow) String(pDirStr->GetFullFilePath()));\r
+ }\r
+ }\r
}\r
+ delete pResultMapEnum;\r
}\r
}\r
- delete pResultMapEnum;\r
}\r
- }\r
\r
- if (__pResultList != null && resultList.CompareTo("") != 0)\r
- {\r
- __pResultList->Add(new (std::nothrow) String(appcontrolKey), new (std::nothrow) String(resultList));\r
- __pResultList->Add(new (std::nothrow) String(appcontroldataKey), new (std::nothrow) String(resultList));\r
- }\r
+ if (__pResultList != null && __currentAppControlResult != APP_CTRL_RESULT_CANCELED)\r
+ {\r
+ //__pResultList->Add(new (std::nothrow) String(appcontrolKey), new (std::nothrow) String(resultList));\r
+ __pResultList->Add(new (std::nothrow) String(appcontroldataKey), pAppControlResultList);\r
+ }\r
\r
if (__currentAppControlResult == APP_CTRL_RESULT_CANCELED)\r
{\r
const String* inputSelectionType = null;\r
const String* inputFileType = null;\r
\r
+ if (pMimeType != null)\r
+ {\r
+ inputFileType = pMimeType;\r
+ __mimeType.Clear();\r
+ __mimeType.Append(*pMimeType);\r
+ }\r
+\r
if (pExtraData != null)\r
{\r
- inputSelectionType = static_cast< const String* >(pExtraData->GetValue(String(L"selectionType")));\r
- inputFileType = static_cast< const String* >(pExtraData->GetValue(String(L"type")));\r
+ inputSelectionType = static_cast< const String* >(pExtraData->GetValue(String(L"http://tizen.org/appcontrol/data/selection_mode")));\r
}\r
\r
if (__pResultList == null)\r
\r
if (inputFileType != null)\r
{\r
- if (inputFileType->CompareTo("all") == 0)\r
+ if (inputFileType->CompareTo("*/*") == 0)\r
{\r
__currentFileType = FILE_TYPE_ALL;\r
}\r
- else if (inputFileType->CompareTo("image") == 0)\r
+ else if (inputFileType->CompareTo("image/*") == 0)\r
{\r
__currentFileType = FILE_TYPE_IMAGE_TYPE;\r
}\r
- else if (inputFileType->CompareTo("audio") == 0)\r
+ else if (inputFileType->CompareTo("audio/*") == 0)\r
{\r
__currentFileType = FILE_TYPE_AUDIO_TYPE;\r
}\r
- else if (inputFileType->CompareTo("video") == 0)\r
+ else if (inputFileType->CompareTo("video/*") == 0)\r
{\r
__currentFileType = FILE_TYPE_VIDEO_TYPE;\r
}\r
{\r
__currentFileType = FILE_TYPE_CONTACTS_TYPE;\r
}\r
+ else if(inputFileType->CompareTo("inode/directory") == 0)\r
+ {\r
+ __currentFileType = FILE_TYPE_ALL;\r
+ __currentView = APPCONTROL_VIEW_EXPORT;\r
+ }\r
+ else\r
+ {\r
+ __currentFileType = FILE_TYPE_ALL;\r
+ }\r
}\r
else\r
{\r
SceneManager* pSceneManager = null;\r
pSceneManager = SceneManager::GetInstance();\r
\r
- if (pSceneManager != null && __currentView != APPCONTROL_VIEW_IMPORT && __currentView != APPCONTROL_VIEW_EXPORT)\r
+ if (pSceneManager != null && __currentView != APPCONTROL_VIEW_IMPORT)\r
{\r
IList* pArgs = new (std::nothrow) ArrayList();\r
pArgs->Add(new (std::nothrow) Integer(APPCONTROL_STATE_SELECTED));\r
pSceneManager->GoForward(ForwardSceneTransition(IDSCN_TEMP_FORM), pArgs);\r
//pSceneManager->GoForward(ForwardSceneTransition(IDSCN_TOP_MOST_SELECTION_FORM));\r
}\r
+#if 0\r
else if (pSceneManager != null && __currentView == APPCONTROL_VIEW_IMPORT)\r
{\r
pSceneManager->GoForward(ForwardSceneTransition(IDSCN_TOP_MOST_SELECTION_FORM), null);\r
{\r
pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SUB_FOLDER_SELECTION_FORM), null);\r
}\r
+#endif\r
}\r
\r
}\r