//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
#include "FSec_PrivilegeInfoImpl.h"
using namespace Tizen::Base;
-using namespace Tizen::Base::Collection;
using namespace Tizen::Security;
namespace Tizen { namespace Security
{
-_PrivilegeInfoImpl* PrivilegeInfo::__pPrivilegeInfoImpl = null;
PrivilegeInfo::PrivilegeInfo(void)
: __pImpl(null)
PrivilegeInfo::~PrivilegeInfo(void)
{
-
+ delete __pImpl;
}
result
return __pImpl->GetDescription();
}
-
-
-String
-PrivilegeInfo::GetName(const String& privilege)
-{
- String name;
-
- if (__pPrivilegeInfoImpl == null)
- {
- __pPrivilegeInfoImpl = _PrivilegeInfoImpl::GetInstance();
- }
- SysTryReturn(NID_SEC, __pPrivilegeInfoImpl != null, name, E_SYSTEM, "An unexpected system error occurred.");
-
- name = __pPrivilegeInfoImpl->GetName(privilege);
-
- return name;
-}
-
-String
-PrivilegeInfo::GetDescription(const String& privilege)
-{
- String description;
-
- if (__pPrivilegeInfoImpl == null)
- {
- __pPrivilegeInfoImpl = _PrivilegeInfoImpl::GetInstance();
- }
- SysTryReturn(NID_SEC, __pPrivilegeInfoImpl != null, description, E_SYSTEM, "An unexpected system error occurred.");
-
- description = __pPrivilegeInfoImpl->GetDescription(privilege);
-
- return description;
-}
-
}} // Tizen::Security