aboutsummaryrefslogtreecommitdiff
path: root/include/datetime
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-03-09 22:32:19 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-03-09 22:32:19 -0500
commit379aeeed3dc02c1088f2a50f1ec3ec880d7d4b76 (patch)
tree39dd136cd3f54ee903ba757c461d9f0f502315ce /include/datetime
parent462e8e6d8e46475ea3222056f65ff40823e9e0bf (diff)
parentdf650bec0f1c634ee773c150b451c3bdd8ed4e65 (diff)
downloadayatana-indicator-datetime-379aeeed3dc02c1088f2a50f1ec3ec880d7d4b76.tar.gz
ayatana-indicator-datetime-379aeeed3dc02c1088f2a50f1ec3ec880d7d4b76.tar.bz2
ayatana-indicator-datetime-379aeeed3dc02c1088f2a50f1ec3ec880d7d4b76.zip
Don't list an 'Add Event…' button if there's not a calendar app available
Diffstat (limited to 'include/datetime')
-rw-r--r--include/datetime/actions-live.h1
-rw-r--r--include/datetime/actions.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/datetime/actions-live.h b/include/datetime/actions-live.h
index 3607836..a24b844 100644
--- a/include/datetime/actions-live.h
+++ b/include/datetime/actions-live.h
@@ -42,6 +42,7 @@ public:
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);
diff --git a/include/datetime/actions.h b/include/datetime/actions.h
index 99e78f5..2c4217c 100644
--- a/include/datetime/actions.h
+++ b/include/datetime/actions.h
@@ -45,6 +45,7 @@ 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;