merge with master
[apps/osp/Internet.git] / inc / IntSceneRegister.h
1 //\r
2 \r
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.\r
4 //\r
5 // Licensed under the Flora License, Version 1.0 (the License);\r
6 // you may not use this file except in compliance with the License.\r
7 // You may obtain a copy of the License at\r
8 //\r
9 //     http://floralicense.org/license/\r
10 //\r
11 // Unless required by applicable law or agreed to in writing, software\r
12 // distributed under the License is distributed on an AS IS BASIS,\r
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
14 // See the License for the specific language governing permissions and\r
15 // limitations under the License.\r
16 //\r
17 \r
18 //!Internet\r
19 /*@file:    IntSceneRegister.h\r
20  *@brief:       This header file contains the declarations of the %SceneRegister class.\r
21  *\r
22  */\r
23 \r
24 #ifndef _INT_SCENE_REGISTER_H_\r
25 #define _INT_SCENE_REGISTER_H_\r
26 \r
27 /// Use 'extern' to eliminate duplicate data allocation.\r
28 extern const wchar_t* IDSCN_MAIN_VIEW;\r
29 extern const wchar_t* IDSCN_BOOKMARK_VIEW;\r
30 extern const wchar_t* IDSCN_HISTORY_LIST;\r
31 extern const wchar_t* IDSCN_FIND_WORD;\r
32 extern const wchar_t* IDSCN_EDIT_HISTORY_LIST;\r
33 extern const wchar_t* IDSCN_SETTINGS_CLEAR_PRIVATE_DATA;\r
34 extern const wchar_t* IDSCN_MULTIPLE_WINDOW;\r
35 extern const wchar_t* IDSCN_MULTIPLE_WINDOW_GRID;\r
36 extern const wchar_t* IDSCN_SETTINGS;\r
37 extern const wchar_t* IDSCN_ADD_BOOKMARK;\r
38 extern const wchar_t* IDSCN_ARTICLE_READER;\r
39 extern const wchar_t* IDSCN_EDIT_BOOKMARK_LIST;\r
40 extern const wchar_t* IDSCN_CREATE_BOOKMARK_FOLDER;\r
41 extern const wchar_t* IDSCN_FONT_SIZE;\r
42 extern const wchar_t* IDSCN_EDIT_HOMEPAGE_VIEW;\r
43 extern const wchar_t* IDSCN_BRIGHTNESS;\r
44 \r
45 class SceneRegister\r
46 {\r
47 public:\r
48         /**\r
49          * Registers all the scenes using Register~SceneRegisterScene() method of the SceneManager class\r
50          *\r
51          */\r
52         static void RegisterAllScenes(void);\r
53 \r
54         /**\r
55          * Registers New main view scene for multi window\r
56          *\r
57          * @return              no return value\r
58          * @param[in]   sceneID The sceneID of new view.\r
59          * @param[in]   formID  The formID of new View.\r
60          * @exception   E_SUCCESS                       The method is successful.\r
61          * @exception   E_INVALID_ARG           A specified input parameter is invalid.\r
62          * @exception   E_OBJ_ALREADY_EXIST     The specified @c sceneId already exists.\r
63          * @exception   E_OUT_OF_MEMORY         The memory is insufficient.\r
64          * @exception   E_INVALID_STATE         This instance has not been constructed as yet.\r
65          * @remarks             Register the new main view in scenemanager.\r
66          */\r
67         static result RegisterNewMainView(const Tizen::Base::String& sceneID, const Tizen::Base::String& FormID);\r
68 \r
69         /**\r
70          * Unregister and destroy the scene\r
71          *\r
72          * @return              An error code\r
73          * @param[in]   sceneID The sceneID of new view.\r
74          * @exception   E_SUCCESS                       The method is successful.\r
75          * @exception   E_INVALID_ARG           A specified input parameter is invalid.\r
76          * @exception   E_OBJ_ALREADY_EXIST     The specified @c sceneId already exists.\r
77          * @exception   E_OUT_OF_MEMORY         The memory is insufficient.\r
78          * @exception   E_INVALID_STATE         This instance has not been constructed as yet.\r
79          * @remarks             Unregister and destroy the scene\r
80          */\r
81         static result DestroyAndUnRegisterScene(const Tizen::Base::String& sceneID);\r
82 \r
83 private:\r
84         /**\r
85          * Default constructor\r
86          */\r
87         SceneRegister(void);\r
88 \r
89         /**\r
90          *      Default destructor\r
91          */\r
92         ~SceneRegister(void);\r
93 };\r
94 \r
95 #endif // _INT_SCENE_REGISTER_H_\r