summary refs log tree commit diff
path: root/src/ActiveCallBar.h
diff options
context:
space:
mode:
authortrilene <trilene@runbox.com>2020-07-10 19:19:48 -0400
committertrilene <trilene@runbox.com>2020-07-10 19:19:48 -0400
commit7a206441c86cd2aa84cbbbc6be803f03b2f355ab (patch)
tree1fe734ab983daa8998eb23432bd560d7dabf7866 /src/ActiveCallBar.h
parentFix m.relates_to being sent as 'null' when not set in encrypted messages. (diff)
downloadnheko-7a206441c86cd2aa84cbbbc6be803f03b2f355ab.tar.xz
Support voice calls
Diffstat (limited to 'src/ActiveCallBar.h')
-rw-r--r--src/ActiveCallBar.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/ActiveCallBar.h b/src/ActiveCallBar.h
new file mode 100644

index 00000000..dd01e2ad --- /dev/null +++ b/src/ActiveCallBar.h
@@ -0,0 +1,26 @@ +#pragma once + +#include <QWidget> + +class QHBoxLayout; +class QLabel; +class QString; +class FlatButton; + +class ActiveCallBar : public QWidget +{ + Q_OBJECT + +public: + ActiveCallBar(QWidget *parent = nullptr); + +public slots: + void setCallParty(const QString &userid, const QString &displayName); + +private: + QHBoxLayout *topLayout_ = nullptr; + QLabel *callPartyLabel_ = nullptr; + FlatButton *muteBtn_ = nullptr; + int buttonSize_ = 32; + bool muted_ = false; +};