aboutsummaryrefslogtreecommitdiff
path: root/include/datetime
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-03-22 02:25:50 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-03-22 02:25:50 -0500
commit18013dbb911de3d71ad679f697490f161ec19a34 (patch)
tree2289f056757002282a725da3327b5894f99829d2 /include/datetime
parent71f97cd047f58ca93303f0262f65fb48682b2e70 (diff)
downloadayatana-indicator-datetime-18013dbb911de3d71ad679f697490f161ec19a34.tar.gz
ayatana-indicator-datetime-18013dbb911de3d71ad679f697490f161ec19a34.tar.bz2
ayatana-indicator-datetime-18013dbb911de3d71ad679f697490f161ec19a34.zip
make the phone and desktop actions more consistent with each other; eg, 'indicator.desktop.open-calendar-app' + 'indicator.phone.open-calendar-app'
Diffstat (limited to 'include/datetime')
-rw-r--r--include/datetime/actions-live.h19
-rw-r--r--include/datetime/actions.h20
2 files changed, 24 insertions, 15 deletions
diff --git a/include/datetime/actions-live.h b/include/datetime/actions-live.h
index a24b844..0bf48a8 100644
--- a/include/datetime/actions-live.h
+++ b/include/datetime/actions-live.h
@@ -39,15 +39,18 @@ public:
LiveActions(const std::shared_ptr<State>& state_in);
~LiveActions() =default;
- void open_desktop_settings();
- void open_phone_settings();
- void open_phone_clock_app();
- bool can_open_planner() const;
- void open_planner();
- void open_planner_at(const DateTime&);
- void open_appointment(const std::string& uid);
+ bool desktop_has_calendar_app() const;
+ void desktop_open_alarm_app();
+ void desktop_open_appointment(const Appointment&);
+ void desktop_open_calendar_app(const DateTime&);
+ void desktop_open_settings_app();
+
+ void phone_open_alarm_app();
+ void phone_open_appointment(const Appointment&);
+ void phone_open_calendar_app(const DateTime&);
+ void phone_open_settings_app();
+
void set_location(const std::string& zone, const std::string& name);
- void set_calendar_date(const DateTime&);
protected:
virtual void execute_command(const std::string& command);
diff --git a/include/datetime/actions.h b/include/datetime/actions.h
index 2c4217c..f59ef67 100644
--- a/include/datetime/actions.h
+++ b/include/datetime/actions.h
@@ -42,14 +42,20 @@ namespace datetime {
class Actions
{
public:
- virtual void open_desktop_settings() =0;
- virtual void open_phone_settings() =0;
- virtual void open_phone_clock_app() =0;
- virtual bool can_open_planner() const = 0;
- virtual void open_planner() =0;
- virtual void open_planner_at(const DateTime&) =0;
- virtual void open_appointment(const std::string& uid) =0;
+
+ virtual bool desktop_has_calendar_app() const =0;
+ virtual void desktop_open_alarm_app() =0;
+ virtual void desktop_open_appointment(const Appointment&) =0;
+ virtual void desktop_open_calendar_app(const DateTime&) =0;
+ virtual void desktop_open_settings_app() =0;
+
+ virtual void phone_open_alarm_app() =0;
+ virtual void phone_open_appointment(const Appointment&) =0;
+ virtual void phone_open_calendar_app(const DateTime&) =0;
+ virtual void phone_open_settings_app() =0;
+
virtual void set_location(const std::string& zone, const std::string& name)=0;
+
void set_calendar_date(const DateTime&);
GActionGroup* action_group();
const std::shared_ptr<State> state() const;