summaryrefslogtreecommitdiff
path: root/ui/qt5/netsimplewifipage.hh
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-15 20:35:06 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-15 20:35:06 -0600
commit394668483428fa2c370fd27fa4e7ee2c1328ea24 (patch)
tree0accdcb60a10fcca1ceaa229b085c4aafe66e043 /ui/qt5/netsimplewifipage.hh
parenta59d3c853f2a6d287e39091dd2f1a2df2df95825 (diff)
downloadhorizon-394668483428fa2c370fd27fa4e7ee2c1328ea24.tar.gz
horizon-394668483428fa2c370fd27fa4e7ee2c1328ea24.tar.bz2
horizon-394668483428fa2c370fd27fa4e7ee2c1328ea24.tar.xz
horizon-394668483428fa2c370fd27fa4e7ee2c1328ea24.zip
Qt UI: Wi-Fi
Diffstat (limited to 'ui/qt5/netsimplewifipage.hh')
-rw-r--r--ui/qt5/netsimplewifipage.hh22
1 files changed, 21 insertions, 1 deletions
diff --git a/ui/qt5/netsimplewifipage.hh b/ui/qt5/netsimplewifipage.hh
index f199903..ab5187b 100644
--- a/ui/qt5/netsimplewifipage.hh
+++ b/ui/qt5/netsimplewifipage.hh
@@ -15,6 +15,11 @@
#include "horizonwizardpage.hh"
+#ifdef HAS_INSTALL_ENV
+# include <bcnm/wpactrl.h>
+# include <QSocketNotifier>
+#endif /* HAS_INSTALL_ENV */
+
#include <QComboBox>
#include <QLabel>
#include <QLineEdit>
@@ -24,16 +29,31 @@
class NetworkSimpleWirelessPage : public HorizonWizardPage {
public:
NetworkSimpleWirelessPage(QWidget *parent = nullptr);
+ ~NetworkSimpleWirelessPage();
void initializePage();
- void doScan();
+ bool isComplete() const;
int nextId() const;
+ bool validatePage();
private:
QLabel *statusLabel;
QPushButton *rescanButton;
QListWidget *ssidListView;
QLineEdit *passphrase;
+
+ void doScan();
+ void scanDone(QString message);
+
+#ifdef HAS_INSTALL_ENV
+ wpactrl_t control;
+ wpactrl_xchg_t exchange;
+ wpactrl_xchgitem_t exchange_item;
+ QSocketNotifier *notify;
+
+ int processScan(wpactrl_t *, const char *, size_t);
+ friend int scanResults(wpactrl_t *, char const *, size_t, void *, tain_t *);
+#endif /* HAS_INSTALL_ENV */
};
#endif /* !NETWORKSIMPLEWIRELESSPAGE_HH */