aboutsummaryrefslogtreecommitdiff
path: root/lib/room.h
diff options
context:
space:
mode:
authorJosip Delic <delijati@googlemail.com>2018-08-25 13:33:24 +0200
committerJosip Delic <delijati@googlemail.com>2018-08-25 13:33:24 +0200
commit41b408334619a6e755fffbef1c40e7165ab0e0f7 (patch)
tree5b80abd7d64cf40dd566c7146d198323a3a32074 /lib/room.h
parente507ca582b1b243ee4422a4a3e0b11b28697cb16 (diff)
downloadlibquotient-41b408334619a6e755fffbef1c40e7165ab0e0f7.tar.gz
libquotient-41b408334619a6e755fffbef1c40e7165ab0e0f7.zip
Update marius voip to new libqtmc
Diffstat (limited to 'lib/room.h')
-rw-r--r--lib/room.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/room.h b/lib/room.h
index 75cd7354..fa5762e2 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -304,6 +304,18 @@ namespace QMatrixClient
QJsonObject toJson() const;
void updateData(SyncRoomData&& data );
void setJoinState( JoinState state );
+ bool processCall(Room* room, const RoomEvent* event);
+
+ Q_INVOKABLE void inviteCall(const QString& callId,
+ const int lifetime, const QString& sdp);
+ Q_INVOKABLE void callCandidates(const QString& callId,
+ const QJsonArray& candidates);
+ Q_INVOKABLE void answerCall(const QString& callId, const int lifetime,
+ const QString& sdp);
+ Q_INVOKABLE void answerCall(const QString& callId,
+ const QString& sdp);
+ Q_INVOKABLE void hangupCall(const QString& callId);
+ Q_INVOKABLE bool isCallSupported() const;
public slots:
QString postMessage(const QString& plainText, MessageEventType type);
@@ -403,6 +415,8 @@ namespace QMatrixClient
void fileTransferFailed(QString id, QString errorMessage = {});
void fileTransferCancelled(QString id);
+ void callEvent(Room* room, const RoomEvent* event);
+
protected:
/// Returns true if any of room names/aliases has changed
virtual bool processStateEvent(const RoomEvent& e);