void CancelThumbnailRequest(const int folderIndex);
void ClearThumbnailRequests(bool appTerminating = false);
result StartAppControl(const Tizen::Base::String& providerId, const Tizen::Base::String& operationId,
- const Tizen::Base::String* pMimeType, const Tizen::Base::Collection::IMap* pDataList,
- Tizen::App::IAppControlResponseListener* pListener);
+ const Tizen::Base::String* pUriData, const Tizen::Base::String* pMimeType,
+ const Tizen::Base::Collection::HashMap* pDataList, Tizen::App::IAppControlResponseListener* pListener);
void InitializeAlbumInfoList(const Tizen::Content::ContentType& contentType);
result DeleteContentInfoInDirectory(int index, Tizen::Content::ContentType contentType);
virtual void OnThumbnailReceivedN(Tizen::Base::Runtime::IEventArg& eventArg);
- //From IContentScanListener
virtual void OnContentScanCompleted (RequestId reqId, const Tizen::Base::String &scanPath, result r);
void OnContentCreated(Tizen::Content::ContentId contentId, Tizen::Content::ContentType contentType, result r);
#include <FUi.h>
#include "GlBaseForm.h"
#include "GlFormContentUpdateEventListener.h"
-#include "GlSlideShowPopUp.h"
#include "GlSlideSettingListener.h"
+#include "GlSlideShowPopUp.h"
class FileListPresentationModel;
class ISlideSettingListener;
result MoveToContentFileList(const Tizen::Base::Collection::IList& contentIndexList,
const Tizen::Base::String& destDirectory);
result StartAppControl(const Tizen::Base::String& providerId, const Tizen::Base::String& operationId,
- const Tizen::Base::String* pMimeType, const Tizen::Base::Collection::IMap* pDataList,
- Tizen::App::IAppControlResponseListener* pListener);
+ const Tizen::Base::String* pUriData, const Tizen::Base::String* pMimeType,
+ const Tizen::Base::Collection::HashMap* pDataList, Tizen::App::IAppControlResponseListener* pListener);
result SetCurrentAlbumInfo(const Tizen::Base::String& albumName,
const Tizen::Base::Collection::IList& directoryList);
result RefreshCurrentAlbumContentInfoList(Tizen::Content::ContentType contentType);
extern const wchar_t* APPCONTROL_KEY_MESSAGE_TYPE;
extern const wchar_t* APPCONTROL_KEY_CAMERA_ALLOW_SWITCH;
+extern const wchar_t* APPCONTROL_URI_MMS_TO;
+extern const wchar_t* APPCONTROL_URI_MAIL_TO;
+
extern const wchar_t* APPCONTROL_MIME_IMAGE_JPG;
+extern const wchar_t* APPCONTROL_MIME_IMAGE_ALL;
extern const wchar_t* APPCONTROL_DATA_IMAGE;
extern const wchar_t* APPCONTROL_DATA_VIDEO;
extern const wchar_t* APPCONTROL_DATA_SINGLE;
extern const wchar_t* APPCONTROL_DATA_MULTIPLE;
extern const wchar_t* APPCONTROL_DATA_SLIDE_SHOW;
-extern const wchar_t* APPCONTROL_DATA_MMS;
extern const wchar_t* APPCONTROL_DATA_SELECTION_MODE;
extern const wchar_t* APPCONTROL_DATA_TRUE;
HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
pDataList->Construct();
- pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_MESSAGE_TYPE), new (std::nothrow) String(APPCONTROL_DATA_MMS));
pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), (Object*)pArrayList);
__pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_MESSAGE, APPCONTROL_OPERATION_ID_COMPOSE,
- null, pDataList, null);
+ new (std::nothrow) String(APPCONTROL_URI_MMS_TO), null, pDataList, null);
}
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
pDataList->Construct();
pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), (Object*)pArrayList);
- __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_EMAIL,
- APPCONTROL_OPERATION_ID_COMPOSE, null, pDataList, null);
+ __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_EMAIL, APPCONTROL_OPERATION_ID_COMPOSE,
+ new (std::nothrow) String(APPCONTROL_URI_MAIL_TO), null, pDataList, null);
}
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
new (std::nothrow) String(APPCONTROL_DATA_TRUE));
__pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_CAMERA,
- APPCONTROL_OPERATION_ID_CREATE_CONTENT, new (std::nothrow) String(APPCONTROL_MIME_IMAGE_JPG),
- pDataList, null);
+ APPCONTROL_OPERATION_ID_CREATE_CONTENT, null,
+ new (std::nothrow) String(APPCONTROL_MIME_IMAGE_JPG), pDataList, null);
}
break;
case ACTION_ID_FOOTER_EDIT:
result
AlbumListPresentationModel::StartAppControl(const String& providerId, const String& operationId,
- const String* pMimeType, const IMap* pDataList, IAppControlResponseListener* pListener)
+ const String* pUriData, const String* pMimeType, const IMap* pDataList,
+ IAppControlResponseListener* pListener)
{
AppLogDebug("ENTER");
AppControl* pAc = AppManager::FindAppControlN(providerId, operationId);
return E_FAILURE;
}
- result r = pAc->Start(null, pMimeType, pDataList, pListener);
+ result r = pAc->Start(pUriData, pMimeType, pDataList, pListener);
if (r == E_SUCCESS)
{
HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
pDataList->Construct();
- pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_MESSAGE_TYPE),
- new (std::nothrow) String(APPCONTROL_DATA_MMS));
pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), (Object*)pArrayList);
- __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_MESSAGE, APPCONTROL_OPERATION_ID_COMPOSE, null,
- pDataList, null);
+ __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_MESSAGE, APPCONTROL_OPERATION_ID_COMPOSE,
+ new (std::nothrow) String(APPCONTROL_URI_MMS_TO), null, pDataList, null);
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return E_SUCCESS;
pDataList->Construct();
pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), (Object*)pArrayList);
- __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_EMAIL, APPCONTROL_OPERATION_ID_COMPOSE, null,
- pDataList, null);
+ __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_EMAIL, APPCONTROL_OPERATION_ID_COMPOSE,
+ new (std::nothrow) String(APPCONTROL_URI_MAIL_TO), null, pDataList, null);
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return E_SUCCESS;
pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), (Object*)pArrayList);
__pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_IMAGE, APPCONTROL_OPERATION_ID_VIEW, null,
- pDataList, null);
+ new (std::nothrow) String(APPCONTROL_MIME_IMAGE_ALL), pDataList, null);
delete pIndexList;
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_INDEX), new (std::nothrow) String(listIndex));
__pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_IMAGE, APPCONTROL_OPERATION_ID_VIEW, null,
- pDataList, null);
+ new (std::nothrow) String(APPCONTROL_MIME_IMAGE_ALL), pDataList, null);
- String* temp;
+ String* temp = null;
loopCount = pArrayList->GetCount();
for (int i = 0; i < loopCount; ++i)
{
HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
pDataList->Construct();
- pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_MESSAGE_TYPE),
- new (std::nothrow) String(APPCONTROL_DATA_MMS));
pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), (Object*)pArrayList);
- __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_MESSAGE, APPCONTROL_OPERATION_ID_COMPOSE, null,
- pDataList, null);
+ __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_MESSAGE, APPCONTROL_OPERATION_ID_COMPOSE,
+ new (std::nothrow) String(APPCONTROL_URI_MMS_TO), null, pDataList, null);
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return E_SUCCESS;
void
FileListEditorForm::OnSlideSettingPopUpItemSelected(int index)
{
-
- if ( __pPopUp != NULL)
+ if (__pPopUp != NULL)
{
__pPopUp->SetShowState(false);
}
pSelectionPanel->OnRequestSlideShow();
}
}
-
}
else if (index == 1) // go to settingsForm
{
TryReturnVoid(pSceneManager != null, "[%s] fail to get SceneManager", GetErrorMessage(GetLastResult()));
pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SETTING_MAIN));
-
}
}
-
pDataList->Construct();
pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_CAMERA_ALLOW_SWITCH), new (std::nothrow) String(APPCONTROL_DATA_TRUE));
__pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_CAMERA, APPCONTROL_OPERATION_ID_CREATE_CONTENT,
- new (std::nothrow) String(APPCONTROL_MIME_IMAGE_JPG), pDataList, null);
+ null, new (std::nothrow) String(APPCONTROL_MIME_IMAGE_JPG), pDataList, null);
break;
}
default:
void
FileListForm::OnSlideSettingPopUpItemSelected(int index)
{
-
- if ( __pPopUp != NULL)
+ if (__pPopUp != NULL)
{
__pPopUp->SetShowState(false);
}
pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), (Object*)pArrayList);
__pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_IMAGE, APPCONTROL_OPERATION_ID_VIEW,null, pDataList, null);
-
}
else if (index == 1) // go to settingsForm
{
TryReturnVoid(pSceneManager != null, "[%s] fail to get SceneManager", GetErrorMessage(GetLastResult()));
pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SETTING_MAIN));
-
}
}
FileListPresentationModel::FileListPresentationModel(void)
: __albumContentType(CONTENT_TYPE_ALL)
, __appControlMode(APP_CONTROL_MODE_MAIN)
- , __appControlMediaType(APPCONTROL_MEDIA_TYPE_UNKNOWN)
+ , __appControlMediaType(APPCONTROL_MEDIA_TYPE_IMAGE)
, __appControlSelectionMode(APPCONTROL_SELECTION_MODE_SINGLE)
{
AppLogDebug("ENTER");
result
FileListPresentationModel::StartAppControl(const String& providerId, const String& operationId,
- const Tizen::Base::String* pMimeType, const IMap* pDataList, IAppControlResponseListener* pListener)
+ const String* pUriData, const Tizen::Base::String* pMimeType, const HashMap* pDataList,
+ IAppControlResponseListener* pListener)
{
AppLogDebug("ENTER");
AppControl* pAc = AppManager::FindAppControlN(providerId, operationId);
AppLogDebug("EXIT 1(%s)", GetErrorMessage(GetLastResult()));
return E_FAILURE;
}
- result r = pAc->Start(null, pMimeType, pDataList, pListener);
+ result r = pAc->Start(pUriData, pMimeType, pDataList, pListener);
if (r == E_SUCCESS)
{
HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
pDataList->Construct();
- pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_MESSAGE_TYPE), new (std::nothrow) String(APPCONTROL_DATA_MMS));
pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), (Object*)pArrayList);
- __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_MESSAGE, APPCONTROL_OPERATION_ID_COMPOSE, null,
- pDataList, null);
+ __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_MESSAGE, APPCONTROL_OPERATION_ID_COMPOSE,
+ new (std::nothrow) String(APPCONTROL_URI_MMS_TO), null, pDataList, null);
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
pDataList->Construct();
pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), (Object*)pArrayList);
- __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_EMAIL, APPCONTROL_OPERATION_ID_COMPOSE, null,
- pDataList, null);
+ __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_EMAIL, APPCONTROL_OPERATION_ID_COMPOSE,
+ new (std::nothrow) String(APPCONTROL_URI_MAIL_TO), null, pDataList, null);
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
if (&destDirectory == null || destDirectory.IsEmpty())
{
AppLogDebug("EXIT 1(%s)", GetErrorMessage(GetLastResult()));
-
return;
}
if (pIndexList == null || pIndexList->GetCount() <= 0)
{
AppLogDebug("EXIT 2(%s)", GetErrorMessage(GetLastResult()));
-
return;
}
pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_INDEX), new (std::nothrow) String(listIndex));
__pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_IMAGE, APPCONTROL_OPERATION_ID_VIEW, null,
- pDataList, null);
+ new (std::nothrow) String(APPCONTROL_MIME_IMAGE_ALL), pDataList, null);
}
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
const wchar_t* APPCONTROL_KEY_MESSAGE_TYPE = L"http://tizen.org/appcontrol/data/message/type";
const wchar_t* APPCONTROL_KEY_CAMERA_ALLOW_SWITCH = L"http://tizen.org/appcontrol/data/camera/allow_switch";
+const wchar_t* APPCONTROL_URI_MMS_TO = L"mmsto";
+const wchar_t* APPCONTROL_URI_MAIL_TO = L"mailto";
+
const wchar_t* APPCONTROL_MIME_IMAGE_JPG = L"image/jpg";
+const wchar_t* APPCONTROL_MIME_IMAGE_ALL = L"image/*";
const wchar_t* APPCONTROL_DATA_IMAGE = L"image";
const wchar_t* APPCONTROL_DATA_VIDEO = L"video";
const wchar_t* APPCONTROL_DATA_SINGLE = L"single";
const wchar_t* APPCONTROL_DATA_MULTIPLE = L"multiple";
const wchar_t* APPCONTROL_DATA_SLIDE_SHOW = L"slideshow";
-const wchar_t* APPCONTROL_DATA_MMS = L"mms";
const wchar_t* APPCONTROL_DATA_SELECTION_MODE = L"http://tizen.org/appcontrol/data/selection/mode";
const wchar_t* APPCONTROL_DATA_TRUE = L"true";
HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
pDataList->Construct();
- pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_MESSAGE_TYPE), new (std::nothrow) String(APPCONTROL_DATA_MMS));
pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), (Object*)pArrayList);
- __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_MESSAGE, APPCONTROL_OPERATION_ID_COMPOSE, null,
- pDataList, null);
+ __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_MESSAGE, APPCONTROL_OPERATION_ID_COMPOSE,
+ new (std::nothrow) String(APPCONTROL_URI_MMS_TO), null, pDataList, null);
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
pDataList->Construct();
pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), (Object*)pArrayList);
- __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_EMAIL, APPCONTROL_OPERATION_ID_COMPOSE, null,
- pDataList, null);
+ __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_EMAIL, APPCONTROL_OPERATION_ID_COMPOSE,
+ new (std::nothrow) String(APPCONTROL_URI_MAIL_TO), null, pDataList, null);
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_INDEX), new (std::nothrow) String(listIndex));
__pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_IMAGE, APPCONTROL_OPERATION_ID_VIEW, null,
- pDataList, null);
+ new (std::nothrow) String(APPCONTROL_MIME_IMAGE_ALL), pDataList, null);
}
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}