Applied latest source code
[apps/native/preloaded/Settings.git] / inc / StWallpaperImageSelectForm.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                StWallpaperImageSelectForm.h
19  * @brief               This is the header file for WallpaperImageSelectForm class.
20  */
21
22 #ifndef _ST_WALLPAPER_IMAGE_SELECT_FORM_H_
23 #define _ST_WALLPAPER_IMAGE_SELECT_FORM_H_
24
25 #include <FSystem.h>
26 #include "StResourceManager.h"
27
28 class WallpaperImageSelectForm
29         : public Tizen::Ui::Controls::Form
30         , public Tizen::Ui::Controls::IFormBackEventListener
31         , public Tizen::Ui::IActionEventListener
32         , public Tizen::Ui::IOrientationEventListener
33         , public Tizen::Ui::Scenes::ISceneEventListener
34 {
35 public:
36
37         WallpaperImageSelectForm(void);
38         virtual ~WallpaperImageSelectForm(void);
39
40         result Initialize(void);
41         void CreateFooter(void);
42
43         virtual result OnInitializing(void);
44         virtual result OnTerminating(void);
45
46         virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
47         virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
48         virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
49         virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
50         virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
51
52 private:
53         void CreateImage(void);
54         void SetOrientationAutoMode(void);
55
56 private:
57         Tizen::Base::UuId* __pContentId;
58         int __argIndex;
59 };
60
61 #endif // _ST_WALLPAPER_IMAGE_SELECT_FORM_H_