diff options
author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2016-04-18 23:42:53 -0300 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-29 14:37:39 +0200 |
commit | bb7b522ef52b240718f33f37b577bacc4fea2db6 (patch) | |
tree | 47c2330884f01b896a40e14311c1ac71f8be169f /include/notifications | |
parent | d80df1bbd068f97457575fcd20f9664f2a5d11c4 (diff) | |
download | ayatana-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 'include/notifications')
-rw-r--r-- | include/notifications/notifications.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/notifications/notifications.h b/include/notifications/notifications.h index 0de1e23..2bb6694 100644 --- a/include/notifications/notifications.h +++ b/include/notifications/notifications.h @@ -50,6 +50,8 @@ public: void set_icon_name (const std::string& icon_name); + void set_start_time(uint64_t time); + /* Set an interval, after which the notification will automatically be closed. If not set, the notification server's default timeout is used. */ @@ -62,19 +64,24 @@ public: static constexpr char const * HINT_NONSHAPED_ICON {"x-canonical-non-shaped-icon"}; static constexpr char const * HINT_AFFIRMATIVE_HINT {"x-canonical-private-affirmative-tint"}; static constexpr char const * HINT_REJECTION_TINT {"x-canonical-private-rejection-tint"}; + static constexpr char const * HINT_INTERACTIVE {"x-canonical-switch-to-application"}; /* Add an action button. This may fail if the Engine doesn't support actions. @see Engine::supports_actions() */ void add_action (const std::string& action, const std::string& label); - /** Sets the closed callback. This will be called exactly once. */ + /** Sets the closed callback. This will be called exactly once. After notification dissapear */ void set_closed_callback (std::function<void(const std::string& action)>); + /** Sets the time-out callback. This will be called exactly once. */ + void set_missed_click_callback (std::function<void()>); + + private: friend class Engine; class Impl; - std::unique_ptr<Impl> impl; + std::shared_ptr<Impl> impl; }; /** |