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 TInt AddOrReplaceActionL (const TDesC &, const TDesC &)
IMPORT_C TInt GetActionL (const TDesC &, TDes &)
IMPORT_C void Init ( CPresenceXDM *const )
IMPORT_C TInt RemoveActionL (const TDesC &)
Private Member Functions
CXdmDocumentNode * GetSubHandlingNodeL (const TDesC &, TBool )
TBool IsValidAction (const TDesC &)
Private Attributes
CPresenceXDM * iPresXDM

Constructor & Destructor Documentation

TPresenceActionXDM()

IMPORT_C TPresenceActionXDM ( )

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

Member Functions Documentation

AddOrReplaceActionL(const TDesC &, const TDesC &)

IMPORT_C TInt AddOrReplaceActionL ( const TDesC & aRuleID,
const TDesC & aAction
)

Adds or replace action contents.

Parameters

const TDesC & aRuleID
const TDesC & aAction

GetActionL(const TDesC &, TDes &)

IMPORT_C TInt GetActionL ( 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,
TBool aCreate
) [private]

Gets the SubHandling node pointer in a rule

Parameters

const TDesC & aRuleID
TBool aCreate

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

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 TInt RemoveActionL ( const TDesC & aRuleID )

Removes action from a rule.

Parameters

const TDesC & aRuleID

Member Data Documentation

CPresenceXDM * iPresXDM

CPresenceXDM * iPresXDM [private]