diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-10-17 16:32:44 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-10-17 16:32:44 -0500 |
commit | bcc04892148c7396e638f45e96fcba42d0034ec7 (patch) | |
tree | 347a192c688c5c4202ed334a2dbaa5b76c27a7c1 /src/service.h | |
parent | e38b6293bb37557d27efd052c82ee44d70996077 (diff) | |
download | ayatana-indicator-datetime-bcc04892148c7396e638f45e96fcba42d0034ec7.tar.gz ayatana-indicator-datetime-bcc04892148c7396e638f45e96fcba42d0034ec7.tar.bz2 ayatana-indicator-datetime-bcc04892148c7396e638f45e96fcba42d0034ec7.zip |
refactor the timezone and current time provider into a gobject Interface 'IndicatorDatetimeClock'
Diffstat (limited to 'src/service.h')
-rw-r--r-- | src/service.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/service.h b/src/service.h index 25bb59a..d38db72 100644 --- a/src/service.h +++ b/src/service.h @@ -22,6 +22,8 @@ #include <glib.h> #include <glib-object.h> + +#include "clock.h" #include "planner.h" G_BEGIN_DECLS @@ -63,9 +65,8 @@ struct _IndicatorDatetimeServiceClass GType indicator_datetime_service_get_type (void); -IndicatorDatetimeService * indicator_datetime_service_new (IndicatorDatetimePlanner * planner); - -GDateTime * indicator_datetime_service_get_localtime (IndicatorDatetimeService * service); +IndicatorDatetimeService * indicator_datetime_service_new (IndicatorDatetimeClock * clock, + IndicatorDatetimePlanner * planner); void indicator_datetime_service_set_calendar_date (IndicatorDatetimeService * self, GDateTime * date); @@ -74,6 +75,9 @@ void indicator_datetime_service_set_planner (IndicatorDatetimeService * self, IndicatorDatetimePlanner * planner); +void indicator_datetime_service_set_clock (IndicatorDatetimeService * self, + IndicatorDatetimeClock * clock); + G_END_DECLS |