We changed enough of dhcpcd-qt in 2017 to warrant a copyright bump.
[dhcpcd-ui] / src / dhcpcd-qt / dhcpcd-wi.h
index 88ce6de3fcd5dcaa633ba629815a05fc12530007..914574bc17d586ef7a91cf067e012f0c22c8ffb1 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * dhcpcd-qt
- * Copyright 2014 Roy Marples <roy@marples.name>
+ * Copyright 2014-2017 Roy Marples <roy@marples.name>
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -38,6 +38,7 @@ class QTimer;
 class QWidgetAction;
 
 class DhcpcdQt;
+class DhcpcdSsid;
 class DhcpcdSsidMenu;
 
 class DhcpcdWi : public QObject
@@ -48,6 +49,8 @@ public:
        DhcpcdWi(DhcpcdQt *dhcpcdQt, DHCPCD_WPA *wpa);
        ~DhcpcdWi();
        DHCPCD_WPA *getWpa();
+       bool open();
+       void close();
 
        DHCPCD_WI_SCAN *getScans();
        bool setScans(DHCPCD_WI_SCAN *scans);
@@ -57,16 +60,21 @@ public:
 
 private slots:
        void dispatch();
-       void wpaOpen();
+       void ping();
        void connectSsid(DHCPCD_WI_SCAN *scan);
+       void scan();
+       void menuHidden();
+       void menuShown();
 
 private:
        DhcpcdQt *dhcpcdQt;
        DHCPCD_WPA *wpa;
        DHCPCD_WI_SCAN *scans;
+       DhcpcdSsid *ssid;
 
        QSocketNotifier *notifier;
-       QTimer *retryOpenTimer;
+       QTimer *pingTimer;
+       QTimer *scanTimer;
 
        QMenu *menu;
        void createMenuItem(QMenu *menu, DHCPCD_WI_SCAN *scan,