Add an initial Qt port.
[dhcpcd-ui] / src / dhcpcd-qt / dhcpcd-wi.h
1 #ifndef DHCPCD_WI_H
2 #define DHCPCD_WI_H
3
4 #include <QObject>
5
6 #include "dhcpcd.h"
7
8 class DhcpcdQt;
9 class QSocketNotifier;
10 class QTimer;
11
12 class DhcpcdWi : public QObject
13 {
14         Q_OBJECT
15
16 public:
17         DhcpcdWi(DhcpcdQt *dhcpcdQt, DHCPCD_WPA *wpa);
18         ~DhcpcdWi();
19         DHCPCD_WPA *getWpa();
20
21         DHCPCD_WI_SCAN *getScans();
22         void setScans(DHCPCD_WI_SCAN *scans);
23
24 private slots:
25         void dispatch();
26         void wpaOpen();
27
28 private:
29         DhcpcdQt *dhcpcdQt;
30         DHCPCD_WPA *wpa;
31         DHCPCD_WI_SCAN *scans;
32
33         QSocketNotifier *notifier;
34         QTimer *retryOpenTimer;
35 };
36
37 #endif