[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdenetwork/kopete/protocols/wlm
From:       Tiago Salem Herrmann <tiagosh () gmail ! com>
Date:       2009-06-30 21:38:42
Message-ID: 1246397922.305533.22357.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 989767 by salem:

- request voice clip to the other contact when we receive a notification


 M  +13 -2     wlmchatmanager.cpp  


--- trunk/KDE/kdenetwork/kopete/protocols/wlm/wlmchatmanager.cpp #989766:989767
@@ -468,9 +468,20 @@
                                 const MSN::Passport & from,
                                 const QString & msnobject)
 {
-    Q_UNUSED( conn );
     Q_UNUSED( from );
-    Q_UNUSED( msnobject );
+    WlmChatSession *chat = chatSessions[conn];
+    if (!chat)
+        return;
+    unsigned int sessionID = chat->generateSessionID();
+
+    KTemporaryFile voiceClip;
+    voiceClip.setPrefix("kopete_voiceclip-");
+    voiceClip.setSuffix(".wav");
+    voiceClip.setAutoRemove(false);
+    voiceClip.open();
+    chat->addFileToRemove(voiceClip.fileName());
+    conn->requestVoiceClip(sessionID, voiceClip.fileName().toAscii().data(), 
+            msnobject.toAscii().data());
 }
 
 void

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic