-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
58 lines (48 loc) · 1.25 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QScreen>
//#include <QDesktopWidget>
#include <QWidget>
#include <QSoundEffect>
#include "MetaVoIP.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
Ui::MainWindow *ui;
QSoundEffect ringtone, outgoingRing;
QScreen *screen;
MetaVoIP *metaVoIP;
int screenX, screenY, callId;
QString sipState, sipUser, sipServer, sipPass;
void registerSip();
void getSettings();
void error(QString error);
void sipCommand(QString cmd, QString value);
private slots:
void getScreen();
void on_callState_changed(int role, int callId, int state, int status, QString remoteUri);
void on_saveButton_clicked();
void on_phoneButton_clicked();
void on_b0_clicked();
void on_b1_clicked();
void on_b2_clicked();
void on_b3_clicked();
void on_b4_clicked();
void on_b5_clicked();
void on_b6_clicked();
void on_b7_clicked();
void on_b8_clicked();
void on_b9_clicked();
void on_hangButton_clicked();
void on_actionAbout_Qt_triggered();
void on_actionAbout_triggered();
};
#endif // MAINWINDOW_H