TPresenceActionXDM Class Reference

class TPresenceActionXDM

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. TPresenceActionXDM is used to manipulate the Action part of a rule. Remember to call Init function after constructing this object.

rlspresxdm.lib
Since
S60 3.2
Public Member Functions
TPresenceActionXDM()
IMPORT_C TIntAddOrReplaceActionL(const TDesC &, const TDesC &)
IMPORT_C TIntGetActionL(const TDesC &, TDes &)
IMPORT_C voidInit(CPresenceXDM *const )
IMPORT_C TIntRemoveActionL(const TDesC &)
Private Member Functions
CXdmDocumentNode *GetSubHandlingNodeL(const TDesC &, TBool)
TBool IsValidAction(const TDesC &)
Private Attributes
CPresenceXDM *iPresXDM

Constructor & Destructor Documentation

TPresenceActionXDM()

IMPORT_CTPresenceActionXDM()

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

Member Functions Documentation

AddOrReplaceActionL(const TDesC &, const TDesC &)

IMPORT_C TIntAddOrReplaceActionL(const TDesC &aRuleID,
const TDesC &aAction
)

Adds or replace action contents.

Parameters

const TDesC & aRuleID
const TDesC & aAction

GetActionL(const TDesC &, TDes &)

IMPORT_C TIntGetActionL(const TDesC &aRuleID,
TDes &aAction
)

Gets Action contents from a rule.

Parameters

const TDesC & aRuleID
TDes & aAction

GetSubHandlingNodeL(const TDesC &, TBool)

CXdmDocumentNode *GetSubHandlingNodeL(const TDesC &aRuleID,
TBoolaCreate
)[private]

Gets the SubHandling node pointer in a rule

Parameters

const TDesC & aRuleID
TBool aCreate

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

IsValidAction(const TDesC &)

TBool IsValidAction(const TDesC &aAction)[private]

Finds whether the provided action is valid or not

Parameters

const TDesC & aAction

RemoveActionL(const TDesC &)

IMPORT_C TIntRemoveActionL(const TDesC &aRuleID)

Removes action from a rule.

Parameters

const TDesC & aRuleID

Member Data Documentation

CPresenceXDM * iPresXDM

CPresenceXDM *iPresXDM[private]