class TPresCondIdentityMany |
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. TPresCondIdentityMany is used to manipulate the 'many' element part of a Condition in a rule. Remember to call Init function after constructing this object.
Public Member Functions | |
---|---|
TPresCondIdentityMany () | |
IMPORT_C TInt | AddIdentitiesInManyExceptL (const TDesC &, const CDesCArray &, const TDesC &) |
IMPORT_C TInt | AddIdentityInManyExceptL (const TDesC &, const TDesC &, const TDesC &) |
IMPORT_C TInt | AddManyIdentityL (const TDesC &, const TDesC &) |
IMPORT_C TInt | DeleteAllIdentitiesFromManyExceptL (const TDesC &, const TDesC &) |
IMPORT_C TInt | GetIdentitiesFromManyExceptL (const TDesC &, CDesCArray &, const TDesC &) |
IMPORT_C TInt | GetManyIdentityElementsL (const TDesC &, CDesCArray &) |
IMPORT_C void | Init ( CPresenceXDM *const ) |
IMPORT_C TBool | IsIdentityExistsInManyExceptL (const TDesC &, const TDesC &, const TDesC &) |
IMPORT_C TBool | IsManyExistsL (const TDesC &, const TDesC &) |
IMPORT_C TInt | RemoveIdentityFromManyExceptL (const TDesC &, const TDesC &, const TDesC &) |
IMPORT_C TInt | RemoveManyIdentityL (const TDesC &, const TDesC &) |
Private Member Functions | |
---|---|
CXdmDocumentNode * | GetManyNodeL (const TDesC &, TBool , const TDesC &) |
TBool | IsEntityExistInNodeArray (const RPointerArray < CXdmDocumentNode > &, const TDesC &) |
Private Attributes | |
---|---|
CPresenceXDM * | iPresXDM |
IMPORT_C | TPresCondIdentityMany | ( | ) |
C++ Constructor, After contructing Init must be called before using this object.
IMPORT_C TInt | AddIdentitiesInManyExceptL | ( | const TDesC & | aRuleID, |
const CDesCArray & | aEntities, | |||
const TDesC & | aDomain | |||
) |
Add identities to 'except' child of many element
const TDesC & aRuleID | |
const CDesCArray & aEntities | |
const TDesC & aDomain |
IMPORT_C TInt | AddIdentityInManyExceptL | ( | const TDesC & | aRuleID, |
const TDesC & | aEntity, | |||
const TDesC & | aDomain | |||
) |
Add identity to 'except' child of many element
IMPORT_C TInt | AddManyIdentityL | ( | const TDesC & | aRuleID, |
const TDesC & | aDomain | |||
) |
Puts the 'many' element in identity, with domain name
IMPORT_C TInt | DeleteAllIdentitiesFromManyExceptL | ( | const TDesC & | aRuleID, |
const TDesC & | aDomain | |||
) |
Deletes all identities in the 'except' child of 'many'
IMPORT_C TInt | GetIdentitiesFromManyExceptL | ( | const TDesC & | aRuleID, |
CDesCArray & | aEntities, | |||
const TDesC & | aDomain | |||
) |
Get identities from 'except' child of many element
const TDesC & aRuleID | |
CDesCArray & aEntities | |
const TDesC & aDomain |
IMPORT_C TInt | GetManyIdentityElementsL | ( | const TDesC & | aRuleID, |
CDesCArray & | aDomains | |||
) |
Get the number of 'many' elements in identity node, those elements which has domain name are returned in aDomains array
const TDesC & aRuleID | |
CDesCArray & aDomains |
CXdmDocumentNode * | GetManyNodeL | ( | const TDesC & | aRuleID, |
TBool | aCreate, | |||
const TDesC & | aDomain | |||
) | [private] |
Gets the 'many' node pointer in a rule
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 |
TBool | IsEntityExistInNodeArray | ( | const RPointerArray < CXdmDocumentNode > & | nodes, |
const TDesC & | aEntity | |||
) | [private] |
Finds whether the given entity exists in the node array
const RPointerArray < CXdmDocumentNode > & nodes | |
const TDesC & aEntity |
IMPORT_C TBool | IsIdentityExistsInManyExceptL | ( | const TDesC & | aRuleID, |
const TDesC & | aEntity, | |||
const TDesC & | aDomain | |||
) |
Is identity exists in the 'except' child of many element
IMPORT_C TBool | IsManyExistsL | ( | const TDesC & | aRuleID, |
const TDesC & | aDomain | |||
) |
Finds whether 'many' element exists in identities or not, with optional domain name
IMPORT_C TInt | RemoveIdentityFromManyExceptL | ( | const TDesC & | aRuleID, |
const TDesC & | aEntity, | |||
const TDesC & | aDomain | |||
) |
Removes an identity from 'except' child of many element
IMPORT_C TInt | RemoveManyIdentityL | ( | const TDesC & | aRuleID, |
const TDesC & | aDomain | |||
) |
Removes the 'many' element from identity, optional domain name
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.