diff options
author | Josip Delic <delijati@googlemail.com> | 2018-08-25 13:33:24 +0200 |
---|---|---|
committer | Josip Delic <delijati@googlemail.com> | 2018-08-25 13:33:24 +0200 |
commit | 41b408334619a6e755fffbef1c40e7165ab0e0f7 (patch) | |
tree | 5b80abd7d64cf40dd566c7146d198323a3a32074 /lib/room.h | |
parent | e507ca582b1b243ee4422a4a3e0b11b28697cb16 (diff) | |
download | libquotient-41b408334619a6e755fffbef1c40e7165ab0e0f7.tar.gz libquotient-41b408334619a6e755fffbef1c40e7165ab0e0f7.zip |
Update marius voip to new libqtmc
Diffstat (limited to 'lib/room.h')
-rw-r--r-- | lib/room.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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); |