2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
8 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @file FSys_SystemResource.h
19 * @brief This is the header file of the _SystemResource class.
22 #ifndef _FSYS_INTERNAL_SYSTEM_RESOURCE_H_
23 #define _FSYS_INTERNAL_SYSTEM_RESOURCE_H_
25 #include <FBaseObject.h>
26 #include <FBaseString.h>
28 #include <FSys_SystemStrings.h>
31 namespace Tizen { namespace System
35 * @class _SystemResource
38 class _OSP_EXPORT_ _SystemResource
39 : public Tizen::Base::Object
43 * Retrieves class instance.
46 * @return A pointer to the %_SystemResource instance, @n
47 * else @c null if it fails
49 static _SystemResource* GetInstance(void);
52 * Gets the service's Id.
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
59 Tizen::Base::String GetString(_SystemStringId resourceId) const;
62 * Gets the service's Id.
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
70 Tizen::Base::String GetString(_ResourceDomainId domainId, _ResourceId resourceId) const;
73 _OSP_LOCAL_ _SystemResource(void);
75 _OSP_LOCAL_ virtual ~_SystemResource(void);
77 _SystemResource(const _SystemResource& rhs);
79 _SystemResource& operator =(const _SystemResource& rhs);
81 static void InitSystemResource(void);
84 static _SystemResource* __pSystemRsrc;
89 #endif // _FSYS_INTERNAL_SYSTEM_RESOURCE_H_