summary refs log tree commit diff
path: root/src/timeline/TimelineViewManager.h
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-10-30 03:21:14 +0100
committerGitHub <noreply@github.com>2020-10-30 03:21:14 +0100
commitb64e6e9cd59c97f3e4f88c08d6c13f2574921d80 (patch)
tree5e2ee4ecaf8523bc006e47bad7f277b0e21eee0f /src/timeline/TimelineViewManager.h
parentFix clipboard image pasting crash on macos (diff)
parentUnused variable (diff)
downloadnheko-b64e6e9cd59c97f3e4f88c08d6c13f2574921d80.tar.xz
Merge pull request #311 from trilene/webrtc-video
Support video calls
Diffstat (limited to 'src/timeline/TimelineViewManager.h')
-rw-r--r--src/timeline/TimelineViewManager.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/timeline/TimelineViewManager.h b/src/timeline/TimelineViewManager.h

index e42dd2f1..67eeee5b 100644 --- a/src/timeline/TimelineViewManager.h +++ b/src/timeline/TimelineViewManager.h
@@ -37,6 +37,7 @@ class TimelineViewManager : public QObject Q_PROPERTY( bool isNarrowView MEMBER isNarrowView_ READ isNarrowView NOTIFY narrowViewChanged) Q_PROPERTY(webrtc::State callState READ callState NOTIFY callStateChanged) + Q_PROPERTY(bool onVideoCall READ onVideoCall NOTIFY videoCallChanged) Q_PROPERTY(QString callPartyName READ callPartyName NOTIFY callPartyChanged) Q_PROPERTY(QString callPartyAvatarUrl READ callPartyAvatarUrl NOTIFY callPartyChanged) Q_PROPERTY(bool isMicMuted READ isMicMuted NOTIFY micMuteChanged) @@ -54,6 +55,8 @@ public: Q_INVOKABLE bool isInitialSync() const { return isInitialSync_; } bool isNarrowView() const { return isNarrowView_; } webrtc::State callState() const { return WebRTCSession::instance().state(); } + bool onVideoCall() const { return WebRTCSession::instance().isVideo(); } + Q_INVOKABLE void setVideoCallItem(); QString callPartyName() const { return callManager_->callPartyName(); } QString callPartyAvatarUrl() const { return callManager_->callPartyAvatarUrl(); } bool isMicMuted() const { return WebRTCSession::instance().isMicMuted(); } @@ -88,6 +91,7 @@ signals: void showRoomList(); void narrowViewChanged(); void callStateChanged(webrtc::State); + void videoCallChanged(); void callPartyChanged(); void micMuteChanged();