summary refs log tree commit diff
path: root/src/dialogs/AcceptCall.h
blob: 00616c533b2e4735357e56fbf81edda1aa596a96 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once

#include <string>
#include <vector>

#include <QSharedPointer>
#include <QWidget>

class QComboBox;
class QPushButton;
class QString;
class UserSettings;

namespace dialogs {

class AcceptCall : public QWidget
{
        Q_OBJECT

public:
        AcceptCall(const QString &caller,
                   const QString &displayName,
                   const QString &roomName,
                   const QString &avatarUrl,
                   QSharedPointer<UserSettings> settings,
                   bool isVideo,
                   QWidget *parent = nullptr);

signals:
        void accept();
        void reject();

private:
        QPushButton *acceptBtn_     = nullptr;
        QPushButton *rejectBtn_     = nullptr;
        QComboBox *microphoneCombo_ = nullptr;
        QComboBox *cameraCombo_     = nullptr;
        std::vector<std::string> microphones_;
        std::vector<std::string> cameras_;
};

}