result TryRemoveContextMenu(int actionId);\r
void RemoveContextMenu(void);\r
\r
- result ShowNotificationTicker(Tizen::Base::String text, Tizen::Graphics::Point point, int TickerWidth);\r
+ result ShowNotificationTicker(Tizen::Base::String text, int timeOut = 2000);\r
void RemoveNotificationTicker(void);\r
\r
Tizen::Ui::OrientationStatus GetCurrentOrientationMode(void);\r
class MainFrame
: public Tizen::Ui::Controls::Frame
+// , public Tizen::Ui::Controls::IFrameEventListener
{
public:
MainFrame(void);
virtual result OnInitializing(void);
virtual result OnTerminating(void);
+
+// virtual void OnFrameTerminating(const Tizen::Ui::Controls::Frame& source);
+// virtual void OnFrameMinimized(const Tizen::Ui::Controls::Frame& source) ;
+// virtual void OnFrameRestored(const Tizen::Ui::Controls::Frame& source);
};
#endif // _MP_MAIN_FRAME_H_
\ No newline at end of file
}\r
\r
result\r
-ContentLibaryPanel::ShowNotificationTicker(Tizen::Base::String text, Tizen::Graphics::Point point, int TickerWidth)\r
+ContentLibaryPanel::ShowNotificationTicker(Tizen::Base::String text, int timeOut)\r
{\r
AppLogDebug("ENTER");\r
if (__pNotificationTicker == null)\r
__pNotificationTicker = null;\r
return E_FAILURE;\r
}\r
+ __pNotificationTicker->SetBoundTicker(Rectangle(0,0, GetWidth(), 96));\r
}\r
\r
-// __pNotificationTicker->SetBoundTicker(point, TickerWidth);\r
- __pNotificationTicker->ShowTicker(text);\r
+ __pNotificationTicker->ShowTicker(text, timeOut);\r
AppLogDebug("EXIT");\r
return E_SUCCESS;\r
}\r
#include "MpSceneRegister.h"
using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
using namespace Tizen::Ui;
using namespace Tizen::Ui::Controls;
using namespace Tizen::Ui::Scenes;
AppLogDebug("ENTER");
result r = SceneRegister::RegisterAllScenes();
TryReturn(r == E_SUCCESS, r, "[%s] Scene registering Failed.", GetErrorMessage(r));
+
+// AddFrameEventListener(*this);
+
AppLogDebug("EXIT");
return r;
}
MainFrame::OnTerminating(void)
{
AppLogDebug("ENTER");
+// RemoveFrameEventListener(*this);
AppLogDebug("EXIT");
return E_SUCCESS;
}
+//void
+//MainFrame::OnFrameMinimized(const Tizen::Ui::Controls::Frame& source)
+//{
+// AppLogDebug("ENTER");
+// SceneManager* pSceneManager = SceneManager::GetInstance();
+// AppAssert(pSceneManager);
+// IListT<SceneId>* pSceneIdList = pSceneManager->GetSceneHistoryN();
+// if (pSceneIdList == null)
+// {
+// AppLogDebug("EXIT(pSceneIdList is null)");
+// return;
+// }
+//
+// IEnumeratorT<SceneId>* pIEnum = pSceneIdList->GetEnumeratorN();
+// while (pIEnum->MoveNext() == E_SUCCESS)
+// {
+// SceneId sceneID;
+// pIEnum->GetCurrent(sceneID);
+// pSceneManager->DestroyScene(sceneID);
+// }
+// delete pIEnum;
+//
+// if (pSceneManager->IsSceneAlive(IDSCN_PLAYER) == true)
+// {
+// pSceneManager->DestroyScene(IDSCN_PLAYER);
+// }
+// AppLogDebug("EXIT");
+//}
+//
+//void
+//MainFrame::OnFrameTerminating(const Tizen::Ui::Controls::Frame& source)
+//{
+// AppLogDebug("ENTER");
+// AppLogDebug("EXIT");
+//}
+//
+//void
+//MainFrame::OnFrameRestored(const Tizen::Ui::Controls::Frame& source)
+//{
+// AppLogDebug("ENTER");
+// SceneManager* pSceneManager = SceneManager::GetInstance();
+// AppAssert(pSceneManager);
+//
+// pSceneManager->BringCurrentSceneToTop();
+// AppLogDebug("EXIT");
+//}
+
result
MainFrame::GoToInitialScene(const Tizen::Ui::Scenes::SceneId& sceneId, Tizen::Base::Collection::IList* pArgs)
{
sourceStr.Replace(original, replace);
// pContentPath = &sourceStr;
+ if (__pDataList != null)
+ {
+ __pDataList->RemoveAll();
+ delete __pDataList;
+ }
+
__pDataList = new (std::nothrow) ArrayList();
__pDataList->Construct();
__pVolumePanel->Invalidate(true);
}
}
-
+ TogglePlayPauseImage(__pPlayerPresentationModel->GetPlayerState());
TableView* pContentsTableView = static_cast<TableView*>(__pContentsListViewPanel->GetControl(IDC_CONTENTS_TABLEVIEW));
pContentsTableView->UpdateTableView();
__pContentsListViewPanel->Invalidate(true);
if (__pPlayerPresentationModel != null)
{
__pPlayerPresentationModel->RemoveMusicPlayerEventListener(*this);
- __pPlayerPresentationModel->DestroyPlayerPresentationModel();
+// if (!__pPlayerPresentationModel->GetPlayerState() == PLAYER_STATE_PLAYING)
+ {
+ __pPlayerPresentationModel->DestroyPlayerPresentationModel();
+ }
}
SettingPresentationModel::GetInstance()->DestroySettingPresentationModel();
AppLogDebug("EXIT");
MusicPlayerApp* pMusicPlayerApp = static_cast<MusicPlayerApp*>(MusicPlayerApp::GetInstance());
TryReturnVoid(pMusicPlayerApp != null, "Unable to cast UiApp to MusicPlayerApp");
- SetPlayerScreenState(PLAYER_SCREEN_STATE_APP_CONTROL);
if (pArgs == null || static_cast<String*>(pArgs->GetAt(0))->Equals(MUSIC, false))
{
AppLogDebug("EXIT(E_FAILURE)");
int playIndex = (static_cast<Integer*>(pArgs->GetAt(1)))->ToInt();
__pPlayerPresentationModel->Play(playIndex, MIN_PLAY_STATE_SLIDER_COUNT);
+ SetPlayerScreenState(PLAYER_SCREEN_STATE_APP_CONTROL);
pArgs->RemoveAll();
delete pArgs;
__pMoreContextButton->SetEnabled(isFileExist);
__pMoreContextButton->Invalidate(true);
- __pShuffleButton->SetEnabled(isFileExist);
- __pShuffleButton->Invalidate(true);
-
if (__isRunByAppControl == false)
{
__pContentsViewToggleButton->SetEnabled(isFileExist);
__pContentsViewToggleButton->Invalidate(true);
+ __pShuffleButton->SetEnabled(isFileExist);
+ __pShuffleButton->Invalidate(true);
}
AppLogDebug("EXIT");
}
CallOnPlayContentChanged(__currentContentIndex);
if (GetPlayerState() == PLAYER_STATE_PAUSED)
{
+ __lastPosition = 0;
__pPlayer->SeekTo(MIN_SLIDER_COUNT);
InitializeProgress();
}