Fixed issue 46761
[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 <FUi.h>
26 #include "GlFormContentUpdateEventListener.h"
27 #include "GlSlideSettingListener.h"
28
29 class FileListPresentationModel;
30 class ISlideSettingListener;
31 class SlideShowPopUp;
32
33 class FileListForm
34         : public IFormContentUpdateEventListener
35         , public ISlideSettingListener
36         , public Tizen::Ui::IActionEventListener
37         , public Tizen::Ui::Controls::Form
38         , public Tizen::Ui::Controls::IFormBackEventListener
39         , public Tizen::Ui::Controls::IFormMenuEventListener
40         , public Tizen::Ui::IOrientationEventListener
41 {
42 public:
43         FileListForm(void);
44         virtual ~FileListForm(void);
45         result Initialize(void);
46
47         virtual result OnInitializing(void);
48         virtual result OnTerminating(void);
49         virtual void OnContentUpdated(void);
50
51         virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
52
53         virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
54         virtual void OnOrientationChanged(const Tizen::Ui::Control &source, Tizen::Ui::OrientationStatus orientationStatus);
55
56         void SetTitleText(const Tizen::Base::String& titleText);
57
58         virtual void OnSlideSettingPopUpItemSelected(int index);
59
60         virtual void OnFormMenuRequested (Tizen::Ui::Controls::Form &source);
61
62         void SetMenuState(bool state);
63
64 private:
65         result InitializeFooter(void);
66
67 private:
68         bool __menuState;
69         Tizen::Ui::Controls::OptionMenu* __pOptionMenu;
70         SlideShowPopUp* __pPopUp;
71         FileListPresentationModel* __pPresentationModel;
72 };
73
74 #endif /* _GL_FILE_LIST_FORM_H_ */