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:
thunder2 2012-10-24 13:24:38 +00:00
parent a6cb81fd43
commit 179618edbf
3 changed files with 40 additions and 0 deletions

View file

@ -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