UserPromptService::CPolicy Class Reference
class UserPromptService::CPolicy : public CBase |
Class for a single policy record.
Inherits from
- UserPromptService::CPolicy
Public Member Functions |
---|
| ~CPolicy() |
IMPORT_C TBool | Default() |
IMPORT_C const TDesC & | Destination() |
IMPORT_C const TUid & | DialogCreator() |
IMPORT_C TUint16 | Flags() |
IMPORT_C TUint16 | MajorVersion() |
IMPORT_C TBool | Matches(const TSecureId &, const TDesC &, TBool) |
IMPORT_C TUint16 | MinorVersion() |
IMPORT_C CPolicy * | NewL(const TSidClasses &, const RArray< TSecureId > &, const TDesC &, TUint, const TUid &, const TUid &, TUint16, TSystemServerSecurity, TUint16, TUint16, TBool) |
IMPORT_C CPolicy * | NewLC(const TSidClasses &, const RArray< TSecureId > &, const TDesC &, TUint, const TUid &, const TUid &, TUint16, TSystemServerSecurity, TUint16, TUint16, TBool) |
IMPORT_C TOptions | Options() |
IMPORT_C const TUid & | PolicyEvaluator() |
IMPORT_C TBool | PromptRequired() |
IMPORT_C const TSidClasses & | SidClasses() |
IMPORT_C const RArray< TSecureId > & | SidList() |
IMPORT_C TSystemServerSecurity | SystemServerSecurity() |
Constructor & Destructor Documentation
CPolicy(const TSidClasses &, TUint, const TUid &, const TUid &, TUint16, TSystemServerSecurity, TUint16, TUint16, TBool)
Member Functions Documentation
ConstructL(const RArray< TSecureId > &, const TDesC &)
Default()
IMPORT_C TBool | Default | ( | ) | const |
Destination()
IMPORT_C const TDesC & | Destination | ( | ) | const |
DialogCreator()
IMPORT_C const TUid & | DialogCreator | ( | ) | const |
MajorVersion()
IMPORT_C TUint16 | MajorVersion | ( | ) | const |
Matches(const TSecureId &, const TDesC &, TBool)
MinorVersion()
IMPORT_C TUint16 | MinorVersion | ( | ) | const |
NewL(const TSidClasses &, const RArray< TSecureId > &, const TDesC &, TUint, const TUid &, const TUid &, TUint16, TSystemServerSecurity, TUint16, TUint16, TBool)
IMPORT_C CPolicy * | NewL | ( | const TSidClasses & | aSidClasses, |
| const RArray< TSecureId > & | aSidList, |
| const TDesC & | aDestination, |
| TUint | aOptions, |
| const TUid & | aPolicyEvaluator, |
| const TUid & | aDialogCreator, |
| TUint16 | aFlags, |
| TSystemServerSecurity | aSystemServerSecurity, |
| TUint16 | aMajorVersion, |
| TUint16 | aMinorVersion, |
| TBool | aDefault = EFalse |
| ) | [static] |
NewLC(const TSidClasses &, const RArray< TSecureId > &, const TDesC &, TUint, const TUid &, const TUid &, TUint16, TSystemServerSecurity, TUint16, TUint16, TBool)
IMPORT_C CPolicy * | NewLC | ( | const TSidClasses & | aSidClasses, |
| const RArray< TSecureId > & | aSidList, |
| const TDesC & | aDestination, |
| TUint | aOptions, |
| const TUid & | aPolicyEvaluator, |
| const TUid & | aDialogCreator, |
| TUint16 | aFlags, |
| TSystemServerSecurity | aSystemServerSecurity, |
| TUint16 | aMajorVersion, |
| TUint16 | aMinorVersion, |
| TBool | aDefault = EFalse |
| ) | [static] |
PolicyEvaluator()
IMPORT_C const TUid & | PolicyEvaluator | ( | ) | const |
PromptRequired()
IMPORT_C TBool | PromptRequired | ( | ) | const |
Member Enumerations Documentation
Enum TOptions
Defines the elements in the options field that determines whether a prompt should be displayed and if so what buttons are available.
All other bits are reserved for future use and should be ignored by the custom Policy Evaluators and Dialog Creators.
Enumerators
EYes = 0x01 | |
ENo = 0x02 | |
ESession = 0x04 | |
ESessionYes = 0x04 | |
EAlways = 0x08 | |
ENever = 0x10 | |
ESessionNo = 0x20 | |
Enum TSystemServerSecurity
Allows policies to be matched according to whether the client process passed security check defined by the system server. Typically, this corresponds to whether the client has the correct capabilities for the requested service. However, system servers are free to use features other than capabilities in their security check.
E.g. If the client has the correct capabilities for the requested service then the "Always" and "Never" options will be enabled in the policy; otherwise, a different policy will be matched where the prompt is limited to one-shot permissions ("Yes" and "No").
Enumerators
ESystemServerSecurityPassedOrFailed = 0 |
The policy applies regardless of whether the client process passed the system server's security check.
|
ESystemServerSecurityFailed = 1 |
The policy only applies if the client process failed the system server's security check.
|
ESystemServerSecurityPassed = 2 |
The policy only applies if the client process passed the system server's security check.
|
Member Data Documentation
HBufC * iDestination
HBufC * | iDestination | [private] |
TUid
iDialogCreator
TUid
| iDialogCreator | [private] |
TUid
iPolicyEvaluator
TUid
| iPolicyEvaluator | [private] |
RArray< TSecureId > iSidList
TSystemServerSecurity
iSystemServerSecurity
Whether this policy is specific to clients that passed/failed the system server's security check.
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.