mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-21 12:28:26 -04:00
Added blinking of the systray icon for the notifier and enabled it for private chat.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5721 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a6cb81fd43
commit
179618edbf
3 changed files with 40 additions and 0 deletions
|
@ -28,6 +28,7 @@
|
|||
class QToolBar;
|
||||
class QToolButton;
|
||||
class QAction;
|
||||
class QTimer;
|
||||
|
||||
class UserNotify : public QObject
|
||||
{
|
||||
|
@ -52,11 +53,13 @@ public slots:
|
|||
|
||||
private slots:
|
||||
void trayIconClicked(QSystemTrayIcon::ActivationReason e = QSystemTrayIcon::Trigger);
|
||||
void timer();
|
||||
|
||||
private:
|
||||
virtual QIcon getIcon() { return QIcon(); }
|
||||
virtual QIcon getMainIcon(bool /*hasNew*/) { return QIcon(); }
|
||||
virtual unsigned int getNewCount() { return 0; }
|
||||
virtual bool isBlinking() { return false; }
|
||||
|
||||
virtual QString getTrayMessage(bool plural);
|
||||
virtual QString getNotifyMessage(bool plural);
|
||||
|
@ -69,6 +72,8 @@ private:
|
|||
QAction *mNotifyIcon;
|
||||
unsigned int mNewCount;
|
||||
QString mButtonText;
|
||||
QTimer *mTimer;
|
||||
bool mLastBlinking;
|
||||
};
|
||||
|
||||
#endif // USERNOTIFY_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue