Index: sources/wifi/WifiInterface.h =================================================================== diff -u -r091bc0425b84f094cbd863865a5edac2477208eb -r54f11a67ea7b62c64e797d3947d0858530394467 --- sources/wifi/WifiInterface.h (.../WifiInterface.h) (revision 091bc0425b84f094cbd863865a5edac2477208eb) +++ sources/wifi/WifiInterface.h (.../WifiInterface.h) (revision 54f11a67ea7b62c64e797d3947d0858530394467) @@ -31,6 +31,7 @@ QThread *_thread = nullptr; bool _init = false; bool _scanRunning = false; + bool _useDHCP = true; int _defaultTimeout = 5000; int _dhcpTimeout = 10000; int _scanTimeout = 30000; @@ -53,7 +54,6 @@ const QString _iface = "wlan0"; const QString _wpaSupplicantConfPath = "/etc/wpa_supplicant.conf"; - // Singleton SINGLETON(WifiInterface) @@ -69,6 +69,11 @@ void timerEvent(QTimerEvent* event); void initThread(QThread &vThread); void quitThread(); + bool hasConnectedToWifi(); + Network getLastWifiNetworkConnectedTo(); + void rejoinLastWifiNetwork(); + QStringList securityTypesToStringList(const QList &securityTypes); + QList variantListToSecurityTypes(const QList &securityTypesVar); public slots: bool init(QThread &vThread);