aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-04-18 23:42:53 -0300
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 14:37:39 +0200
commitbb7b522ef52b240718f33f37b577bacc4fea2db6 (patch)
tree47c2330884f01b896a40e14311c1ac71f8be169f /src/main.cpp
parentd80df1bbd068f97457575fcd20f9664f2a5d11c4 (diff)
downloadayatana-indicator-datetime-bb7b522ef52b240718f33f37b577bacc4fea2db6.tar.gz
ayatana-indicator-datetime-bb7b522ef52b240718f33f37b577bacc4fea2db6.tar.bz2
ayatana-indicator-datetime-bb7b522ef52b240718f33f37b577bacc4fea2db6.zip
Post message on messaging menu if the notification get timeout.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index bb77c0e..f9a934a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -156,7 +156,10 @@ main(int /*argc*/, char** /*argv*/)
auto on_snooze = [snooze_planner](const Appointment& appointment, const Alarm& alarm) {
snooze_planner->add(appointment, alarm);
};
- auto on_ok = [](const Appointment&, const Alarm&){};
+ auto on_ok = [actions](const Appointment& app, const Alarm&){
+ //TODO: add support for desktop
+ actions->phone_open_appointment(app, app.begin);
+ };
auto on_alarm_reached = [&engine, &snap, &on_snooze, &on_ok](const Appointment& appointment, const Alarm& alarm) {
(*snap)(appointment, alarm, on_snooze, on_ok);
engine->disable_ubuntu_alarm(appointment);