mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
Prepared audio mute button in incall view
This commit is contained in:
parent
e29c368987
commit
e834b879f9
3 changed files with 19 additions and 2 deletions
|
|
@ -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 {
|
||||
return mPausedByUser;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ class CallModel : public QObject {
|
|||
Q_PROPERTY(float speakerVu READ getSpeakerVu CONSTANT);
|
||||
|
||||
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 videoEnabled READ getVideoEnabled WRITE setVideoEnabled NOTIFY statusChanged);
|
||||
|
|
@ -126,6 +127,7 @@ signals:
|
|||
void callErrorChanged (const QString &callError);
|
||||
void isInConferenceChanged (bool status);
|
||||
void microMutedChanged (bool status);
|
||||
void audioMutedChanged (bool status);
|
||||
void recordingChanged (bool status);
|
||||
void statsUpdated ();
|
||||
void statusChanged (CallStatus status);
|
||||
|
|
@ -161,6 +163,9 @@ private:
|
|||
|
||||
bool getMicroMuted () const;
|
||||
void setMicroMuted (bool status);
|
||||
|
||||
bool getAudioMuted () const;
|
||||
void setAudioMuted (bool status);
|
||||
|
||||
bool getPausedByUser () const;
|
||||
void setPausedByUser (bool status);
|
||||
|
|
|
|||
|
|
@ -328,11 +328,11 @@ Rectangle {
|
|||
ActionSwitch {
|
||||
id: speaker
|
||||
|
||||
enabled: true
|
||||
enabled: !call.audioMuted
|
||||
icon: 'speaker'
|
||||
iconSize: CallStyle.actionArea.iconSize
|
||||
|
||||
onClicked: console.log('TODO')
|
||||
onClicked: incall.call.audioMuted = enabled
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue