TPresCondSphere Class Reference

class TPresCondSphere

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. TPresCondSphere is used to manipulate the sphere 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
TPresCondSphere ()
IMPORT_C TInt AddOrReplaceSphereL (const TDesC &, const TDesC &)
IMPORT_C TInt DeleteSphereL (const TDesC &)
IMPORT_C TInt GetSphereL (const TDesC &, TPtrC &)
IMPORT_C void Init ( CPresenceXDM *const )
Private Member Functions
CXdmDocumentNode * GetSphereNodeL (const TDesC &, TBool )
Private Attributes
CPresenceXDM * iPresXDM

Constructor & Destructor Documentation

TPresCondSphere()

IMPORT_C TPresCondSphere ( )

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

Member Functions Documentation

AddOrReplaceSphereL(const TDesC &, const TDesC &)

IMPORT_C TInt AddOrReplaceSphereL ( const TDesC & aRuleID,
const TDesC & aSphere
)

Adds a condition sphere to a rule

Parameters

const TDesC & aRuleID
const TDesC & aSphere

DeleteSphereL(const TDesC &)

IMPORT_C TInt DeleteSphereL ( const TDesC & aRuleID )

Deletes condition sphere from a rule

Parameters

const TDesC & aRuleID

GetSphereL(const TDesC &, TPtrC &)

IMPORT_C TInt GetSphereL ( const TDesC & aRuleID,
TPtrC & aSphere
)

Gets a condition sphere from a rule

Parameters

const TDesC & aRuleID
TPtrC & aSphere

GetSphereNodeL(const TDesC &, TBool)

CXdmDocumentNode * GetSphereNodeL ( const TDesC & aRuleID,
TBool aCreate
) [private]

Gets the Sphere 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

Member Data Documentation

CPresenceXDM * iPresXDM

CPresenceXDM * iPresXDM [private]