TPresCondValidity Class Reference
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. TPresCondValidity is used to manipulate the validity part of Condition in a rule. Remember to call Init function after constructing this object.
rlspresxdm.lib
- Since
- S60 3.2
Constructor & Destructor Documentation
TPresCondValidity()
IMPORT_C | TPresCondValidity | ( | ) | |
C++ Constructor, After contructing Init must be called before using this object.
Member Functions Documentation
AddValidityL(const TDesC &, const TTimePeriod)
Adds condition validity to a rule
ConvertToLocal(TTime &)
void | ConvertToLocal | ( | TTime & | aUniversalDateTime | ) | [private] |
Convert universal time to local time
Parameters
TTime & aUniversalDateTime | |
ConvertToUniversal(TTime &)
void | ConvertToUniversal | ( | TTime & | aLocalDateTime | ) | [private] |
Convert local time to universal time
DeleteAllValidityL(const TDesC &)
IMPORT_C TInt | DeleteAllValidityL | ( | const TDesC & | aRuleID | ) | |
Deletes condition validity values from a rule
FormatToXMLTimeStringL(TDes &, const TTime)
TInt
| FormatToXMLTimeStringL | ( | TDes & | aXMLTimeString, |
| const TTime | aDateTime |
| ) | [private] |
Parse to XML time string from TTime
GetValidityL(const TDesC &, RArray< TTimePeriod > &)
Gets condition validity values from a rule
GetValidityNodeL(const TDesC &, TBool)
Gets the Validity node pointer in a rule
Init(CPresenceXDM *const)
Initializes the object with the given pointer to CPresenceXDM. This function must be called before using other functions.
IsTimeValidL(const TDesC &, const TTimePeriod)
Checks if rule is valid for given time
ParseFromXMLTimeString(const TDesC &, TTime &)
TInt
| ParseFromXMLTimeString | ( | const TDesC & | aXMLTimeString, |
| TTime & | aDateTime |
| ) | [private] |
Parse from XML time string to TTime
Member Data Documentation
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.