2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Windows 8/8.1/10 toast notifications support added

This commit is contained in:
John Preston
2015-08-11 22:50:48 +03:00
parent 1b16064db6
commit cf9737e762
14 changed files with 889 additions and 100 deletions

View File

@@ -67,6 +67,9 @@ public:
void psUpdateCounter();
bool psHasNativeNotifications();
void psCleanNotifyPhotosIn(int32 dt);
virtual QImage iconWithCounter(int size, int count, style::color bg, bool smallIcon) = 0;
~PsMainWindow();
@@ -77,6 +80,8 @@ public slots:
void psSavePosition(Qt::WindowState state = Qt::WindowActive);
void psShowTrayMenu();
void psCleanNotifyPhotos();
protected:
bool psHasTrayIcon() const {
@@ -100,6 +105,8 @@ private:
HMENU ps_menu;
HICON ps_iconBig, ps_iconSmall, ps_iconOverlay;
SingleTimer ps_cleanNotifyPhotosTimer;
void psDestroyIcons();
};