diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-10-17 03:39:12 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-10-17 03:39:12 +0000 |
commit | e38b6293bb37557d27efd052c82ee44d70996077 (patch) | |
tree | ffcb823fe27b30a448422a7ef72f3727a81d4469 /src/service.h | |
parent | 3cb74c566f21cead559308c94f3b3995e35e6fa2 (diff) | |
parent | 05c1039f4b9f0014371bb767089755317ea2d322 (diff) | |
download | ayatana-indicator-datetime-e38b6293bb37557d27efd052c82ee44d70996077.tar.gz ayatana-indicator-datetime-e38b6293bb37557d27efd052c82ee44d70996077.tar.bz2 ayatana-indicator-datetime-e38b6293bb37557d27efd052c82ee44d70996077.zip |
== Changes to planner-eds:
The get-appointments GTask has a new task subtype for pulling an ECalComponent's uris asynchronously.
When get_appointments() is called, create one GTask. We add subtasks to it for each client we know of for calling e_cal_client_generate_instances(). What's new is that for each ECalComponent we find in generate_instances(), we add another new subtask that tries to get the uris for that component.
== Testing changes:
Make "planner" a property in IndicatorDatetimeService so that we can swap in different appointment planners at runtime. This is for unit testing purposes.
Add a mechanism for testing snap decisions without an EDS backend.
== Service changes:
Every time the appointment list changes, walk through it to find the alarm that will occur the soonest. Set a timer to wake up at that time. When the timer is reached, pop up a snap decision for each alarm set to that time. If the user clicks "OK", dispatch the URL associated with that alarm.
Made the appointment menuitems clickable, they now dispatch the appointment's URL. Fixes: https://bugs.launchpad.net/bugs/1233176.
Approved by PS Jenkins bot, Ted Gould.
Diffstat (limited to 'src/service.h')
-rw-r--r-- | src/service.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/service.h b/src/service.h index b142882..25bb59a 100644 --- a/src/service.h +++ b/src/service.h @@ -22,6 +22,7 @@ #include <glib.h> #include <glib-object.h> +#include "planner.h" G_BEGIN_DECLS @@ -62,13 +63,17 @@ struct _IndicatorDatetimeServiceClass GType indicator_datetime_service_get_type (void); -IndicatorDatetimeService * indicator_datetime_service_new (void); +IndicatorDatetimeService * indicator_datetime_service_new (IndicatorDatetimePlanner * planner); GDateTime * indicator_datetime_service_get_localtime (IndicatorDatetimeService * service); void indicator_datetime_service_set_calendar_date (IndicatorDatetimeService * self, GDateTime * date); +void indicator_datetime_service_set_planner (IndicatorDatetimeService * self, + IndicatorDatetimePlanner * planner); + + G_END_DECLS |