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
Public Member Functions
TPresCondMisc()
IMPORT_C TIntAddAnonymousRequestL(const TDesC &)
IMPORT_C TIntAddExternListL(const TDesC &, const TDesC &)
IMPORT_C TIntAddOtherIdentityL(const TDesC &)
IMPORT_C voidDeleteAllExternalListsL(const TDesC &)
IMPORT_C TIntDeleteExternalListL(const TDesC &, const TDesC &)
IMPORT_C voidDeleteExternalListsL(const TDesC &, const MDesCArray &)
IMPORT_C voidGetExternalListsL(const TDesC &, CDesCArray &)
IMPORT_C voidInit(CPresenceXDM *const )
IMPORT_C TBoolIsAnonymousRequestExistL(const TDesC &)
IMPORT_C TBoolIsExternListExistL(const TDesC &, const TDesC &)
IMPORT_C TBoolIsOtherIdentityExistL(const TDesC &)
IMPORT_C TIntRemoveAnonymousRequestL(const TDesC &)
IMPORT_C TIntRemoveOtherIdentityL(const TDesC &)
Private Attributes
CPresenceXDM *iPresXDM

Constructor & Destructor Documentation

TPresCondMisc()

IMPORT_CTPresCondMisc()

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

Member Functions Documentation

AddAnonymousRequestL(const TDesC &)

IMPORT_C TIntAddAnonymousRequestL(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 TIntAddExternListL(const TDesC &aRuleId,
const TDesC &aUri
)

Adds a condition's external-list with 'anc' attribute containing a Uri

Parameters

const TDesC & aRuleId
const TDesC & aUrian external list to be added

AddOtherIdentityL(const TDesC &)

IMPORT_C TIntAddOtherIdentityL(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 voidDeleteAllExternalListsL(const TDesC &aRuleId)

Deletes all external lists from a rule if found

Parameters

const TDesC & aRuleId

DeleteExternalListL(const TDesC &, const TDesC &)

IMPORT_C TIntDeleteExternalListL(const TDesC &aRuleId,
const TDesC &aUri
)

Delete specific external list if found.

Parameters

const TDesC & aRuleId
const TDesC & aUrian external list to be removed

DeleteExternalListsL(const TDesC &, const MDesCArray &)

IMPORT_C voidDeleteExternalListsL(const TDesC &aRuleId,
const MDesCArray &aUris
)

Deletes specific external lists if they found.

Parameters

const TDesC & aRuleId
const MDesCArray & aUriscontains array of external lists to be deleted.

GetExternalListsL(const TDesC &, CDesCArray &)

IMPORT_C voidGetExternalListsL(const TDesC &aRuleId,
CDesCArray &aUris
)

Gets condition's external-lists from a rule

Parameters

const TDesC & aRuleId
CDesCArray & aUriscontains returned array of external Uris

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

IsAnonymousRequestExistL(const TDesC &)

IMPORT_C TBoolIsAnonymousRequestExistL(const TDesC &aRuleId)

Finds if anonymous-request element exist in a rule

Parameters

const TDesC & aRuleId

IsExternListExistL(const TDesC &, const TDesC &)

IMPORT_C TBoolIsExternListExistL(const TDesC &aRuleId,
const TDesC &aUri
)

Finds if an external list is exist in a rule

Parameters

const TDesC & aRuleId
const TDesC & aUrian external list to be find

IsOtherIdentityExistL(const TDesC &)

IMPORT_C TBoolIsOtherIdentityExistL(const TDesC &aRuleId)

Finds if other-identity element exist in a rule

Parameters

const TDesC & aRuleId

RemoveAnonymousRequestL(const TDesC &)

IMPORT_C TIntRemoveAnonymousRequestL(const TDesC &aRuleId)

Removes anonymous-request element from a rule

Parameters

const TDesC & aRuleId

RemoveOtherIdentityL(const TDesC &)

IMPORT_C TIntRemoveOtherIdentityL(const TDesC &aRuleId)

Removes other-identity element from a rule

Parameters

const TDesC & aRuleId

Member Data Documentation

CPresenceXDM * iPresXDM

CPresenceXDM *iPresXDM[private]