CPermission Class Reference
class CPermission : public CBase |
Represents permission data structure.
A permission data is modelled as 32 bit unsigned integer type with the following layout :
-
With leftmost 20 bits representing one of symbian native capability value
-
Bits 25 to 28 represent various user prompt conditions like oneshot, session or blanket
-
Bits 29-32 represent default condition value
-
Bits 21-24 are reserved
Various accessor and modifier methods are provided to access underlying native capability value, the default condition and the conditions set for this permission data.
rtsecmgrutil.lib
Constructor & Destructor Documentation
CPermission()
CPermission | ( | ) | [private, inline] |
CPermission(const CPermission &)
CPermission(const RCapabilityArray &)
CPermission(const RCapabilityArray &, TUserPromptOption)
CPermission(const RCapabilityArray &, TUserPromptOption, TUserPromptOption)
Member Functions Documentation
AppendCapPermData(TCapability)
Capabilitilites(RCapabilityArray &)
Returns capability of the permission
Default()
Returns default prompt option
ExternalizeL(RWriteStream &)
Externalizes permission data to stream
InternalizeL(RReadStream &)
Internalizes permission data from stream
NewL(const CPermission &)
Parameters
const CPermission & aPermission | TPermission permission source from which copy is made |
NewL(const RCapabilityArray &)
Overloaded constructor taking capability
NewL(const RCapabilityArray &, TUserPromptOption)
Overloaded constructor taking capability and default condition
NewL(const RCapabilityArray &, TUserPromptOption, TUserPromptOption)
Overloaded constructor taking capability, default condition and conditions of permission
NewLC(const CPermission &)
Parameters
const CPermission & aPermission | TPermission permission source from which copy is made |
NewLC(const RCapabilityArray &)
Overloaded constructor taking capability
NewLC(const RCapabilityArray &, TUserPromptOption)
Overloaded constructor taking capability and default condition
NewLC(const RCapabilityArray &, TUserPromptOption, TUserPromptOption)
Overloaded constructor taking capability, default condition and conditions of permission
PermName()
IMPORT_C const TDesC & | PermName | ( | ) | const |
Returns Name of the permission
PermissionData()
Returns iPermissionData of the permission
SetCondition(TUserPromptOption)
SetDefault(TUserPromptOption)
Sets default condition value
SetPermName(const TDesC &)
IMPORT_C void | SetPermName | ( | const TDesC & | aName | ) | |
Sets the name of the permission
Parameters
const TDesC & aName | const TDesC& value |
SetPermissionData(TPermissionData)
Member Data Documentation
HBufC * iPermName
HBufC * | iPermName | [private] |
TPermissionData
iPermissionData
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.