add patch
[framework/osp/uifw.git] / src / app / inc / FApp_ThemeInfo.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file        FApp_ThemeInfo.h
20  * @brief       This is the header file for the %_ThemeInfo class.
21  */
22
23 #ifndef _FAPP_INTERNAL_THEME_INFO_H_
24 #define _FAPP_INTERNAL_THEME_INFO_H_
25
26 #include <FBaseString.h>
27
28 using namespace Tizen::Base;
29
30 namespace Tizen { namespace App
31 {
32
33
34 /**
35  * @class       _ThemeInfo
36  * @brief       This class handles the application theme information
37  *
38  * This class handles the theme
39  */
40 class _ThemeInfo
41 {
42 public:
43         /**
44          * Get the application theme
45          */
46         static result LoadThemeInformation(String& systemTheme, String& userTheme);
47
48 private:
49         /**
50          * This is the default constructor for this class.
51          */
52         _ThemeInfo(void);
53
54         /**
55          * This is the destructor for this class.
56          */
57         ~_ThemeInfo(void);
58
59         /**
60          * This is the copy constructor for the this class.
61          */
62         _ThemeInfo(const _ThemeInfo& value);
63
64         /**
65          * This is the assignment operator for this class.
66          */
67         _ThemeInfo& operator =(const _ThemeInfo& value);
68
69         /**
70          * Get the application theme from info file
71          */
72         static result LoadThemeInfoFromInfoFile(String& systemTheme, String& userTheme);
73
74         /**
75          * Get the application theme from database
76          */
77         static result LoadThemeInfoFromDatabase(String& systemTheme, String& userTheme);
78
79 }; //_ThemeInfo
80
81 } } //Tizen::App
82
83 #endif // _FAPP_INTERNAL_THEME_INFO_H_
84