Implemented the input event blocking when the AppControl was launched
authorJongTaeOh <jongtae.oh@samsung.com>
Tue, 26 Mar 2013 01:19:45 +0000 (10:19 +0900)
committerJongTaeOh <jongtae.oh@samsung.com>
Tue, 26 Mar 2013 01:19:45 +0000 (10:19 +0900)
Change-Id: Ic5e2ab1c416f1c6ebed5ed6618c8a4b93975707e

src/MpAllListPanel.cpp
src/MpFolderContentListForm.cpp
src/MpMusicPlayerApp.cpp
src/MpSetAsPopup.cpp
src/MpSharePopup.cpp

index 7a4cf07..74b9144 100644 (file)
@@ -24,6 +24,7 @@
 #include "MpAllListPanel.h"
 #include "MpAllListPresentationModel.h"
 #include "MpMiniPlayer.h"
+#include "MpMusicPlayerApp.h"
 #include "MpPlaylistPickerPopup.h"
 #include "MpSetAsPopup.h"
 #include "MpSettingPresentationModel.h"
@@ -272,6 +273,10 @@ AllListPanel::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
 
                        pAppControl->Start(null, null, pDataList, this);
 
+                       Frame* pFrame = MusicPlayerApp::GetInstance()->GetFrameAt(0);
+                       AppAssert(pFrame);
+                       pFrame->SetEnabled(false);
+
                        delete pContentInfoStruct;
                        pContentInfoStruct = null;
 
@@ -309,11 +314,13 @@ AllListPanel::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
                        pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_RETURNTYPE), new (std::nothrow) String(APPCONTROL_VALUE_CONTACTID));
 
                        pAppControl->Start(null, null, pDataList, this);
-                       if (pAppControl != null)
-                       {
-                               delete pAppControl;
-                               pAppControl = null;
-                       }
+
+                       Frame* pFrame = MusicPlayerApp::GetInstance()->GetFrameAt(0);
+                       AppAssert(pFrame);
+                       pFrame->SetEnabled(false);
+
+                       delete pAppControl;
+                       pAppControl = null;
                }
                break;
 
@@ -793,4 +800,4 @@ AllListPanel::UpdateItem(int itemIndex, Tizen::Ui::Controls::TableViewItem* pIte
        __pThumbnail = null;
        pThumbnailLabel->Invalidate(true);
        AppLogDebug("EXIT");
-}
\ No newline at end of file
+}
index 9127a2d..39d429c 100644 (file)
@@ -22,6 +22,7 @@
 #include <FSocial.h>
 #include "MpFolderContentListForm.h"
 #include "MpFolderListPresentationModel.h"
+#include "MpMusicPlayerApp.h"
 #include "MpPlaylistPickerPopup.h"
 #include "MpSharePopup.h"
 #include "MpThumbnailInfo.h"
@@ -238,6 +239,11 @@ FolderContentListForm::OnActionPerformed(const Tizen::Ui::Control& source, int a
                        delete pContentInfo;
 
                        pAppControl->Start(null, null, pDataList, this);
+
+                       Frame* pFrame = MusicPlayerApp::GetInstance()->GetFrameAt(0);
+                       AppAssert(pFrame);
+                       pFrame->SetEnabled(false);
+
                        delete pAppControl;
                }
                break;
@@ -609,4 +615,4 @@ FolderContentListForm::UpdateItem(int itemIndex, Tizen::Ui::Controls::TableViewI
        __pThumbnail = null;
        pThumbnailLabel->Invalidate(true);
        AppLogDebug("EXIT");
-}
\ No newline at end of file
+}
index c317024..6974e97 100644 (file)
@@ -208,6 +208,11 @@ MusicPlayerApp::OnForeground(void)
                delete __pDataList;
                __pDataList = null;
        }
+
+       Frame* pFrame = GetFrameAt(0);
+       AppAssert(pFrame);
+       pFrame->SetEnabled(true);
+
        AppLogDebug("EXIT");
 }
 
index c176fb9..e731d8e 100644 (file)
@@ -24,6 +24,7 @@
 #include <FSclAddressbookManager.h>
 #include <FSclContact.h>
 #include <FSysSettingInfo.h>
+#include "MpMusicPlayerApp.h"
 #include "MpResourceManager.h"
 #include "MpSetAsPopup.h"
 #include "MpTypes.h"
@@ -336,14 +337,14 @@ SetAsPopup::OnTableViewItemStateChanged(Tizen::Ui::Controls::TableView& tableVie
 //             pData->Add(*(new (std::nothrow) String(RETURN_TYPE)));
 
                pAppControl->Start(null, null, pDataList, this);
-               if (pAppControl != null)
-               {
-                       SetShowState(false);
-                       Invalidate(true);
 
-                       delete pAppControl;
-                       pAppControl = null;
-               }
+               Frame* pFrame = MusicPlayerApp::GetInstance()->GetFrameAt(0);
+               AppAssert(pFrame);
+               pFrame->SetEnabled(false);
+
+               SetShowState(false);
+               Invalidate(true);
+               delete pAppControl;
        }
        AppLogDebug("EXIT");
 }
@@ -459,4 +460,4 @@ SetAsPopup::SetCurrentContentPath(Tizen::Base::String* contentPath)
        AppLogDebug("ENTER");
        __pCurrentContentPath = contentPath;
        AppLogDebug("EXIT");
-}
\ No newline at end of file
+}
index 6935bfb..f2f593d 100644 (file)
@@ -20,6 +20,7 @@
  */
 
 #include <FApp.h>
+#include "MpMusicPlayerApp.h"
 #include "MpResourceManager.h"
 #include "MpSharePopup.h"
 #include "MpTypes.h"
@@ -361,11 +362,12 @@ SharePopup::LaunchAppControl(const Tizen::Base::String& operationId, const Tizen
        }
 
        pAc->Start(null, null, __pDataList, this);
-       if (pAc != null)
-       {
-               delete pAc;
-       }
 
+       Frame* pFrame = MusicPlayerApp::GetInstance()->GetFrameAt(0);
+       AppAssert(pFrame);
+       pFrame->SetEnabled(false);
+
+       delete pAc;
        AppLogDebug("EXIT");
        return E_SUCCESS;
 }
@@ -377,4 +379,4 @@ SharePopup::OnAppControlCompleteResponseReceived(const AppId& appId,
 {
        AppLogDebug("ENTER");
        AppLogDebug("EXIT");
-}
\ No newline at end of file
+}