Commit e834b879 authored by Sylvain Berfini's avatar Sylvain Berfini

Prepared audio mute button in incall view

parent e29c3689
...@@ -444,6 +444,18 @@ void CallModel::setMicroMuted (bool status) { ...@@ -444,6 +444,18 @@ void CallModel::setMicroMuted (bool status) {
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
bool CallModel::getAudioMuted () const {
// TODO
return false;
}
void CallModel::setAudioMuted (bool status) {
// TODO
emit audioMutedChanged(status);
}
// -----------------------------------------------------------------------------
bool CallModel::getPausedByUser () const { bool CallModel::getPausedByUser () const {
return mPausedByUser; return mPausedByUser;
} }
......
...@@ -45,6 +45,7 @@ class CallModel : public QObject { ...@@ -45,6 +45,7 @@ class CallModel : public QObject {
Q_PROPERTY(float speakerVu READ getSpeakerVu CONSTANT); Q_PROPERTY(float speakerVu READ getSpeakerVu CONSTANT);
Q_PROPERTY(bool microMuted READ getMicroMuted WRITE setMicroMuted NOTIFY microMutedChanged); Q_PROPERTY(bool microMuted READ getMicroMuted WRITE setMicroMuted NOTIFY microMutedChanged);
Q_PROPERTY(bool audioMuted READ getAudioMuted WRITE setAudioMuted NOTIFY audioMutedChanged);
Q_PROPERTY(bool pausedByUser READ getPausedByUser WRITE setPausedByUser NOTIFY statusChanged); Q_PROPERTY(bool pausedByUser READ getPausedByUser WRITE setPausedByUser NOTIFY statusChanged);
Q_PROPERTY(bool videoEnabled READ getVideoEnabled WRITE setVideoEnabled NOTIFY statusChanged); Q_PROPERTY(bool videoEnabled READ getVideoEnabled WRITE setVideoEnabled NOTIFY statusChanged);
...@@ -126,6 +127,7 @@ signals: ...@@ -126,6 +127,7 @@ signals:
void callErrorChanged (const QString &callError); void callErrorChanged (const QString &callError);
void isInConferenceChanged (bool status); void isInConferenceChanged (bool status);
void microMutedChanged (bool status); void microMutedChanged (bool status);
void audioMutedChanged (bool status);
void recordingChanged (bool status); void recordingChanged (bool status);
void statsUpdated (); void statsUpdated ();
void statusChanged (CallStatus status); void statusChanged (CallStatus status);
...@@ -162,6 +164,9 @@ private: ...@@ -162,6 +164,9 @@ private:
bool getMicroMuted () const; bool getMicroMuted () const;
void setMicroMuted (bool status); void setMicroMuted (bool status);
bool getAudioMuted () const;
void setAudioMuted (bool status);
bool getPausedByUser () const; bool getPausedByUser () const;
void setPausedByUser (bool status); void setPausedByUser (bool status);
......
...@@ -328,11 +328,11 @@ Rectangle { ...@@ -328,11 +328,11 @@ Rectangle {
ActionSwitch { ActionSwitch {
id: speaker id: speaker
enabled: true enabled: !call.audioMuted
icon: 'speaker' icon: 'speaker'
iconSize: CallStyle.actionArea.iconSize iconSize: CallStyle.actionArea.iconSize
onClicked: console.log('TODO') onClicked: incall.call.audioMuted = enabled
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment