aboutsummaryrefslogtreecommitdiff
path: root/include/datetime
diff options
context:
space:
mode:
Diffstat (limited to 'include/datetime')
-rw-r--r--include/datetime/actions-live.h17
-rw-r--r--include/datetime/actions.h12
2 files changed, 10 insertions, 19 deletions
diff --git a/include/datetime/actions-live.h b/include/datetime/actions-live.h
index 1f84659..1eb34ec 100644
--- a/include/datetime/actions-live.h
+++ b/include/datetime/actions-live.h
@@ -40,21 +40,16 @@ public:
virtual ~LiveActions() =default;
bool desktop_has_calendar_app() const override;
- void desktop_open_alarm_app() override;
- void desktop_open_appointment(const Appointment&, const DateTime&) override;
- void desktop_open_calendar_app(const DateTime&) override;
- void desktop_open_settings_app() override;
-
- void phone_open_alarm_app() override;
- void phone_open_appointment(const Appointment&, const DateTime &) override;
- void phone_open_calendar_app(const DateTime&) override;
- void phone_open_settings_app() override;
+ void open_alarm_app() override;
+ void open_appointment(const Appointment&, const DateTime&) override;
+ void open_calendar_app(const DateTime&) override;
+ void open_settings_app() override;
void set_location(const std::string& zone, const std::string& name) override;
protected:
- virtual void execute_command(const std::string& command);
- virtual void dispatch_url(const std::string& url);
+
+ void lomiri_open_appointment(const Appointment& appt, const DateTime& date);
};
} // namespace datetime
diff --git a/include/datetime/actions.h b/include/datetime/actions.h
index ea163e4..d866b00 100644
--- a/include/datetime/actions.h
+++ b/include/datetime/actions.h
@@ -44,15 +44,11 @@ class Actions
public:
virtual bool desktop_has_calendar_app() const =0;
- virtual void desktop_open_alarm_app() =0;
- virtual void desktop_open_appointment(const Appointment&, const DateTime&) =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&, const DateTime&) =0;
- virtual void phone_open_calendar_app(const DateTime&) =0;
- virtual void phone_open_settings_app() =0;
+ virtual void open_alarm_app() =0;
+ virtual void open_appointment(const Appointment&, const DateTime&) =0;
+ virtual void open_calendar_app(const DateTime&) =0;
+ virtual void open_settings_app() =0;
virtual void set_location(const std::string& zone, const std::string& name)=0;