Added sounds when message has arrived and download was finished.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5717 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-10-23 20:54:07 +00:00
parent c1c9894daf
commit b3d1e75455
5 changed files with 53 additions and 8 deletions

View file

@ -640,6 +640,8 @@ void NotifyQt::UpdateGUI()
switch(type)
{
case RS_POPUP_MSG:
soundManager->play(SOUND_MESSAGE_ARRIVED);
if (popupflags & RS_POPUP_MSG)
{
toaster = new Toaster(new MessageToaster(id, QString::fromUtf8(title.c_str()), QString::fromUtf8(msg.c_str())));
@ -654,6 +656,8 @@ void NotifyQt::UpdateGUI()
}
break;
case RS_POPUP_DOWNLOAD:
soundManager->play(SOUND_DOWNLOAD_READY);
if (popupflags & RS_POPUP_DOWNLOAD)
{
/* id = file hash */