CPresenceXDM Class Reference
class CPresenceXDM : public CActive
|
This class deals with the Presence rules as a whole and has communication with the server. Rules can be manipulated using this class, however the three childrens of rule namely condition, action and transform manipulation also requires their respective classes in conjunction with this class.
rlspresxdm.lib
-
Since
-
S60 3.2
Constructor & Destructor Documentation
CPresenceXDM()
CPresenceXDM
|
(
|
)
|
[private]
|
Member Functions Documentation
CancelUpdateL()
IMPORT_C void
|
CancelUpdateL
|
(
|
)
|
|
Cancels document update to/from server if going on. This results in HandlePresUpdateCancelL on completion.
ConstructL(const TInt)
void
|
ConstructL
|
(
|
const
TInt
|
aSettingId
|
)
|
[private]
|
CreateNewRuleL(TDes &)
IMPORT_C
TInt
|
CreateNewRuleL
|
(
|
TDes
&
|
aRuleId
|
)
|
|
Add a new rule. If aRuleId contains a valid descriptor it is used as rule id for the new rule. If a NULL descriptor is provided instead, a random id is generated automatically and returned in aRuleId. The new rule is created without condition, action or transformation. Those elements can be created using their respective classes.
CreateRootIfNeededL()
void
|
CreateRootIfNeededL
|
(
|
)
|
[private]
|
Creates the document root if needed
DeleteAllRules()
IMPORT_C void
|
DeleteAllRules
|
(
|
)
|
|
Delete all data by deleting all rules and their children
DeleteEmptyRulesL()
IMPORT_C void
|
DeleteEmptyRulesL
|
(
|
)
|
|
Deletes all rules which are empty
DeleteRuleL(const TDesC &)
IMPORT_C
TInt
|
DeleteRuleL
|
(
|
const
TDesC
&
|
aRuleId
|
)
|
|
Delete Rule and associated coditions/actions/transforms
DoCancel()
void
|
DoCancel
|
(
|
)
|
[virtual]
|
GetAllRulesL(CDesCArray &)
IMPORT_C void
|
GetAllRulesL
|
(
|
CDesCArray
&
|
aRuleIds
|
)
|
|
Gets all rule IDs in an array
GetConditionChildNodeL(const TDesC &, const TDesC &, TBool)
Gets the conditions child node pointer in a rule. It is caller's responsiblity to provide a valid child name.
Parameters
const
TDesC
& aRuleId
|
|
const
TDesC
& aCondChild
|
child node of condition
|
TBool
aCreate
|
|
GetRuleChildNodeL(const TDesC &, const TDesC &, TBool)
Gets the condition, action or transform node. It is caller's responsiblity to provide a valid child name.
Parameters
const
TDesC
& aRuleId
|
|
const
TDesC
& aRuleChild
|
child node of a rule
|
TBool
aCreate
|
|
GetUniqueRuleId(TDes &)
void
|
GetUniqueRuleId
|
(
|
TDes
&
|
aRuleId
|
)
|
[private]
|
IsRuleExist(const TDesC &)
IMPORT_C
TBool
|
IsRuleExist
|
(
|
const
TDesC
&
|
aRuleId
|
)
|
|
IsRuleExistInt(const TDesC &)
Finds if a Rule Exist, returns its pointer
RemoveFromModelL(CXdmDocumentNode *)
Removes given node from document model
UpdateAllFromServerL(MRLSPresXDMAsyncHandler *const)
Updates all information (document) from server. This results in HandlePresUpdateDocumentL on completion.
UpdateToServerL(MRLSPresXDMAsyncHandler *const)
Updates information (document) to server. This results in HandlePresUpdateDocumentL on completion.
Member Data Documentation
MRLSPresXDMAsyncHandler * iAsyncHandler
CXdmDocument * iPresDocument
CXdmProtocolInfo * iXDMProtocolInfo
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.