summaryrefslogtreecommitdiffstats
path: root/src/imports/wifi/wifi.pro
diff options
context:
space:
mode:
authorGatis Paeglis <gatis.paeglis@digia.com>2014-01-02 15:57:14 +0100
committerGatis Paeglis <gatis.paeglis@digia.com>2014-01-28 12:01:04 +0200
commit696510db8f43427a9bb6ff249f688851f531cd12 (patch)
tree37fcf832449de02879b7ce3a7287588c53c6bbd5 /src/imports/wifi/wifi.pro
parent95a00d27cda8b8bea27192f7ee9eb2b5ae6eb405 (diff)
Fix dhcp issues and improve public API
- Use qconnectivity daemon for dhcp requests. Since dhcp requests are executed in other process we don't block gui thread for this lengthy operation. - Why not to use "do_dhcp_request" - it is a legacy implementation of a dhcp client and is not used anywhere in the Android source code itself. It appears that do_dhcp_request was not removed from the libhardware_legacy to keep compatibility for others, whose code might still depend on it. - Differnet changes to the internal implementation and the public API. - Add 'Interface' singleton type, installing a singleton type allows developers to provide arbitrary functionality to a client without requiring individual instances of the type to be instantiated by the client. We use this to determine if Android has wifi interface. Change-Id: I836f3a2a587b1ebf9f670ed08b10fe3483504b9e Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
Diffstat (limited to 'src/imports/wifi/wifi.pro')
-rw-r--r--src/imports/wifi/wifi.pro21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/imports/wifi/wifi.pro b/src/imports/wifi/wifi.pro
new file mode 100644
index 0000000..0231479
--- /dev/null
+++ b/src/imports/wifi/wifi.pro
@@ -0,0 +1,21 @@
+CXX_MODULE = qml
+QT += qml quick network
+TARGET = qwifimodule
+TARGETPATH = Qt/labs/wifi
+IMPORT_VERSION = 0.1
+
+SOURCES += \
+ pluginmain.cpp \
+ qwifimanager.cpp \
+ qwifinetwork.cpp \
+ qwifinetworklist.cpp
+
+HEADERS += \
+ qwifimanager.h \
+ qwifinetwork.h \
+ qwifinetworklist.h
+
+LIBS += -lhardware_legacy -lcutils
+
+load(qml_plugin)
+