aboutsummaryrefslogtreecommitdiffstats
path: root/lib/psitime.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/psitime.h')
-rw-r--r--lib/psitime.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/psitime.h b/lib/psitime.h
index 7072711..74d05af 100644
--- a/lib/psitime.h
+++ b/lib/psitime.h
@@ -252,6 +252,7 @@ public:
private:
void psi2unix(void);
void unix2psi(void);
+ void tryPsiZone();
psi_timeval ptv;
psi_timezone ptz;
@@ -259,4 +260,29 @@ private:
struct timezone utz;
bool ptzValid;
};
+
+class PsiZone {
+ friend class rpcs32;
+
+public:
+ static PsiZone &getInstance();
+
+ bool getZone(psi_timezone &ptz);
+
+private:
+ /**
+ * This objects instance (singleton)
+ */
+ static PsiZone *_instance;
+
+ /**
+ * Private constructor.
+ */
+ PsiZone();
+
+ void setZone(psi_timezone &ptz);
+
+ bool _ptzValid;
+ psi_timezone _ptz;
+};
#endif