aboutsummaryrefslogtreecommitdiff
path: root/include/datetime/timezone-file.h
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-09-13 15:45:23 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-09-13 15:45:23 -0500
commit13d371f6c4974baad92574f5e287a72313080432 (patch)
tree70bdc7add46bc4ab55cbce4846e1909431434f1d /include/datetime/timezone-file.h
parent187b660a2a80f4aabf0b87c3fae02cb0841dd2e0 (diff)
downloadayatana-indicator-datetime-13d371f6c4974baad92574f5e287a72313080432.tar.gz
ayatana-indicator-datetime-13d371f6c4974baad92574f5e287a72313080432.tar.bz2
ayatana-indicator-datetime-13d371f6c4974baad92574f5e287a72313080432.zip
hide the implementation detials of FileTimezone and GeoclueTimezone behind Impl classes
Diffstat (limited to 'include/datetime/timezone-file.h')
-rw-r--r--include/datetime/timezone-file.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/include/datetime/timezone-file.h b/include/datetime/timezone-file.h
index a67c01a..eca9c29 100644
--- a/include/datetime/timezone-file.h
+++ b/include/datetime/timezone-file.h
@@ -24,9 +24,6 @@
#include <string> // std::string
-#include <glib.h>
-#include <gio/gio.h>
-
namespace unity {
namespace indicator {
namespace datetime {
@@ -37,21 +34,15 @@ namespace datetime {
class FileTimezone: public Timezone
{
public:
- FileTimezone();
FileTimezone(const std::string& filename);
~FileTimezone();
private:
- void set_filename(const std::string& filename);
- static void on_file_changed(gpointer gself);
- void clear();
- void reload();
-
- std::string m_filename;
- GFileMonitor * m_monitor = nullptr;
- unsigned long m_monitor_handler_id = 0;
+ class Impl;
+ friend Impl;
+ std::unique_ptr<Impl> impl;
- // we have raw pointers and glib tags in here, so disable copying
+ // we have pointers in here, so disable copying
FileTimezone(const FileTimezone&) =delete;
FileTimezone& operator=(const FileTimezone&) =delete;
};