aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-04-28 11:56:11 -0300
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 14:37:39 +0200
commita6422822a9b9a18bae705e56f2b53ee0b61ff1dc (patch)
tree87b245835da758b195fca2228db01dceae04f003 /include
parent0fb4679e9043ba2591055f46445294cf508be0fb (diff)
downloadayatana-indicator-datetime-a6422822a9b9a18bae705e56f2b53ee0b61ff1dc.tar.gz
ayatana-indicator-datetime-a6422822a9b9a18bae705e56f2b53ee0b61ff1dc.tar.bz2
ayatana-indicator-datetime-a6422822a9b9a18bae705e56f2b53ee0b61ff1dc.zip
Detect desktop to launch applications.
Diffstat (limited to 'include')
-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;