mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Added placeholders for platform dependent implementations of tray.
This commit is contained in:
@@ -15,6 +15,26 @@ class Tray final {
|
||||
public:
|
||||
Tray();
|
||||
|
||||
[[nodiscard]] rpl::producer<> aboutToShowRequests() const;
|
||||
[[nodiscard]] rpl::producer<> showFromTrayRequests() const;
|
||||
[[nodiscard]] rpl::producer<> hideToTrayRequests() const;
|
||||
[[nodiscard]] rpl::producer<> iconClicks() const;
|
||||
|
||||
void createIcon();
|
||||
void destroyIcon();
|
||||
|
||||
void updateIcon();
|
||||
|
||||
void createMenu();
|
||||
void destroyMenu();
|
||||
|
||||
void addAction(rpl::producer<QString> text, Fn<void()> &&callback);
|
||||
|
||||
void showTrayMessage() const;
|
||||
[[nodiscard]] bool hasTrayMessageSupport() const;
|
||||
|
||||
[[nodiscard]] rpl::lifetime &lifetime();
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user