Fixed issue 52406
authorHimanshu <himanshu.t@samsung.com>
Fri, 13 Sep 2013 10:26:54 +0000 (15:56 +0530)
committerHimanshu <himanshu.t@samsung.com>
Fri, 13 Sep 2013 10:26:54 +0000 (15:56 +0530)
Change-Id: I074fc2ef67352a31b835ca3feeecd1bed289a04e
Signed-off-by: Himanshu <himanshu.t@samsung.com>
inc/GlFileListForm.h
src/GlFileListForm.cpp

index 3857118..563e4d3 100644 (file)
@@ -22,6 +22,7 @@
 #ifndef _GL_FILE_LIST_FORM_H_
 #define _GL_FILE_LIST_FORM_H_
 
+#include <FApp.h>
 #include <FUi.h>
 #include "GlFormContentUpdateEventListener.h"
 #include "GlSlideSettingListener.h"
@@ -33,6 +34,7 @@ class SlideShowPopUp;
 class FileListForm
        : public IFormContentUpdateEventListener
        , public ISlideSettingListener
+       , public Tizen::App::IAppControlResponseListener
        , public Tizen::Ui::IActionEventListener
        , public Tizen::Ui::Controls::Form
        , public Tizen::Ui::Controls::IFormBackEventListener
@@ -55,6 +57,10 @@ public:
 
        void SetTitleText(const Tizen::Base::String& titleText);
 
+       virtual void OnAppControlCompleteResponseReceived(const Tizen::App::AppId& appId,
+                               const Tizen::Base::String& operationId, Tizen::App::AppCtrlResult appControlResult,
+                               const Tizen::Base::Collection::IMap* pExtraData);
+
        virtual void OnSlideSettingPopUpItemSelected(int index);
 
        virtual void OnFormMenuRequested (Tizen::Ui::Controls::Form &source);
index fea5f66..3e22b7e 100644 (file)
@@ -174,7 +174,7 @@ FileListForm::OnActionPerformed(const Control& source, int actionId)
                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,
-                               null, new (std::nothrow) String(APPCONTROL_MIME_IMAGE_JPG), pDataList, null);
+                               null, new (std::nothrow) String(APPCONTROL_MIME_IMAGE_JPG), pDataList, this);
        }
        break;
 
@@ -356,3 +356,13 @@ FileListForm::OnFormMenuRequested (Tizen::Ui::Controls::Form &source)
        }
 }
 
+void
+FileListForm::OnAppControlCompleteResponseReceived(const AppId& appId, const Tizen::Base::String& operationId,
+                       AppCtrlResult appControlResult, const Tizen::Base::Collection::IMap* pExtraData)
+{
+       AppLogDebug("OnAppControlCompleteResponseReceived : %d", appControlResult);
+
+       GalleryApp* pGalleryApp = static_cast<GalleryApp*>(GalleryApp::GetInstance());
+       TryReturnVoid(pGalleryApp != null, "pGalleryApp is null");
+       pGalleryApp->SetFrameEnabled(true);
+}