2 // Open Service Platform
3 // Copyright (c) 2013 Samsung Electronics Co., Ltd.
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
9 // http://www.apache.org/licenses/LICENSE-2.0
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.
19 * @file FSecPrivilegeInfo.h
20 * @brief This is the header file for the %PrivilegeInfo class.
22 * This header file contains the declarations of the %PrivilegeInfo class.
25 #ifndef _FSEC_PRIVILEGE_INFO_H_
26 #define _FSEC_PRIVILEGE_INFO_H_
28 #include <FBaseObject.h>
30 namespace Tizen { namespace Security
33 class _PrivilegeInfoImpl;
36 * @class PrivilegeInfo
37 * @brief This class represents the privilege information.
41 * @final This class is not intended for extension.
43 * The %PrivilegeInfo class represents the privilege information.
44 * %PrivilegeInfo provides methods to retrieve the name and description of privilege.
48 class _OSP_EXPORT_ PrivilegeInfo
49 : public Tizen::Base::Object
54 * The object is not fully constructed after this constructor is called. @n
55 * For full construction, the Construct() method must be called right after calling this constructor.
59 * @remarks After creating an instance of this class, the Construct() method must be called explicitly to initialize this instance.
64 * This destructor overrides Tizen::Base::Object::~Object().
69 virtual ~PrivilegeInfo(void);
72 * Initializes this instance of %PrivilegeInfo with the specified parameters.
76 * @return An error code
77 * @param[in] privilegeId The privilege ID
78 * @exception E_SUCCESS The method is successful.
79 * @exception E_INVALID_ARG The specified @c privilegeId is invalid.
82 result Construct(const Tizen::Base::String& privilegeId);
85 * Gets a privilege ID.
89 * @return The privilege ID.
92 Tizen::Base::String GetId(void) const;
95 * Gets the localized display name of privilege.
99 * @return The display name of privilege, else an empty string is returned if there is no value.
102 Tizen::Base::String GetDisplayName(void) const;
105 * Gets the localized description of privilege.
109 * @return The description of privilege, else an empty string is returned if there is no value.
112 Tizen::Base::String GetDescription(void) const;
117 // The implementation of this copy constructor is intentionally blank and declared as private to prohibit copying of objects.
119 // @param[in] rhs An instance of %PrivilegeInfo
121 PrivilegeInfo(const PrivilegeInfo& rhs);
124 // The implementation of this copy assignment operator is intentionally blank and declared as private to prohibit copying of objects.
126 // @param[in] rhs An instance of %PrivilegeInfo
128 PrivilegeInfo& operator =(const PrivilegeInfo& rhs);
132 class _PrivilegeInfoImpl * __pImpl;
133 friend class _PrivilegeInfoImpl;
137 } } // Tizen::Security::PrivilegeInfo
139 #endif // _FSEC_PRIVILEGE_INFO_H_