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
CPermission
&
|
aPermission
|
)
|
[private]
|
CPermission(const RCapabilityArray &)
CPermission(const RCapabilityArray &, TUserPromptOption)
CPermission
|
(
|
const
RCapabilityArray
&
|
aCapabilities,
|
|
TUserPromptOption
|
aDefOpt
|
|
)
|
[private]
|
CPermission(const RCapabilityArray &, TUserPromptOption, TUserPromptOption)
CPermission
|
(
|
const
RCapabilityArray
&
|
aCapabilities,
|
|
TUserPromptOption
|
aDefOpt,
|
|
TUserPromptOption
|
aCondition
|
|
)
|
[private]
|
Parameters
const
RCapabilityArray
& aCapabilities
|
|
TUserPromptOption
aDefOpt
|
|
TUserPromptOption
aCondition
|
|
~CPermission()
IMPORT_C
|
~CPermission
|
(
|
)
|
|
Member Functions Documentation
AppendCapPermData(TCapability)
IMPORT_C void
|
AppendCapPermData
|
(
|
TCapability
|
aCap
|
)
|
|
Capabilitilites(RCapabilityArray &)
Returns capability of the permission
Capability()
IMPORT_C
TCapability
|
Capability
|
(
|
)
|
const
|
Condition()
IMPORT_C
TUserPromptOption
|
Condition
|
(
|
)
|
const
|
Default()
IMPORT_C
TUserPromptOption
|
Default
|
(
|
)
|
const
|
Returns default prompt option
ExternalizeL(RWriteStream &)
IMPORT_C void
|
ExternalizeL
|
(
|
RWriteStream
&
|
aOutStream
|
)
|
const
|
Externalizes permission data to stream
InternalizeL(RReadStream &)
Internalizes permission data from stream
Parameters
RReadStream
& aInStream
|
RReadStream input source 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)
IMPORT_C
CPermission
*
|
NewL
|
(
|
const
RCapabilityArray
&
|
aCapabilities,
|
|
TUserPromptOption
|
aDefOpt,
|
|
TUserPromptOption
|
aCondition
|
|
)
|
[static]
|
Overloaded constructor taking capability, default condition and conditions of permission
Parameters
const
RCapabilityArray
& aCapabilities
|
|
TUserPromptOption
aDefOpt
|
|
TUserPromptOption
aCondition
|
TUserPromptOption Conditions to be set
|
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)
IMPORT_C
CPermission
*
|
NewLC
|
(
|
const
RCapabilityArray
&
|
aCapabilities,
|
|
TUserPromptOption
|
aDefOpt,
|
|
TUserPromptOption
|
aCondition
|
|
)
|
[static]
|
Overloaded constructor taking capability, default condition and conditions of permission
Parameters
const
RCapabilityArray
& aCapabilities
|
|
TUserPromptOption
aDefOpt
|
|
TUserPromptOption
aCondition
|
TUserPromptOption Conditions to be set
|
PermName()
IMPORT_C const
TDesC
&
|
PermName
|
(
|
)
|
const
|
Returns Name of the permission
PermissionData()
Returns iPermissionData of the permission
SetCondition(TUserPromptOption)
IMPORT_C void
|
SetCondition
|
(
|
TUserPromptOption
|
aCondition
|
)
|
|
Parameters
TUserPromptOption
aCondition
|
TUserPromptOption condition value
|
SetDefault(TUserPromptOption)
IMPORT_C void
|
SetDefault
|
(
|
TUserPromptOption
|
aDefaultOption
|
)
|
|
Sets default condition value
Parameters
TUserPromptOption
aDefaultOption
|
TUserPromptOption 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.