summaryrefslogtreecommitdiffstats
path: root/src/imports
Commit message (Collapse)AuthorAgeFilesLines
* B2Qt.Utils: Update plugins.qmltypesGatis Paeglis2014-12-051-0/+54
| | | | | | | Required for code-completion feature in QtCreator. Change-Id: I06ce31856b61e4bf41a4123eda999687eac1de3f Reviewed-by: Eirik Aavitsland <eirik.aavitsland@theqtcompany.com>
* Wifi: Update plugins.qmltypesGatis Paeglis2014-12-051-60/+90
| | | | | | | | Required for code-completion feature in QtCreator. Change-Id: I79969367afe685b248d08b30d8dadf54754c5c0f Task-number: QTEE-810 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@theqtcompany.com>
* Wifi - c++/qml getting started guide and wifi doc updateGatis Paeglis2014-12-052-1/+308
| | | | | | | | | | | | c++ getting started guide qml getting started guide documenting qml elements documenting c++ classes Task-number: QTEE-810 Change-Id: I669d11c65e5359fc9ec863b03b8b56ce2ef1151b Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@theqtcompany.com> Reviewed-by: Kalle Viironen <kalle.viironen@theqtcompany.com>
* [Wifi] graduate from Qt.labs.wifi 0.1 to B2Qt.Wifi 1.0Gatis Paeglis2014-12-0213-1780/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Make wifi library available from c++ 1) included with "#include <B2QtWifi>", available classes are: QWifiDevice, QWifiManager, QWifiConfiguration - Re-design of API: 1) connectedSSID -> currentSSID get current network from this property instead of networks state change events 2) networkStateChanaged(QWifiNetwork *) -> networkStateChanged(NetworkState) Don't expose QWifiNetwork objects to library users, use data model roles instead, no need to pollute API with "read-only" class. The flaws of exposing QWifiNetwork become apparent when looking at C++ API. 3) New BackendState enum for backend state changes events, backendStateChanged(BackendState) Initializing backend can be lengthy operation and can block GUI thread, same is true for DHCP requests, now these operations are moved into a separate thread and backend state change events are delivered asynchronously. 4) Make WifiManager a Singleton, we don't want several instances starting and stopping system processes and it makes global state handling simpler. 5) Rename Interface -> WifiDevice 6!) Introducing QWifiConfiguration. This abstraction allows for easy way to add new features, whatever we choose to support from: http://w1.fi/cgit/hostap/plain/wpa_supplicant/wpa_supplicant.conf The idea for it is to be a Qt-style wrapper for "network {}" configurations from wpa_supplicant.conf. Also this makes life simpler for developers if they know what network they will be using, they can omit scanning, listing, selecting parts and do something like this instead: WifiConfiguration { id: config ssid: "network name" passphrase: "12345678" } if (!WifiManager.connect(config)) print("failed to connect: " + WifiManager.lastError) - Optimizations: 1) Async. event delivery. 2) eLinux: Don't use "ifup", it is slow because it starts dhcp request even before any network has been configured. Use start-stop-daemon and ifconfig directly. - Bug fixes (many), but most importantly: 1) Get backend state properly when WifiManager is created. - Public header cleanup - Other: 1) Added categorized logging. 2) Methods to get/set wifi interface name. Not exposed to qml. - Missing parts that will be added as a separate patch: * [doc] Getting started guide for c++ and qml * [doc] Update for qml docs and new docs for c++. The current docs are out-of-date. Task-number: QTEE-649 Task-number: QTEE-810 Change-Id: I7dc8709aed2de622828a119749aef31534a4296d Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
* Merge remote-tracking branch 'origin/stable' into devaavit2014-11-1422-103/+167
|\ | | | | | | Change-Id: Ib0a08de8aaf17f2803d51bded8d0dcfb14e9c206
| * Change copyright noticeRainer Keller2014-10-0621-42/+42
| | | | | | | | | | | | | | URL points to qt.io Change-Id: If1dcfcef627ee3e2bdde49522ebabcaa66cea29b Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
| * Fix timing issues in wifi libraryGatis Paeglis2014-09-195-65/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a timing issue on a device startup if the default application calls Wifi.Interface.wifiSupported() before qconnectivity service has finished initialize wifi firmware/driver. This results in wifiSupported() returing false on nexus 2013, even if this device supports wifi. The solution is to move firmware/driver initialization to Qt Wifi library. Change-Id: If5b4650181f8b7237bd19f3fc3afbd2c75f759e8 Task-number: QTEE-770 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* | Doc: Document B2Qt.Utils moduleTopi Reinio2014-11-121-0/+103
| | | | | | | | | | | | Task-number: QTEE-474 Change-Id: I95064ac5908a067751d8182f6a0d883f07f7e756 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* | Rename DroidUtils -> B2QtUtils and refactor the APIaavit2014-10-083-15/+11
|/ | | | | | | | | | | | | | | | | | | Preparing this module for being documented and presented for external users. - Renamed since this is for eLinux as well as eAndroid - Provide all settings as proper Q_PROPERTYs for easy QML access - Hide all the detailed audio stuff that's not useful for users - Implement a getter function for current backlight, so that we don't have to reset it to full every time this module is loaded - qmake now groks this as internal module, so get rid build kludges - hostname setting on eLinux fixed - getIPAddress() now returns ALL active addresses, and implentation is simplified Task-number: QTEE-704 Change-Id: I9f22d5531b5963ae7e78c840bcfe1edd6197f82a Reviewed-by: Samuli Piippo <samuli.piippo@digia.com>
* Fix #ifdef for Android detectionGatis Paeglis2014-06-301-1/+3
| | | | | | | | It was wrongly adding "IFNAME=" to wpa_supplicant calls on eLinux, "IFNAME=" is required only for eAndroid. Change-Id: Ic16d321765071df66fbffc1c3d6ce78180eb3b1c Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Fix Wifi issues on Android 4.4.2Gatis Paeglis2014-06-131-2/+7
| | | | | | | | | | | | | | | | | | | | - Reload Wi-Fi firmware on a device startup (initializes wlan0 interface). - Android version 4.4 (and above) requires IFNAME=wlan0 prefix to the wpa_supplicant calls, without this all calls to the wpa_supplicant fail. - Fix "broken pipe" issue - a message in the logcat when trying to access a broken network. This seems to be a generic message whenever something is wrong with a network configuration (broken routing table, firewall issues, DNS issues etc.). Android uses Connectivity and NetworkManagement JAVA services to handle network configuration - we can use qconnectivity daemon for this. Task-number: QTEE-562 Change-Id: Ib5a93c677439a0e9bf92ede532667542d2bc4bed Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Add plugins.qmltypes for Wi-Fi libraryGatis Paeglis2014-05-262-0/+61
| | | | | | | | | This fixes autocompletion issue in QtCreator. Task-number: QTEE-568 Change-Id: I186a5777e54d8629fd896bd1ee677ac359373a17 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Build wifi also on eLinuxGatis Paeglis2014-05-201-2/+1
| | | | | | | | It turns out that wifi was never build on eLinux. Change-Id: I27b3f01761b9aaa6f70d0ff4220344551a39ad56 Reviewed-by: Samuli Piippo <samuli.piippo@digia.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
* Don't show Wi-Fi group box on iMX6-eAndroidGatis Paeglis2014-05-191-8/+9
| | | | | | | This device currently does not support wifi. Change-Id: I8048d7109908c4c2de553dda119cb14be73ef6a7 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Set initial "backend ready" state.Gatis Paeglis2014-05-161-3/+5
| | | | | Change-Id: Id1d7141cbbee181235093627cf18180354a78a6b Reviewed-by: Kalle Viironen <kalle.viironen@digia.com>
* Port QtWifi to eLinuxGatis Paeglis2014-05-157-30/+433
| | | | | | | | | | | | | Current limitations: - Wifi adapter must be connected before staring the device (and ethernet cable should not be connected at the same time). "allow-hotplug wlan0" in /etc/network/interfaces doesn't seem to help for detecting wifi adapter on-the-fly. Change-Id: I8be407e9e042fc86136efd3e220680fb2ce64bd6 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Merge branch 'stable' into devKalle Viironen2014-04-168-105/+478
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * stable: (22 commits) Add note about headphones on eAndroid Doc: Relocate unmount instructions Doc: Add ChangeLog for Qt Enterprise Embedded 2.1.0 Doc: Disable code highlighting for command-line instructions doc: update version number to 2.1.0 [Wifi] Add new enums and make some API changes Doc: Add documentation on custom build & deploy steps Doc: Create QML Type reference page Doc: Add information about licenses in embedded Linux images Doc: Improve instructions for deploying existing projects Doc: Separate Building Your Own Linux Image into its own page doc: use same directory for yocto and qt doc: config.<MACHINE> needed only once doc: guide for imx53 and how to setup QtCreator Doc: Be more precise on screen content for Nexus7 Add documentation to QtWifi library Doc: Add note for users to not use root for installation doc: describe how to use network connection for adb Rename misleading class name Remove unnecessary roles from QWifiNetworkList ... Conflicts: src/imports/wifi/qwifimanager.cpp Change-Id: Ie7efa2ec91ac154f1e984600f569d9c7f8383627
| * [Wifi] Add new enums and make some API changesGatis Paeglis2014-04-076-85/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Now QtWifi can provide feedback when incorrect password is entered. - networkStateChanged signal provides a reference to the currently active network connection. - bug fixes in QWifiManager::connect Task-number: QTEE-408 Change-Id: Ic7458b864f09aef3cfca40fb081dec45e0bba7db Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
| * Doc: Create QML Type reference pageTopi Reinio2014-04-023-4/+8
| | | | | | | | | | | | | | | | | | | | Create a landing page for QtEE-specific QML modules and types. Ensure it links correctly to WiFi Module documentation, and add it to TOC. Change-Id: Ib3edf9ff8e50f11e138a57aabc1f84749ac48e16 Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com> Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
| * Add documentation to QtWifi libraryGatis Paeglis2014-03-193-0/+318
| | | | | | | | | | Change-Id: Ifd71c65a155ad296f3491085e91556eb69226b2b Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
| * Rename misleading class nameGatis Paeglis2014-03-185-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The API is: ListView { model: wifiManager.networks } currently if user calls print(wifiManager.networks) it will print: QWifiNetworkList The docs of ListView states that model property expects a subclass of QAbstractListModel. QWifiNetworkList sounds like a subclass of QList which is misleading. This patch renames the class to QWifiNetworkListModel. This does not change the public API (doesn't brake compatibility in any way), just improves the documentation of library. Task-number: QTEE-445 Change-Id: I71f07cb22617f3a7f41a0403d1c63c4357310325 Reviewed-by: Andy Nichols <andy.nichols@digia.com>
| * Remove unnecessary roles from QWifiNetworkListGatis Paeglis2014-03-181-18/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently there are 2 ways to access the same property from list view's delegate: network.ssid ssid This is not needed, from the API point of view it is more readible when properties are accesed with network.* prefix. As is done in launchersettings demo. "network" role returns QWifiNetwork object which exposes the required properties with Q_PROPERTY. Change-Id: Idd55891d44c4f356a6774575508a38729c60c335 Reviewed-by: Andy Nichols <andy.nichols@digia.com>
* | Compilation fixes for Android 4.4aavit2014-04-011-6/+68
|/ | | | | Change-Id: I2017665372e190f9d12841820714457967ff3a3a Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com>
* [Wifi] Fix initialization codeGatis Paeglis2014-02-191-11/+11
| | | | | | | | Bug was that on freshly deployed Boot2Qt image (Nexus) the current code caused a device to restart when trying to launch "launcher settings". Change-Id: I3cc55488a1993c2c74567fccf39edd189b356bac Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Don't use wifi on EmulatorGatis Paeglis2014-02-131-11/+17
| | | | | Change-Id: I9ae1b5b68f3e3ec2c513ec5a6811ea5396425766 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Update copyright yearaavit2014-02-1217-17/+17
| | | | | Change-Id: Ic818e79d7bfca04bd8a8d8aa12b3ff70ea26a7a3 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Re-enable the wifi plguin now that toolchains have been updatedaavit2014-01-301-1/+1
| | | | | Change-Id: I87efe6b020b3c8b13491a1611b7992e8f697cb46 Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com>
* Make sure that wifi event thread doesn't block on exitGatis Paeglis2014-01-302-8/+18
| | | | | | | | | After setting m_exitEventThread to True we need to generate wifi event, otherwise there might be cases that we block in wifi_wait_for_event and wifi event thread never exits. Change-Id: I699ca0c25e23abc7045c1850bf773443bac897e8 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Disable building of wifi libraryGatis Paeglis2014-01-281-1/+1
| | | | | Change-Id: I3f8c2183f9bb0a620bad8128bdceda1bcb00ebd4 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Fix dhcp issues and improve public APIGatis Paeglis2014-01-285-185/+246
| | | | | | | | | | | | | | | | | | | | | - 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>
* Merge remote-tracking branch 'origin/stable' into devaavit2014-01-1717-0/+306
|\ | | | | | | | | | | | | Conflicts: src/doc/src/b2qt.qdoc Change-Id: I9d345dcc689e751b997df797ce12b6cd8a14ffb9
| * Add license headersTopi Reinio2013-12-0317-0/+306
| | | | | | | | | | | | | | Add an Enterprise License header to source files. Change-Id: I373886dade31ce00d4c10c64ebaf8ba226d5a62d Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* | List the strongest access point when ssid equalGatis Paeglis2014-01-162-22/+26
| | | | | | | | | | | | | | | | List only the strongest access point when sensing several access points within the same network. Change-Id: I58bf3083058f6e1c8a0c353b20d731672e64aefc Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* | Remove virtual keyboardRainer Keller2014-01-1640-3100/+1
|/ | | | | Change-Id: I2e28ef84e5c71c46924fd2b62bc9b199a0c6c7a9 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Snapshot of wifi module development, from customer projectaavit2013-08-055-76/+140
| | | | | | | Corresponds to 0c397d2287d33b08501c48e029306b8908583e6a of github repo Change-Id: I60c140513255394b6728ddd0ff85ac79fa5e88b9 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Register the QWifiNetworkList with the QML type systemGunnar Sletta2013-06-121-0/+1
| | | | | Change-Id: I43d1b525cf91b508113fcc6d883050b585a622f8 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* add missing pluginmain.cpp file for wifiGunnar Sletta2013-04-251-0/+22
| | | | | Change-Id: I1ef3cd3c915813fec9ef62c4453b8b5e132a95f3 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
* Disable nativemedia for nowRainer Keller2013-04-221-1/+1
| | | | | Change-Id: I8da972b7cfd2e10ced0f49b30e946bfca645b1bf Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Disable wifiRainer Keller2013-04-121-1/+1
|
* Made the virtual keyboard stuff compileGunnar Sletta2013-04-114-126/+4
|
* Add wifi to buildGunnar Sletta2013-03-211-1/+1
|
* Moved wifi to its own importable moduleGunnar Sletta2013-03-218-0/+617
|
* Better structure for virtual keyboardGunnar Sletta2013-03-2140-1/+3222
|
* Made OMX initializing a bit more robust.Samuel Rødal2013-03-142-9/+30
| | | | | We should do it on the rendering thread where there's a current context since we're calling glGenTextures() etc.
* Fixed nativemedia plugin name in qmldir.Samuel Rødal2013-03-141-1/+1
|
* Added nativemedia for video playback.Samuel Rødal2013-03-1318-1/+5681
| | | | See the test.qml in src/imports/nativemedia for usage.
* Initial commit - Long live the B2Qt utils!aavit2013-02-074-0/+49