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.
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 |
IMPORT_C | TPresenceActionXDM | ( | ) |
C++ Constructor, After contructing Init must be called before using this object.
IMPORT_C TInt | AddOrReplaceActionL | ( | const TDesC & | aRuleID, |
const TDesC & | aAction | |||
) |
Adds or replace action contents.
IMPORT_C TInt | GetActionL | ( | const TDesC & | aRuleID, |
TDes & | aAction | |||
) |
Gets Action contents from a rule.
CXdmDocumentNode * | GetSubHandlingNodeL | ( | const TDesC & | aRuleID, |
TBool | aCreate | |||
) | [private] |
Gets the SubHandling 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 |
TBool | IsValidAction | ( | const TDesC & | aAction | ) | [private] |
Finds whether the provided action is valid or not
const TDesC & aAction |
IMPORT_C TInt | RemoveActionL | ( | const TDesC & | aRuleID | ) |
Removes action from a rule.
const TDesC & aRuleID |
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.