class TPresCondIdentityOne |
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. TPresCondIdentityOne is used to manipulate the 'one' identity part of a Condition in a rule. Remember to call Init function after constructing this object.
Public Member Functions | |
---|---|
TPresCondIdentityOne () | |
IMPORT_C TInt | AddIdentitiesL (const TDesC &, const MDesCArray &) |
IMPORT_C TInt | AddIdentityL (const TDesC &, const TDesC &) |
IMPORT_C void | DeleteAllIdentitiesL (const TDesC &) |
IMPORT_C void | DeleteIdentitiesL (const TDesC &, const MDesCArray &) |
IMPORT_C TInt | DeleteIdentityL (const TDesC &, const TDesC &) |
IMPORT_C void | GetIdentitiesL (const TDesC &, CDesCArray &) |
IMPORT_C void | Init ( CPresenceXDM *const ) |
IMPORT_C TBool | IsIdentityExistL (const TDesC &, const TDesC &) |
Private Member Functions | |
---|---|
TBool | IsIdExistInNodeArray (const RPointerArray < CXdmDocumentNode > &, const TDesC &) |
Private Attributes | |
---|---|
CPresenceXDM * | iPresXDM |
IMPORT_C | TPresCondIdentityOne | ( | ) |
C++ Constructor, After contructing Init must be called before using this object.
IMPORT_C TInt | AddIdentitiesL | ( | const TDesC & | aRuleID, |
const MDesCArray & | aIds | |||
) |
Adds condition identities to a rule. This functions doesnt give error if any or all ids already exists, nor it overwrites them.
const TDesC & aRuleID | |
const MDesCArray & aIds | It contains array of ids. |
IMPORT_C TInt | AddIdentityL | ( | const TDesC & | aRuleID, |
const TDesC & | aId | |||
) |
Adds a condition identity to a rule
IMPORT_C void | DeleteAllIdentitiesL | ( | const TDesC & | aRuleID | ) |
Deletes all conditions identities from a rule if found
const TDesC & aRuleID |
IMPORT_C void | DeleteIdentitiesL | ( | const TDesC & | aRuleID, |
const MDesCArray & | aIds | |||
) |
Deletes specific condition identities if they found.
const TDesC & aRuleID | |
const MDesCArray & aIds | contains array of ids to be deleted. |
IMPORT_C TInt | DeleteIdentityL | ( | const TDesC & | aRuleID, |
const TDesC & | aId | |||
) |
Deletes an identity from a condition
IMPORT_C void | GetIdentitiesL | ( | const TDesC & | aRuleID, |
CDesCArray & | aIds | |||
) |
Gets condition identities from a rule
const TDesC & aRuleID | |
CDesCArray & aIds | contains returned array of ids. |
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 | IsIdExistInNodeArray | ( | const RPointerArray < CXdmDocumentNode > & | nodes, |
const TDesC & | aId | |||
) | [private] |
Finds whether the given id exists in the node array
const RPointerArray < CXdmDocumentNode > & nodes | |
const TDesC & aId |
IMPORT_C TBool | IsIdentityExistL | ( | const TDesC & | aRuleID, |
const TDesC & | aId | |||
) |
Finds if a identity exist in a rule
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.