forked from kuny-yti/SyncPlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathctrl_sync.h
More file actions
56 lines (43 loc) · 1.43 KB
/
Copy pathctrl_sync.h
File metadata and controls
56 lines (43 loc) · 1.43 KB
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
#ifndef CTRL_SYNC_H
#define CTRL_SYNC_H
#include "ui_ctrl_sync.h"
#include "command.h"
#include "sync_data.h"
#include <QTimer>
#include <QHostAddress>
class ctrl_sync : public QWidget, private Ui::ctrl_sync
{
Q_OBJECT
public:
explicit ctrl_sync(QWidget *parent = 0);
~ctrl_sync();
signals:
void sig_local_type(eLocalTypes);
void sig_local_mode(eLocalTypes, const QHostAddress &ad);
void sig_sync_threshold(int val);
void sig_sync_mode(eSyncModes);
void sig_auto_dectect(bool );
public slots:
void on_update_cfg(command &cmd);
//void on_ping_host(const tPingReplys &pr); // 从机-ping主机
void on_slave_list(bool s, const QString &addr);// 主机-所有从机地址列表
void on_online_host(bool s); // 从机-主机是否在线
protected:
void changeEvent(QEvent *e);
private slots:
// 脱机模式
void on_but_not_toggled(bool checked);
// 从机模式
void on_but_slave_toggled(bool checked);
// 主机模式
void on_but_host_toggled(bool checked);
void on_ping_slave(); // 主机-ping所有从机
void on_spinBox_valueChanged(int arg1);
void on_cb_control_stateChanged(int arg1);
void on_cb_timestamp_stateChanged(int arg1);
void on_cb_dectect_play_stateChanged(int arg1);
private:
//net_utils network;
QTimer timer;
};
#endif // CTRL_SYNC_H