diff options
author | Josip Delic <delijati@googlemail.com> | 2018-08-25 20:17:29 +0200 |
---|---|---|
committer | Josip Delic <delijati@googlemail.com> | 2018-08-25 20:17:29 +0200 |
commit | 508d1f5e14f0286bb3feaf74c4f143ce2a950234 (patch) | |
tree | 173848f86b0e89803b8c2ec7562b148500077337 /lib/room.cpp | |
parent | 41b408334619a6e755fffbef1c40e7165ab0e0f7 (diff) | |
download | libquotient-508d1f5e14f0286bb3feaf74c4f143ce2a950234.tar.gz libquotient-508d1f5e14f0286bb3feaf74c4f143ce2a950234.zip |
Update make it compile
Diffstat (limited to 'lib/room.cpp')
-rw-r--r-- | lib/room.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
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<SendMessageJob>(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<SendMessageJob>(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<SendMessageJob>(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<SendMessageJob>(id(), rme); + auto *evt = new CallAnswerEvent(callId, sdp); + postEvent(evt); } void Room::hangupCall(const QString& callId) { Q_ASSERT(isCallSupported()); - CallHangupEvent rme(callId); - connection()->callApi<SendMessageJob>(id(), rme); + auto *evt = new CallHangupEvent(callId); + postEvent(evt); } void Room::getPreviousContent(int limit) |