Applied latest source code
[apps/native/preloaded/MusicPlayer.git] / inc / MpMainFrame.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.1 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://floralicense.org/license/
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 /**
18  * @file                MpMainFrame.h
19  * @brief               This is the header file for MainFrame class.
20  */
21
22 #ifndef _MP_MAIN_FRAME_H_
23 #define _MP_MAIN_FRAME_H_
24
25 #include <new>
26 #include <FBase.h>
27 #include <FUi.h>
28
29 class MainFrame
30         : public Tizen::Ui::Controls::Frame
31         , public Tizen::Ui::Controls::IFrameEventListener
32 {
33 public:
34         MainFrame(void);
35         virtual ~MainFrame(void);
36
37         result GoToInitialScene(const Tizen::Ui::Scenes::SceneId& sceneId, Tizen::Base::Collection::IList* pArgs);
38
39         virtual result OnInitializing(void);
40         virtual result OnTerminating(void);
41
42         virtual void OnFrameActivated(const Tizen::Ui::Controls::Frame& source);
43         virtual void OnFrameRestored(const Tizen::Ui::Controls::Frame& source);
44         virtual void OnFrameTerminating(const Tizen::Ui::Controls::Frame& source);
45
46 private:
47         Tizen::Ui::Scenes::SceneId __sceneId;
48         Tizen::Base::Collection::IList* __pDataList;
49 };
50
51 #endif // _MP_MAIN_FRAME_H_