summaryrefslogtreecommitdiffstats
path: root/src/utils
Commit message (Collapse)AuthorAgeFilesLines
* Refactored Qml plugins into modules.Teemu Holappa2016-02-173-476/+0
| | | | | | | Separated C++ and Qml interfaces. All the UI's from plugins are moved to the settingsui folder. Change-Id: Id6a6623346b18321357bc42d24121c4d9cdfd098 Reviewed-by: Kimmo Ollila <kimmo.ollila@theqtcompany.com>
* Utils: remove eAndroid specific code pathsEirik Aavitsland2015-07-102-240/+3
| | | | | Change-Id: I0de37f5e8a43f786cf09449bcbe782e317dde41d Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com>
* Add missing includesSamuli Piippo2015-07-021-0/+2
| | | | | | | Yocto is not using PCH, so there build fails. Change-Id: I610ef66c9add0c7229d544cf5fa34b11f81ec8a5 Reviewed-by: Gatis Paeglis <gatis.paeglis@theqtcompany.com>
* B2QtDevice: use rounding instead of truncatingLaszlo Agocs2015-06-181-3/+3
| | | | | Change-Id: Id5723f62b2df32fed1bb65f8e9211ba2d1032664 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@theqtcompany.com>
* Expose a physcal screen size property for the settings appLaszlo Agocs2015-06-182-0/+172
| | | | | | | | | | Load/rewrite /var/lib/b2qt/appcontroller.conf.d/physical_screen_size.conf accordingly. Additionally, /etc/appcontroller.conf is parsed first, but it is never modified. Task-number: QTEE-936 Change-Id: Ieea5f230c02135a0edbd696d031ae1d987ad5cbc Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
* Fix qtlauncher settings app setting display brightness to 0Eirik Aavitsland2015-06-162-6/+7
| | | | | | | | | | | Qt Quick, like C++, really doesn't grok the quint8 type - since it's just a char underneath, it now is sometimes interpreted as a string. Fix by just sticking with straight int instead, which arguably is anyway a better (more flexible) api choice. Change-Id: I04e3324d2ecab54860eb6c2ee2e4337ccfd4ecb4 Reviewed-by: Samuli Piippo <samuli.piippo@theqtcompany.com>
* B2Qt utils: implement backlight setting for eLinuxaavit2015-01-221-5/+63
| | | | | | | | | | | | | This at least works for Sabre and BD-SL, and should be easy enough to extend if other boards have the controlling device in a different path. In case of multiple screens, this version just sets all of them. This is sufficient for demos and the common single-screen case. Next version will add API to address each screen separately. Change-Id: I1bbd5201474bd92d20efba6d55b11339200c141a Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Merge remote-tracking branch 'origin/stable' into devaavit2014-11-142-4/+5
|\ | | | | | | Change-Id: Ib0a08de8aaf17f2803d51bded8d0dcfb14e9c206
| * Change copyright noticeRainer Keller2014-10-062-4/+4
| | | | | | | | | | | | | | URL points to qt.io Change-Id: If1dcfcef627ee3e2bdde49522ebabcaa66cea29b Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
* | Rename DroidUtils -> B2QtUtils and refactor the APIaavit2014-10-084-240/+290
|/ | | | | | | | | | | | | | | | | | | 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>
* Don't hardcode interface name in getIPAddress()Gatis Paeglis2014-06-131-7/+13
| | | | | Change-Id: I29ac16d598ce56a7fa0a7b3b5bb89ca12d5f074a Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Compilation fixes for Android 4.4aavit2014-04-011-1/+2
| | | | | Change-Id: I2017665372e190f9d12841820714457967ff3a3a Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com>
* Update copyright yearaavit2014-02-122-2/+2
| | | | | Change-Id: Ic818e79d7bfca04bd8a8d8aa12b3ff70ea26a7a3 Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
* Fixes: get/set hostname & ipadress on eandroidaavit2014-02-051-20/+10
| | | | | | | | | And generally simplify by sharing implementation between linux and android when possible. Change-Id: I572f1076cd5f9df7f7a3ab94b9b30d575a962915 Reviewed-by: Samuli Piippo <samuli.piippo@digia.com> Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com>
* Update version numbers of B2Qt utilsaavit2014-02-051-1/+1
| | | | | Change-Id: Ia5fde905e9232424a9504a24f1ac8b2a05a8cb59 Reviewed-by: Samuli Piippo <samuli.piippo@digia.com>
* Improve QDroidUtils IP address retrievalTopi Reinio2014-02-031-5/+5
| | | | | | | | | | | | | | | Instead of returning the first IP address from eth0, return a comma-separated list. This ensures that the IPv4 address is shown in Launcher Settings demo, important as it's required for setting up the connection to Raspberry Pi in Qt Creator (sometimes, IPv6 address is shown as first entry). Also, cleans up the garbage (trailing %eth0) returned for IPv6 addresses. Change-Id: Ibced367ba443ac76c2ad2a4f2589c9edcbc74b7f Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Merge remote-tracking branch 'origin/stable' into devaavit2014-01-173-1/+68
|\ | | | | | | | | | | | | Conflicts: src/doc/src/b2qt.qdoc Change-Id: I9d345dcc689e751b997df797ce12b6cd8a14ffb9
| * Add license headersTopi Reinio2013-12-032-0/+36
| | | | | | | | | | | | | | Add an Enterprise License header to source files. Change-Id: I373886dade31ce00d4c10c64ebaf8ba226d5a62d Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
| * Fix sound on Nexus 7.Yoann Lopes2013-10-253-1/+32
| | | | | | | | | | | | | | | | | | | | | | A behavior change in the HW audio driver for 4.2.2 causes the audio routing to never be set up automatically. Set the audio orientation to force the HW driver to set up audio routing. Task-number: QTRD-2472 Change-Id: I6f76aa299d0bc89c7061c7074dc5780e62045f0a Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* | Fix compilation with gnustl on eAndroidaavit2013-12-061-0/+1
|/ | | | | Change-Id: I8ade110ad1869e9fbad28a73a57939ad986ceb17 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Remove invalid debug codev1.0.0-RC4Rainer Keller2013-10-171-3/+0
| | | | | Change-Id: Ic93149e453eb9890304816f77b1461e4f4968280 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
* Add getter functions for audio levelsRainer Keller2013-10-172-0/+56
| | | | | Change-Id: Icba2c03d946768b43503b167890e6d826e4fecc6 Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
* Add error handling to existing audio functionsRainer Keller2013-10-171-4/+17
| | | | | Change-Id: Icb7113f1a251b076f49c052bebee3fbd2e6139e8 Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
* Added system volume settings for Android.Yoann Lopes2013-08-283-1/+115
| | | | | Change-Id: I4ea5f24303f69d93a031b07dbc056c62eea9d358 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Add IP and hostname information for qdroid utilsSamuli Piippo2013-06-063-1/+60
| | | | | Change-Id: I9c4bc15f34ee7a67e468b32e73d989c98d04b94a Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Linux support for qdroidutilsSamuli Piippo2013-06-052-8/+10
| | | | | | | Reboot and Power Off work now on embedded linux Change-Id: Ieb65bf8a696eb6cd275d331d87234c0e9798cbed Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Module does not compile without version definedRainer Keller2013-04-241-1/+1
| | | | | Change-Id: I58c5ebc27f07a890cbbe9ffc8944d9f3e16d3053 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Better safe: Explicitly sync the fs before reboot/poweroffaavit2013-03-221-0/+3
|
* Update to new #define platform flag: Q_OS_ANDROID_NO_SDKaavit2013-03-181-6/+6
| | | | | Also, do just qWarning instead of qFatal (process terminate) if reboot/poweroff() returns.
* Initial commit - Long live the B2Qt utils!aavit2013-02-073-0/+120