TPresCondMisc Class Reference

class TPresCondMisc

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()

IMPORT_C 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.

Parameters

const TDesC & aRuleId

AddExternListL(const TDesC &, const TDesC &)

IMPORT_C TInt AddExternListL ( const TDesC & aRuleId,
const TDesC & aUri
)

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.

Parameters

const TDesC & aRuleId

DeleteAllExternalListsL(const TDesC &)

IMPORT_C void DeleteAllExternalListsL ( const TDesC & aRuleId )

Deletes all external lists from a rule if found

Parameters

const TDesC & aRuleId

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 &)

IMPORT_C void GetExternalListsL ( const TDesC & aRuleId,
CDesCArray & aUris
)

Gets condition's external-lists from a rule

Parameters

const TDesC & aRuleId
CDesCArray & aUris contains returned array of external Uris

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

IsAnonymousRequestExistL(const TDesC &)

IMPORT_C TBool IsAnonymousRequestExistL ( const TDesC & aRuleId )

Finds if anonymous-request element exist in a rule

Parameters

const TDesC & aRuleId

IsExternListExistL(const TDesC &, const TDesC &)

IMPORT_C TBool IsExternListExistL ( const TDesC & aRuleId,
const TDesC & aUri
)

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

Parameters

const TDesC & aRuleId

RemoveAnonymousRequestL(const TDesC &)

IMPORT_C TInt RemoveAnonymousRequestL ( const TDesC & aRuleId )

Removes anonymous-request element from a rule

Parameters

const TDesC & aRuleId

RemoveOtherIdentityL(const TDesC &)

IMPORT_C TInt RemoveOtherIdentityL ( const TDesC & aRuleId )

Removes other-identity element from a rule

Parameters

const TDesC & aRuleId

Member Data Documentation

CPresenceXDM * iPresXDM

CPresenceXDM * iPresXDM [private]