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 TIntAddIdentitiesL(const TDesC &, const MDesCArray &)
IMPORT_C TIntAddIdentityL(const TDesC &, const TDesC &)
IMPORT_C voidDeleteAllIdentitiesL(const TDesC &)
IMPORT_C voidDeleteIdentitiesL(const TDesC &, const MDesCArray &)
IMPORT_C TIntDeleteIdentityL(const TDesC &, const TDesC &)
IMPORT_C voidGetIdentitiesL(const TDesC &, CDesCArray &)
IMPORT_C voidInit(CPresenceXDM *const )
IMPORT_C TBoolIsIdentityExistL(const TDesC &, const TDesC &)
Private Member Functions
TBool IsIdExistInNodeArray(const RPointerArray< CXdmDocumentNode > &, const TDesC &)
Private Attributes
CPresenceXDM *iPresXDM

Constructor & Destructor Documentation

TPresCondIdentityOne()

IMPORT_CTPresCondIdentityOne()

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

Member Functions Documentation

AddIdentitiesL(const TDesC &, const MDesCArray &)

IMPORT_C TIntAddIdentitiesL(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 & aIdsIt contains array of ids.

AddIdentityL(const TDesC &, const TDesC &)

IMPORT_C TIntAddIdentityL(const TDesC &aRuleID,
const TDesC &aId
)

Adds a condition identity to a rule

Parameters

const TDesC & aRuleID
const TDesC & aIdan identity to be added

DeleteAllIdentitiesL(const TDesC &)

IMPORT_C voidDeleteAllIdentitiesL(const TDesC &aRuleID)

Deletes all conditions identities from a rule if found

Parameters

const TDesC & aRuleID

DeleteIdentitiesL(const TDesC &, const MDesCArray &)

IMPORT_C voidDeleteIdentitiesL(const TDesC &aRuleID,
const MDesCArray &aIds
)

Deletes specific condition identities if they found.

Parameters

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

DeleteIdentityL(const TDesC &, const TDesC &)

IMPORT_C TIntDeleteIdentityL(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 voidGetIdentitiesL(const TDesC &aRuleID,
CDesCArray &aIds
)

Gets condition identities from a rule

Parameters

const TDesC & aRuleID
CDesCArray & aIdscontains returned array of ids.

Init(CPresenceXDM *const)

IMPORT_C voidInit(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 TBoolIsIdentityExistL(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]