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.
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 |
IMPORT_C | TPresCondSphere | ( | ) |
C++ Constructor, After contructing Init must be called before using this object.
IMPORT_C TInt | AddOrReplaceSphereL | ( | const TDesC & | aRuleID, |
const TDesC & | aSphere | |||
) |
Adds a condition sphere to a rule
IMPORT_C TInt | DeleteSphereL | ( | const TDesC & | aRuleID | ) |
Deletes condition sphere from a rule
const TDesC & aRuleID |
IMPORT_C TInt | GetSphereL | ( | const TDesC & | aRuleID, |
TPtrC & | aSphere | |||
) |
Gets a condition sphere from a rule
CXdmDocumentNode * | GetSphereNodeL | ( | const TDesC & | aRuleID, |
TBool | aCreate | |||
) | [private] |
Gets the Sphere node pointer in a rule
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.
CPresenceXDM *const aPresXDM |
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.