-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnwaccessstatut.h
53 lines (43 loc) · 1.17 KB
/
nwaccessstatut.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
#ifndef NWACCESSSTATUT_H
#define NWACCESSSTATUT_H
#include <QSettings>
#include <QTimer>
#include <QWidget>
#include <emunwaccessclient.h>
#include <Button-Mash/localcontroller.h>
namespace Ui {
class NWAccessStatut;
}
class NWAccessStatut : public QWidget
{
Q_OBJECT
public:
explicit NWAccessStatut(QWidget *parent = nullptr);
~NWAccessStatut();
void start();
void stop();
QString readyString();
QString unreadyString();
void setSettings(QSettings* set);
void setToShow();
LocalController* localController;
LocalControllerMapping mapping;
signals:
void readyForSaveState();
void unReadyForSaveState();
void localControllerChanged();
private slots:
void on_refreshPushButton_clicked();
void on_mappingButton_clicked();
private:
Ui::NWAccessStatut *ui;
EmuNWAccessClient* client;
bool checkingInfo;
bool checkingStatus;
QSettings* settings;
QTimer checkStatusTimer;
void onTimerTimeout();
void listController();
QList<LocalControllerInfos> controllersInfos;
};
#endif // NWACCESSSTATUT_H