Display the dialogs near the mouse for ease of use.
[dhcpcd-ui] / src / dhcpcd-qt / dhcpcd-wi.h
index 6ec15e0ed2928cf9ca06f3d8d1ed58dcda7654f3..fb52985a8837cf7a835c409264ee9f554cd205b6 100644 (file)
 
 #include "dhcpcd.h"
 
-class DhcpcdQt;
 class QMenu;
 class QSocketNotifier;
 class QTimer;
+class QWidgetAction;
+
+class DhcpcdQt;
+class DhcpcdSsidMenu;
 
 class DhcpcdWi : public QObject
 {
@@ -46,7 +49,7 @@ 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);
@@ -65,6 +68,7 @@ private:
        QTimer *retryOpenTimer;
 
        QMenu *menu;
+       void createMenuItem(QMenu *menu, DHCPCD_WI_SCAN *scan);
        void createMenu1(QMenu *parent);
 };