Add code versioning for "SettingInfo TC"
[platform/framework/native/appfw.git] / src / system / inc / FSys_SystemResource.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Apache License, Version 2.0 (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://www.apache.org/licenses/LICENSE-2.0
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        FSys_SystemResource.h
19  * @brief       This is the header file of the _SystemResource class.
20  */
21
22 #ifndef _FSYS_INTERNAL_SYSTEM_RESOURCE_H_
23 #define _FSYS_INTERNAL_SYSTEM_RESOURCE_H_
24
25 #include <FBaseObject.h>
26 #include <FBaseString.h>
27
28 #include <FSys_SystemStrings.h>
29
30
31 namespace Tizen { namespace System
32 {
33
34 /**
35  * @class       _SystemResource
36  * @since 2.1
37  */
38 class _OSP_EXPORT_ _SystemResource
39         : public Tizen::Base::Object
40 {
41 public:
42         /**
43          * Retrieves class instance.
44          *
45          * @since 2.1
46          * @return      A pointer to the %_SystemResource instance, @n
47          *          else @c null if it fails
48          */
49         static _SystemResource* GetInstance(void);
50
51         /**
52          * Gets the service's Id.
53          *
54          * @since 2.1
55          * @return      The string obtained from the loaded application resource @n
56          *                      If no matched resource ID found, empty string is returned.
57          * @param[in]   resourceId      The resource ID that represents the resource
58          */
59         Tizen::Base::String GetString(_SystemStringId resourceId) const;
60
61         /**
62          * Gets the service's Id.
63          *
64          * @since 2.1
65          * @return      The string obtained from the loaded application resource @n
66          *                      If no matched resource ID found, empty string is returned.
67          * @param[in]   domainId        The resource domain ID
68          * @param[in]   resourceId      The resource ID that represents the resource
69          */
70         Tizen::Base::String GetString(_ResourceDomainId domainId, _ResourceId resourceId) const;
71
72 private:
73         _OSP_LOCAL_ _SystemResource(void);
74
75         _OSP_LOCAL_ virtual ~_SystemResource(void);
76
77         _SystemResource(const _SystemResource& rhs);
78
79         _SystemResource& operator =(const _SystemResource& rhs);
80
81         static void InitSystemResource(void);
82
83 private:
84         static _SystemResource* __pSystemRsrc;
85 }; // _SystemResource
86
87 } } // Tizen::System
88
89 #endif // _FSYS_INTERNAL_SYSTEM_RESOURCE_H_