Remove the DhcpcdWi instance if the wpa_supplicant connection is lost.
[dhcpcd-ui] / src / dhcpcd-qt / dhcpcd-qt.h
index fd4952a7e16b6dd253deeeb60d6c21d87ffebdba..efa1bf03c3db5385c77881dfdaf5574f320320f2 100644 (file)
@@ -43,6 +43,7 @@ class QAction;
 class QDialog;
 class QLabel;
 class QMenu;
+class QPoint;
 class QPushButton;
 class QSocketNotifier;
 class QTimer;
@@ -65,6 +66,9 @@ public:
 
        static void dhcpcd_wpa_scan_cb(DHCPCD_WPA *wpa, void *d);
        void scanCallback(DHCPCD_WPA *wpa);
+       static void dhcpcd_wpa_status_cb(DHCPCD_WPA *wpa, const char *status,
+           void *d);
+       void wpaStatusCallback(DHCPCD_WPA *wpa, const char *status);
 
        static QIcon getIcon(QString category, QString name);
 
@@ -74,17 +78,15 @@ protected:
        void closeEvent(QCloseEvent *event);
 
 private slots:
+       void tryOpen();
        void animate();
        void dispatch();
        void showAbout();
        void showPreferences();
        void iconActivated(QSystemTrayIcon::ActivationReason reason);
 
-       void connectSsid(DHCPCD_IF *ifp, DHCPCD_WI_SCAN *scan);
-
 private:
        DHCPCD_CONNECTION *con;
-       bool tryOpen();
        QSocketNotifier *notifier;
        QTimer *retryOpenTimer;
        QList<DhcpcdWi *> *wis;
@@ -116,6 +118,7 @@ private:
        QAction *aboutAction;
        QMenu *trayIconMenu;
        QMenu *ssidMenu;
+       QPoint ssidMenuPos;
 
        void notify(QString &title, QString &msg,
            QSystemTrayIcon::MessageIcon icon = QSystemTrayIcon::Information);