forked from 2600hz/kazoo-popup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
65 lines (47 loc) · 1.44 KB
/
mainwindow.h
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
class QSystemTrayIcon;
class WebSocketManager;
class InformerDialog;
class Caller;
class DebugDialog;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
void createTrayIcon();
bool isCorrectSettings() const;
Ui::MainWindow *ui;
QSystemTrayIcon *m_trayIcon;
QHash<QString, InformerDialog*> m_informerDialogsHash;
QHash<QString, InformerDialog*> m_attachedDialogsHash;
QHash<QString, QTimer*> m_timersHash;
WebSocketManager *m_wsMan;
DebugDialog *m_debugDialog = nullptr;
private slots:
void onChannelCreated(const QString &callId, const Caller &caller);
void onChannelAnswered(const QString &callId);
void onChannelAnsweredAnother(const QString &callId, const QString &calleeNumber, const QString &calleeName);
void onChannelDestroyed(const QString &callId);
void handleWsConnectionError();
void handleWsConnected();
void saveSettings();
void loadSettings();
void timeout();
void processDialogFinished();
void processDialogAttached(bool attached);
void processUpdateAvailable();
void processNoUpdate();
void updateApp();
void showDebugDialog();
void closeAllPopups();
void quit();
};
#endif // MAINWINDOW_H