TPresCondIdentityOne Class Reference

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.

rlspresxdm.lib
Since
S60 3.2
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

Constructor & Destructor Documentation

TPresCondIdentityOne()

IMPORT_C TPresCondIdentityOne ( )

C++ Constructor, After contructing Init must be called before using this object.

Member Functions Documentation

AddIdentitiesL(const TDesC &, const MDesCArray &)

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.

Parameters

const TDesC & aRuleID
const MDesCArray & aIds It contains array of ids.

AddIdentityL(const TDesC &, const TDesC &)

IMPORT_C TInt AddIdentityL ( const TDesC & aRuleID,
const TDesC & aId
)

Adds a condition identity to a rule

Parameters

const TDesC & aRuleID
const TDesC & aId an identity to be added

DeleteAllIdentitiesL(const TDesC &)

IMPORT_C void DeleteAllIdentitiesL ( const TDesC & aRuleID )

Deletes all conditions identities from a rule if found

Parameters

const TDesC & aRuleID

DeleteIdentitiesL(const TDesC &, const MDesCArray &)

IMPORT_C void DeleteIdentitiesL ( const TDesC & aRuleID,
const MDesCArray & aIds
)

Deletes specific condition identities if they found.

Parameters

const TDesC & aRuleID
const MDesCArray & aIds contains array of ids to be deleted.

DeleteIdentityL(const TDesC &, const TDesC &)

IMPORT_C TInt DeleteIdentityL ( const TDesC & aRuleID,
const TDesC & aId
)

Deletes an identity from a condition

Parameters

const TDesC & aRuleID
const TDesC & aId

GetIdentitiesL(const TDesC &, CDesCArray &)

IMPORT_C void GetIdentitiesL ( const TDesC & aRuleID,
CDesCArray & aIds
)

Gets condition identities from a rule

Parameters

const TDesC & aRuleID
CDesCArray & aIds contains returned array of ids.

Init(CPresenceXDM *const)

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.

Parameters

CPresenceXDM *const aPresXDM

IsIdExistInNodeArray(const RPointerArray< CXdmDocumentNode > &, const TDesC &)

TBool IsIdExistInNodeArray ( const RPointerArray < CXdmDocumentNode > & nodes,
const TDesC & aId
) [private]

Finds whether the given id exists in the node array

Parameters

const RPointerArray < CXdmDocumentNode > & nodes
const TDesC & aId

IsIdentityExistL(const TDesC &, const TDesC &)

IMPORT_C TBool IsIdentityExistL ( const TDesC & aRuleID,
const TDesC & aId
)

Finds if a identity exist in a rule

Parameters

const TDesC & aRuleID
const TDesC & aId

Member Data Documentation

CPresenceXDM * iPresXDM

CPresenceXDM * iPresXDM [private]