|
plptools
|
A singleton wrapper for a psi_timezone . More...
#include <psitime.h>

Public Member Functions | |
| bool | getZone (psi_timezone &ptz) |
| Retrieve the Psion time zone. More... | |
Static Public Member Functions | |
| static PsiZone & | getInstance () |
| Retrieve the singleton object. More... | |
Private Member Functions | |
| PsiZone () | |
| Private constructor. More... | |
| void | setZone (psi_timezone &ptz) |
Private Attributes | |
| bool | _ptzValid |
| psi_timezone | _ptz |
Static Private Attributes | |
| static PsiZone * | _instance = 0L |
| This objects instance (singleton) More... | |
Friends | |
| class | rpcs32 |
A singleton wrapper for a psi_timezone .
This class is used by PsiTime to initialize its psi_timezone variable. PsiZone itself is initialized from within rpcs::getMachineInfo . In an application, you typically call this at the very beginning, just after connection setup. From then on, a single PsiZone instance is held in memory and used by the various constructors of PsiTime.
|
private |
Private constructor.
Definition at line 292 of file psitime.cc.
|
static |
Retrieve the singleton object.
If it does not exist, it is created.
Definition at line 285 of file psitime.cc.
| bool PsiZone::getZone | ( | psi_timezone & | ptz | ) |
Retrieve the Psion time zone.
| ptz | The time zone is returned here. |
Definition at line 302 of file psitime.cc.
|
private |
Definition at line 296 of file psitime.cc.
|
staticprivate |
|
private |