diff options
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); |