diff options
author | aavit <eirik.aavitsland@digia.com> | 2014-11-14 15:01:55 +0100 |
---|---|---|
committer | aavit <eirik.aavitsland@digia.com> | 2014-11-14 15:25:43 +0100 |
commit | 7c5126a80c95f262ff3c480604b57532d9ed9079 (patch) | |
tree | 053fba4f2f3ccd2b231b310ab49b9db39491d095 /src/imports/wifi/qwifiinterface.h | |
parent | 1f0de42b9d5a8ef665e6799019eed898b0396586 (diff) | |
parent | 9b2dd9f64bdd5c2349407ae8517ae974eda97885 (diff) |
Merge remote-tracking branch 'origin/stable' into dev
Change-Id: Ib0a08de8aaf17f2803d51bded8d0dcfb14e9c206
Diffstat (limited to 'src/imports/wifi/qwifiinterface.h')
-rw-r--r-- | src/imports/wifi/qwifiinterface.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/imports/wifi/qwifiinterface.h b/src/imports/wifi/qwifiinterface.h new file mode 100644 index 0000000..06abd79 --- /dev/null +++ b/src/imports/wifi/qwifiinterface.h @@ -0,0 +1,40 @@ +/**************************************************************************** +** +** Copyright (C) 2014 Digia Plc +** All rights reserved. +** For any questions to Digia, please use the contact form at +** http://www.qt.io +** +** This file is part of Qt Enterprise Embedded. +** +** Licensees holding valid Qt Enterprise licenses may use this file in +** accordance with the Qt Enterprise License Agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Digia. +** +** If you have questions regarding the use of this file, please use +** the contact form at http://www.qt.io +** +****************************************************************************/ +#ifndef QWIFIINTERFACE_H +#define QWIFIINTERFACE_H + +#include <QtCore/QDir> +#include <QtCore/QDebug> +#ifdef Q_OS_ANDROID +#include <hardware_legacy/wifi.h> +#include <cutils/properties.h> +#endif + +class QWifiInterface : public QObject +{ + Q_OBJECT +public: + explicit QWifiInterface(QObject *parent = 0) + : QObject(parent) {} + ~QWifiInterface() {} + + Q_INVOKABLE bool wifiSupported() const; +}; + +#endif // QWIFIHELPERS_H |