diff options
author | Gatis Paeglis <gatis.paeglis@theqtcompany.com> | 2016-01-19 14:40:23 +0100 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@theqtcompany.com> | 2016-01-25 09:13:56 +0000 |
commit | 1386f2dc628071b0e14c9d21337402101e179380 (patch) | |
tree | dba01a76d9fd4c951861abbacba99eccc7512c7e /src/wifi/qwifisupplicant_p.h | |
parent | c82dd728746f3df9ededdd3beb651dd97449c6d2 (diff) |
Use lastError to report relevant errors
This improves the error handling situation
in the module.
Change-Id: I9a67038efd3d82d7a2b87c2184cce52ad5b855e7
Task-number: QTEE-1037
Reviewed-by: Teemu Holappa <teemu.holappa@theqtcompany.com>
Diffstat (limited to 'src/wifi/qwifisupplicant_p.h')
-rw-r--r-- | src/wifi/qwifisupplicant_p.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wifi/qwifisupplicant_p.h b/src/wifi/qwifisupplicant_p.h index 3b18380..0a6a964 100644 --- a/src/wifi/qwifisupplicant_p.h +++ b/src/wifi/qwifisupplicant_p.h @@ -30,11 +30,13 @@ QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(B2QT_WIFI) Q_DECLARE_LOGGING_CATEGORY(B2QT_WIFI_VERBOSE) +class QWifiManagerPrivate; + class QWifiSupplicant : public QObject { Q_OBJECT public: - explicit QWifiSupplicant(QObject *parent = 0); + explicit QWifiSupplicant(QObject *parent, QWifiManagerPrivate *managerPrivate); void createSupplicantConfig() const; bool startSupplicant(); @@ -53,6 +55,7 @@ private: wpa_ctrl *monitor_conn; int exit_sockets[2]; QByteArray interface; + QWifiManagerPrivate *const m_managerPrivate; }; QT_END_NAMESPACE |