Move saving WPA configuration to libdhcpcd.
[dhcpcd-ui] / src / dhcpcd-qt / dhcpcd-ssidmenu.h
index 75a27eb26f6588afb0df62adc7cf64c945033f26..a9c9ec1cb323cadb86b5b508f9602e8336770c20 100644 (file)
@@ -32,22 +32,27 @@ class QRadioButton;
 class QLabel;
 class QProgressBar;
 
+class DhcpcdWi;
+
 class DhcpcdSsidMenu : public QWidget
 {
        Q_OBJECT
 
 public:
-       DhcpcdSsidMenu(QWidget *parent, DHCPCD_IF *ifp, DHCPCD_WI_SCAN *scan);
+       DhcpcdSsidMenu(QWidget *parent, DhcpcdWi *wi, DHCPCD_WI_SCAN *scan);
        ~DhcpcdSsidMenu() {};
 
+       DHCPCD_WI_SCAN *getScan();
+       void setScan(DHCPCD_WI_SCAN *scan);
+
 signals:
-       void selected(DHCPCD_IF *ifp, DHCPCD_WI_SCAN *scan);
+       void selected(DHCPCD_WI_SCAN *scan);
 
 private slots:
        bool eventFilter(QObject *obj, QEvent *event);
 
 private:
-       DHCPCD_IF *ifp;
+       DhcpcdWi *wi;
        DHCPCD_WI_SCAN *scan;
 
        QRadioButton *button;