-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
executable file
·82 lines (48 loc) · 1.38 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QProcess>
#include <QHttpServer>
#include <QHttpServerRouter>
#include <QMainWindow>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
void controlActionByHttp(int);
private slots:
void on_btn_playPause_clicked();
void on_btn_left_clicked();
void on_btn_right_clicked();
void on_btn_up_clicked();
void on_btn_down_clicked();
void on_btn_y2b_nextVideo_clicked();
void on_btn_y2b_fullscreen_clicked();
void on_btn_y2b_theater_clicked();
void on_btn_y2b_mute_clicked();
void on_btn_bLive_stopLive_clicked();
void on_btn_bLive_restartLast_clicked();
void on_cBox_modeSelect_currentIndexChanged(int index);
void on_cBox_nodeSelect_currentIndexChanged(int index);
private:
Ui::MainWindow *ui;
QString osascript;
QStringList processArguments;
QString aScript;
QProcess p;
QStringList myAppleScriptKeyList;
qint8 isLocalMode;
qint8 isServerMode;
void initialMyAppleScriptList();
void runAppleScript(QString);
void controlActions(QString);
QString generateMyAppleScript(int);
QHttpServer* myHttpServer;
void startHttpServer();
void stopHttpServer();
};
#endif // MAINWINDOW_H