Fix wpa stopping and describe DEPARTED a bit better.
[dhcpcd-ui] / src / dhcpcd-qt / dhcpcd-wi.h
index d46c0b3fef0d2300d2e5d5e637a6b3b2c657833d..e484f59270b4119fbe10816f260bf2a3a29f2616 100644 (file)
@@ -32,6 +32,7 @@
 #include "dhcpcd.h"
 
 class DhcpcdQt;
+class QMenu;
 class QSocketNotifier;
 class QTimer;
 
@@ -45,11 +46,15 @@ public:
        DHCPCD_WPA *getWpa();
 
        DHCPCD_WI_SCAN *getScans();
-       void setScans(DHCPCD_WI_SCAN *scans);
+       bool setScans(DHCPCD_WI_SCAN *scans);
+
+       void createMenu(QMenu *parent);
+       QMenu *createIfMenu(QMenu *parent);
 
 private slots:
        void dispatch();
        void wpaOpen();
+       void connectSsid(DHCPCD_WI_SCAN *scan);
 
 private:
        DhcpcdQt *dhcpcdQt;
@@ -58,6 +63,10 @@ private:
 
        QSocketNotifier *notifier;
        QTimer *retryOpenTimer;
+
+       QMenu *menu;
+       void createMenuItem(QMenu *menu, DHCPCD_WI_SCAN *scan);
+       void createMenu1(QMenu *parent);
 };
 
 #endif