TPresCondMisc Class Reference
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.
rlspresxdm.lib
- Since
- S60 3.2
Constructor & Destructor Documentation
TPresCondMisc()
C++ Constructor, After contructing Init must be called before using this object.
Member Functions Documentation
AddAnonymousRequestL(const TDesC &)
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.
AddExternListL(const TDesC &, const TDesC &)
Adds a condition's external-list with 'anc' attribute containing a Uri
Parameters
const TDesC & aRuleId | |
const TDesC & aUri | an external list to be added |
AddOtherIdentityL(const TDesC &)
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.
DeleteAllExternalListsL(const TDesC &)
IMPORT_C void | DeleteAllExternalListsL | ( | const TDesC & | aRuleId | ) | |
Deletes all external lists from a rule if found
DeleteExternalListL(const TDesC &, const TDesC &)
IMPORT_C TInt | DeleteExternalListL | ( | const TDesC & | aRuleId, |
| const TDesC & | aUri |
| ) | |
Delete specific external list if found.
Parameters
const TDesC & aRuleId | |
const TDesC & aUri | an external list to be removed |
DeleteExternalListsL(const TDesC &, const MDesCArray &)
IMPORT_C void | DeleteExternalListsL | ( | const TDesC & | aRuleId, |
| const MDesCArray & | aUris |
| ) | |
Deletes specific external lists if they found.
Parameters
const TDesC & aRuleId | |
const MDesCArray & aUris | contains array of external lists to be deleted. |
GetExternalListsL(const TDesC &, CDesCArray &)
Gets condition's external-lists from a rule
Parameters
const TDesC & aRuleId | |
CDesCArray & aUris | contains returned array of external Uris |
Init(CPresenceXDM *const)
Initializes the object with the given pointer to CPresenceXDM. This function must be called before using other functions.
IsAnonymousRequestExistL(const TDesC &)
IMPORT_C TBool | IsAnonymousRequestExistL | ( | const TDesC & | aRuleId | ) | |
Finds if anonymous-request element exist in a rule
IsExternListExistL(const TDesC &, const TDesC &)
Finds if an external list is exist in a rule
Parameters
const TDesC & aRuleId | |
const TDesC & aUri | an external list to be find |
IsOtherIdentityExistL(const TDesC &)
IMPORT_C TBool | IsOtherIdentityExistL | ( | const TDesC & | aRuleId | ) | |
Finds if other-identity element exist in a rule
RemoveAnonymousRequestL(const TDesC &)
IMPORT_C TInt | RemoveAnonymousRequestL | ( | const TDesC & | aRuleId | ) | |
Removes anonymous-request element from a rule
RemoveOtherIdentityL(const TDesC &)
IMPORT_C TInt | RemoveOtherIdentityL | ( | const TDesC & | aRuleId | ) | |
Removes other-identity element from a rule
Member Data Documentation
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.