mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
c1c9894daf
commit
b3d1e75455
@ -26,6 +26,8 @@
|
||||
|
||||
#define SOUND_NEW_CHAT_MESSAGE "NewChatMessage"
|
||||
#define SOUND_USER_ONLINE "User_go_Online"
|
||||
#define SOUND_MESSAGE_ARRIVED "MessageArrived"
|
||||
#define SOUND_DOWNLOAD_READY "DownloadReady"
|
||||
|
||||
class SoundEvents
|
||||
{
|
||||
|
@ -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 */
|
||||
|
@ -130,6 +130,12 @@ void SoundPage::load()
|
||||
groupItem = addGroup(tr("Chatmessage"));
|
||||
addItem(groupItem, tr("New Msg"), SOUND_NEW_CHAT_MESSAGE);
|
||||
|
||||
groupItem = addGroup(tr("Message"));
|
||||
addItem(groupItem, tr("Message arrived"), SOUND_MESSAGE_ARRIVED);
|
||||
|
||||
groupItem = addGroup(tr("Download"));
|
||||
addItem(groupItem, tr("Download ready"), SOUND_DOWNLOAD_READY);
|
||||
|
||||
/* add plugin events */
|
||||
int pluginCount = rsPlugins->nbPlugins();
|
||||
for (int i = 0; i < pluginCount; ++i) {
|
||||
|
@ -3392,7 +3392,7 @@ Das ist nützlich, wenn du eine externe Festplatte freigibst und die Dateien nic
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'Arial'; font-size:8pt; font-weight:400; font-style:normal; text-decoration:none;">
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt; font-weight:600;">Friends</span></p></body></html></source>
|
||||
<translation><html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
<translation type="obsolete"><html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'Arial'; font-size:8pt; font-weight:400; font-style:normal; text-decoration:none;">
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt; font-weight:600;">Freunde</span></p></body></html></translation>
|
||||
@ -4849,6 +4849,10 @@ p, li { white-space: pre-wrap; }
|
||||
<source>Friends</source>
|
||||
<translation>Freunde</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Search</source>
|
||||
<translation type="unfinished">Suchen</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GamesDialog</name>
|
||||
@ -10657,6 +10661,22 @@ p, li { white-space: pre-wrap; }
|
||||
<source>Sound</source>
|
||||
<translation>Ton</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Message</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Message arrived</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Download</source>
|
||||
<translation type="unfinished">Herunterladen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Download ready</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SoundStatus</name>
|
||||
|
@ -3333,13 +3333,6 @@ you plug it in.</source>
|
||||
</context>
|
||||
<context>
|
||||
<name>ExampleDialog</name>
|
||||
<message>
|
||||
<source><html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'Arial'; font-size:8pt; font-weight:400; font-style:normal; text-decoration:none;">
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt; font-weight:600;">Friends</span></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>#</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@ -4792,6 +4785,10 @@ p, li { white-space: pre-wrap; }
|
||||
<source>Friends</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Search</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GamesDialog</name>
|
||||
@ -10406,6 +10403,22 @@ p, li { white-space: pre-wrap; }
|
||||
<source>Sound</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Message</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Message arrived</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Download</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Download ready</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SoundStatus</name>
|
||||
|
Loading…
Reference in New Issue
Block a user