aboutsummaryrefslogtreecommitdiff
path: root/include/datetime
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-01-21 23:29:19 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-01-21 23:29:19 -0600
commit74f8897902c99180e721d616614a9962c819d90b (patch)
treeb38892e2f0d82688d505fdb5e73a3da31588d316 /include/datetime
parent8910c3c25d9c3c77aaa987fdc366cd77f63d376c (diff)
downloadayatana-indicator-datetime-74f8897902c99180e721d616614a9962c819d90b.tar.gz
ayatana-indicator-datetime-74f8897902c99180e721d616614a9962c819d90b.tar.bz2
ayatana-indicator-datetime-74f8897902c99180e721d616614a9962c819d90b.zip
add LiveActions implementation and unit tests
Diffstat (limited to 'include/datetime')
-rw-r--r--include/datetime/actions-live.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/datetime/actions-live.h b/include/datetime/actions-live.h
index 3d04660..1947e6e 100644
--- a/include/datetime/actions-live.h
+++ b/include/datetime/actions-live.h
@@ -36,7 +36,7 @@ namespace datetime {
class LiveActions: public Actions
{
public:
- LiveActions(const std::shared_ptr<State>& state): Actions(state) {}
+ LiveActions(const std::shared_ptr<State>& state_in): Actions(state_in) {}
~LiveActions() =default;
void open_desktop_settings();
@@ -47,6 +47,10 @@ public:
void open_appointment(const std::string& uid);
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);
+ virtual void dispatch_url(const std::string& url);
};
} // namespace datetime