[SCM] ktp-contact-applet packaging branch, master, updated. debian/15.12.1-1-966-gde83ac5

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:19:08 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-desktop-applets.git;a=commitdiff;h=c796cc5

The following commit has been merged in the master branch:
commit c796cc5faf7446ffe6df477b618a608064bec2a8
Author: Alexandr Akulich <akulichalexander at gmail.com>
Date:   Mon Nov 25 16:16:03 2013 +0100

    Contact: Implemented audio/video calls
    
    Implemented startAudioCall(), startVideoCall().
    
    REVIEW: 113832
---
 contact/src/contact-wrapper.cpp | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/contact/src/contact-wrapper.cpp b/contact/src/contact-wrapper.cpp
index db05f3b..b516960 100644
--- a/contact/src/contact-wrapper.cpp
+++ b/contact/src/contact-wrapper.cpp
@@ -234,12 +234,22 @@ void ContactWrapper::startTextChat()
 
 void ContactWrapper::startAudioCall()
 {
-    kDebug();
+    if (!m_account || !m_contact) {
+        return;
+    }
+
+    Tp::PendingChannelRequest *channelRequest = KTp::Actions::startAudioCall(m_account, m_contact);
+    connect(channelRequest, SIGNAL(finished(Tp::PendingOperation*)), this, SLOT(genericOperationFinished(Tp::PendingOperation*)));
 }
 
 void ContactWrapper::startVideoCall()
 {
-    kDebug();
+    if (!m_account || !m_contact) {
+        return;
+    }
+
+    Tp::PendingChannelRequest *channelRequest = KTp::Actions::startAudioVideoCall(m_account, m_contact);
+    connect(channelRequest, SIGNAL(finished(Tp::PendingOperation*)), this, SLOT(genericOperationFinished(Tp::PendingOperation*)));
 }
 
 void ContactWrapper::startFileTransfer()

-- 
ktp-contact-applet packaging



More information about the pkg-kde-commits mailing list