From 508d1f5e14f0286bb3feaf74c4f143ce2a950234 Mon Sep 17 00:00:00 2001 From: Josip Delic Date: Sat, 25 Aug 2018 20:17:29 +0200 Subject: Update make it compile --- lib/room.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'lib/room.cpp') diff --git a/lib/room.cpp b/lib/room.cpp index 81e56161..ea1386ad 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -1313,38 +1313,38 @@ void Room::inviteCall(const QString& callId, const int lifetime, const QString& sdp) { Q_ASSERT(isCallSupported()); - CallInviteEvent rme(callId, lifetime, sdp); - connection()->callApi(id(), rme); + auto *evt = new CallInviteEvent(callId, lifetime, sdp); + postEvent(evt); } void Room::callCandidates(const QString& callId, const QJsonArray& candidates) { Q_ASSERT(isCallSupported()); - CallCandidatesEvent rme(callId, candidates); - connection()->callApi(id(), rme); + auto *evt = new CallCandidatesEvent(callId, candidates); + postEvent(evt); } void Room::answerCall(const QString& callId, const int lifetime, const QString& sdp) { Q_ASSERT(isCallSupported()); - CallAnswerEvent rme(callId, lifetime, sdp); - connection()->callApi(id(), rme); + auto *evt = new CallAnswerEvent(callId, lifetime, sdp); + postEvent(evt); } void Room::answerCall(const QString& callId, const QString& sdp) { Q_ASSERT(isCallSupported()); - CallAnswerEvent rme(callId, sdp); - connection()->callApi(id(), rme); + auto *evt = new CallAnswerEvent(callId, sdp); + postEvent(evt); } void Room::hangupCall(const QString& callId) { Q_ASSERT(isCallSupported()); - CallHangupEvent rme(callId); - connection()->callApi(id(), rme); + auto *evt = new CallHangupEvent(callId); + postEvent(evt); } void Room::getPreviousContent(int limit) -- cgit v1.2.3