Show count of new messages in the toolbar.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5394 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-08-08 10:48:29 +00:00
parent 121d49e5d1
commit 2921cbaf23
7 changed files with 85 additions and 17 deletions

View file

@ -27,7 +27,7 @@
TransferUserNotify::TransferUserNotify(QObject *parent) :
UserNotify(parent)
{
newCount = 0;
newTransferCount = 0;
connect(NotifyQt::getInstance(), SIGNAL(downloadCompleteCountChanged(int)), this, SLOT(downloadCountChanged(int)));
}
@ -80,7 +80,7 @@ QIcon TransferUserNotify::getMainIcon(bool hasNew)
unsigned int TransferUserNotify::getNewCount()
{
return newCount;
return newTransferCount;
}
QString TransferUserNotify::getTrayMessage(bool plural)
@ -100,6 +100,6 @@ void TransferUserNotify::iconClicked()
void TransferUserNotify::downloadCountChanged(int count)
{
newCount = count;
newTransferCount = count;
updateIcon();
}