| class TPresCondMisc |
This class should be used in conjunction with an already created CPresenceXDM . The CPresenceXDM deals with the Presence rules as a whole and has communication with the server. TPresCondMisc is used to manipulate the those Presence rule's conditions which are not present in any other class. This class supports following conditions: external-list, anonymous-request and other-identity.
| Public Member Functions | |
|---|---|
| TPresCondMisc () | |
| IMPORT_C TInt | AddAnonymousRequestL (const TDesC &) |
| IMPORT_C TInt | AddExternListL (const TDesC &, const TDesC &) |
| IMPORT_C TInt | AddOtherIdentityL (const TDesC &) |
| IMPORT_C void | DeleteAllExternalListsL (const TDesC &) |
| IMPORT_C TInt | DeleteExternalListL (const TDesC &, const TDesC &) |
| IMPORT_C void | DeleteExternalListsL (const TDesC &, const MDesCArray &) |
| IMPORT_C void | GetExternalListsL (const TDesC &, CDesCArray &) |
| IMPORT_C void | Init ( CPresenceXDM *const ) |
| IMPORT_C TBool | IsAnonymousRequestExistL (const TDesC &) |
| IMPORT_C TBool | IsExternListExistL (const TDesC &, const TDesC &) |
| IMPORT_C TBool | IsOtherIdentityExistL (const TDesC &) |
| IMPORT_C TInt | RemoveAnonymousRequestL (const TDesC &) |
| IMPORT_C TInt | RemoveOtherIdentityL (const TDesC &) |
| Private Attributes | |
|---|---|
| CPresenceXDM * | iPresXDM |
| IMPORT_C | TPresCondMisc | ( | ) |
C++ Constructor, After contructing Init must be called before using this object.
| IMPORT_C TInt | AddAnonymousRequestL | ( | const TDesC & | aRuleId | ) |
Adds condition's anonymous-request element to a rule. This functions doesnt give error if anonymous-request element already exists.
| const TDesC & aRuleId |
| IMPORT_C TInt | AddExternListL | ( | const TDesC & | aRuleId, |
| const TDesC & | aUri | |||
| ) | ||||
Adds a condition's external-list with 'anc' attribute containing a Uri
| IMPORT_C TInt | AddOtherIdentityL | ( | const TDesC & | aRuleId | ) |
Adds condition's other-identity element to a rule. This functions doesnt give error if other-identity element already exists.
| const TDesC & aRuleId |
| IMPORT_C void | DeleteAllExternalListsL | ( | const TDesC & | aRuleId | ) |
Deletes all external lists from a rule if found
| const TDesC & aRuleId |
| IMPORT_C TInt | DeleteExternalListL | ( | const TDesC & | aRuleId, |
| const TDesC & | aUri | |||
| ) | ||||
Delete specific external list if found.
| IMPORT_C void | DeleteExternalListsL | ( | const TDesC & | aRuleId, |
| const MDesCArray & | aUris | |||
| ) | ||||
Deletes specific external lists if they found.
| const TDesC & aRuleId | |
| const MDesCArray & aUris | contains array of external lists to be deleted. |
| IMPORT_C void | GetExternalListsL | ( | const TDesC & | aRuleId, |
| CDesCArray & | aUris | |||
| ) | ||||
Gets condition's external-lists from a rule
| const TDesC & aRuleId | |
| CDesCArray & aUris | contains returned array of external Uris |
| IMPORT_C void | Init | ( | CPresenceXDM *const | aPresXDM | ) |
Initializes the object with the given pointer to CPresenceXDM . This function must be called before using other functions.
| CPresenceXDM *const aPresXDM |
| IMPORT_C TBool | IsAnonymousRequestExistL | ( | const TDesC & | aRuleId | ) |
Finds if anonymous-request element exist in a rule
| const TDesC & aRuleId |
| IMPORT_C TBool | IsExternListExistL | ( | const TDesC & | aRuleId, |
| const TDesC & | aUri | |||
| ) | ||||
Finds if an external list is exist in a rule
| IMPORT_C TBool | IsOtherIdentityExistL | ( | const TDesC & | aRuleId | ) |
Finds if other-identity element exist in a rule
| const TDesC & aRuleId |
| IMPORT_C TInt | RemoveAnonymousRequestL | ( | const TDesC & | aRuleId | ) |
Removes anonymous-request element from a rule
| const TDesC & aRuleId |
| IMPORT_C TInt | RemoveOtherIdentityL | ( | const TDesC & | aRuleId | ) |
Removes other-identity element from a rule
| const TDesC & aRuleId |
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.