Initialize Tizen 2.3
[apps/osp/Gallery.git] / inc / GlFileListForm.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                GlFileListForm.h
19  * @brief               This is the header file for FileListForm class.
20  */
21
22 #ifndef _GL_FILE_LIST_FORM_H_
23 #define _GL_FILE_LIST_FORM_H_
24
25 #include <FApp.h>
26 #include <FUi.h>
27 #include "GlFormContentUpdateEventListener.h"
28 #include "GlSlideSettingListener.h"
29
30 class FileListPresentationModel;
31 class ISlideSettingListener;
32 class SlideShowPopUp;
33
34 class FileListForm
35         : public IFormContentUpdateEventListener
36         , public ISlideSettingListener
37         , public Tizen::App::IAppControlResponseListener
38         , public Tizen::Ui::IActionEventListener
39         , public Tizen::Ui::Controls::Form
40         , public Tizen::Ui::Controls::IFormBackEventListener
41         , public Tizen::Ui::Controls::IFormMenuEventListener
42         , public Tizen::Ui::IOrientationEventListener
43 {
44 public:
45         FileListForm(void);
46         virtual ~FileListForm(void);
47         result Initialize(void);
48
49         virtual result OnInitializing(void);
50         virtual result OnTerminating(void);
51         virtual void OnContentUpdated(void);
52
53         virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
54
55         virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
56         virtual void OnOrientationChanged(const Tizen::Ui::Control &source, Tizen::Ui::OrientationStatus orientationStatus);
57
58         void SetTitleText(const Tizen::Base::String& titleText);
59
60         virtual void OnAppControlCompleteResponseReceived(const Tizen::App::AppId& appId,
61                                 const Tizen::Base::String& operationId, Tizen::App::AppCtrlResult appControlResult,
62                                 const Tizen::Base::Collection::IMap* pExtraData);
63
64         virtual void OnSlideSettingPopUpItemSelected(int index);
65
66         virtual void OnFormMenuRequested (Tizen::Ui::Controls::Form &source);
67
68         void SetMenuState(bool state);
69         virtual void ShowAnimation(void){}
70         virtual void StopAnimation(void){}
71
72 private:
73         result InitializeFooter(void);
74
75 private:
76         bool __menuState;
77         Tizen::Ui::Controls::OptionMenu* __pOptionMenu;
78         SlideShowPopUp* __pPopUp;
79         FileListPresentationModel* __pPresentationModel;
80 };
81
82 #endif /* _GL_FILE_LIST_FORM_H_ */