summaryrefslogtreecommitdiffstats
path: root/wifi/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wifi/main.cpp')
-rw-r--r--wifi/main.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/wifi/main.cpp b/wifi/main.cpp
new file mode 100644
index 0000000..79489ab
--- /dev/null
+++ b/wifi/main.cpp
@@ -0,0 +1,23 @@
+#include <QtGui>
+#include <QtQml>
+#include <QtQuick>
+
+#include "qwifimanager.h"
+
+#include <hardware_legacy/wifi.h>
+
+int main(int argc, char *argv[])
+{
+ QGuiApplication app(argc, argv);
+
+ qmlRegisterType<QWifiManager>("QtWifi", 0, 1, "QWifiManager");
+ qmlRegisterType<QWifiNetwork>();
+ qmlRegisterType<QWifiNetworkList>();
+
+ QQuickView view;
+ view.setResizeMode(QQuickView::SizeRootObjectToView);
+ view.setSource(QUrl::fromLocalFile("main.qml"));
+ view.show();
+
+ return app.exec();
+}