summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* remove QStorageInfoLorn Potter2014-11-068-304/+0
| | | | | | | | This has been made redundant by the inclusion of QStorageInfo into QtCore Change-Id: Icfea210a450302e49ae61997120325ba00313974 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Fixed runloopThread being uninitialized and causing a crash in destruction.Christoph Keller2014-09-301-1/+2
| | | | | | Change-Id: I2e695f872d8d43978eba0030d72ee635c36f2103 Reviewed-by: Lorn Potter <lorn.potter@gmail.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Make NetworkInfo work with new linux interface name schemeLorn Potter2014-09-301-26/+27
| | | | | | Task-number: QTBUG-41283 Change-Id: I295ba589daede28dc6a75a47ca88533090bca84a Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* QUPowerDeviceInterface: Fix a memory leak.Robin Burchell2014-08-221-0/+2
| | | | | | | | Change-Id: I5e671429dcfd2968ccf5153601b0e8855cf0482b Done-by: Mohammed Sameer <mohammed.hassan@jolla.com> Reviewed-by: Mohammed Sameer <msameer@foolab.org> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Add missing private headers warningSamuel Gaist2014-08-1821-24/+254
| | | | | Change-Id: Ie9ba1ca09620b55d99b65ac7dd9bf0fa9e29da56 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Remove QStorageInfo in favor of the QtCore replacementThiago Macieira2014-08-1220-2136/+5
| | | | | | Change-Id: I0a22820d2f5ee554d2929ba7332c8a4e143121ce Discussed-in: http://lists.qt-project.org/pipermail/development/2014-August/017938.html Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Add missing #include <QDataStream>Thiago Macieira2014-08-111-0/+1
| | | | | | Change-Id: I462c22b1c85dad6afa4c580af085cc08f822625d Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Use QDBusReply instead of manipulating the QDBusMessage by hand.Robin Burchell2014-08-031-12/+4
| | | | | | | | | | Not only is this neater, it fixes a screwup in 1be686159ce23a4fc683b1c17926f923ff957513. QVariant apparently doesn't want to implicitly convert the QVariantMap via toMap, but instead silently returns an empty map. Change-Id: I0a71bf54a0d69a7f2da6a26fa77c53f7d3d9a588 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* QUPowerDeviceInterface: Remove getProperty helperRobin Burchell2014-07-272-17/+11
| | | | | | | | Just call QMap::value directly. Change-Id: Ic108b0585892986448ea7707b6cf7f54502e7e02 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* QUPowerDeviceInterface: Make every property request except the first one ↵Robin Burchell2014-07-272-19/+31
| | | | | | | | | | | | | | asynchronous. Fetching UPower properties can take a long time (I've seen >20ms on a device that isn't even under load), so minimizing the amount of time we wait on the main thread for the reply makes sense. We keep the properties we had before around, and only emit changed signals when the properties actually change. Change-Id: Ia3a111d16bf0149a9aa153bf08f37409663ff7be Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* QUPowerInterface: Do away with use of QDBusInterface.Robin Burchell2014-07-272-22/+20
| | | | | | | | This requires a blocking DBus call to set up, so even though it's a little more verbose to do it by hand, it's worth it. Change-Id: Iccf264658a870b554e73bc817b4e9372a3adae83 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* QUPowerInterface: dead code removal.Robin Burchell2014-07-264-90/+2
| | | | | | | | | | | | | changed() signal was only connected to a completely empty handler. onBattery and getProperty are also unused, only called by the commented-out bits removed here. getProperty also had a fun memory leak/efficiency issue (always creating a new QDBusInterface, which always involves blocking calls on creation, and never freeing it) Change-Id: I597f52d152afb2d605698cab48d3b8a916ddf33e Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Add support for retrieving device info from SSU.Robin Burchell2014-06-252-0/+26
| | | | | | | | | | | SSU is a tool for device management, used in the Mer Project (and by extension, on Sailfish OS). Done-with: Thomas Perl <thomas.perl@jolla.com> Change-Id: I15a12f6adb93173b8b47d84230b18c4c41c1d522 Reviewed-by: Alex Blasche <alexander.blasche@digia.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Disable strict strings under MSVC for QtSysteminfoThiago Macieira2014-06-241-0/+4
| | | | | | | | The Windows headers currently violate the standard. Worse, it's in virtual functions... Change-Id: I5e0ab21a6f6eb407ffa2c6eee117bcde3e0a18fa Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* add missing EXPORT declMark Brand2014-06-131-1/+1
| | | | | | | Change-Id: I5b725fe7f0abfc85c3df7b06c96ec3a5fb54b934 Sanity-Review: Qt Sanity Bot <qt_sanitybot@qt-project.org> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* fix filename caseMark Brand2014-06-124-13/+10
| | | | | | | Make it possible to cross compile on case sensitive system. Change-Id: Ie6f255eeb4d71b40926d1d27aad52af4246f5602 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* prefer os-release for operating system nameLorn Potter2014-04-051-0/+3
| | | | | | Change-Id: I5b945948a17dbb830cdd451758c584d69eed7d24 Reviewed-by: Jakub Adam <jakub.adam@ktknet.cz> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* try harder for unique ID, use wlan mac addyLorn Potter2014-04-052-12/+51
| | | | | | Change-Id: Iac5112c6a781620f71de33e0dbc07041e91c0312 Reviewed-by: Jakub Adam <jakub.adam@ktknet.cz> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* get model from hw-releaseLorn Potter2014-04-051-3/+6
| | | | | | Change-Id: I0d1bc0e943295cbaa43c2e5470acb24ed92fa63f Reviewed-by: Jakub Adam <jakub.adam@ktknet.cz> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Bump module version to 5.4.0Thiago Macieira2014-04-021-1/+1
| | | | | Change-Id: I7101adc0c15d3d7acb92bea41aa77baf8efc0349 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Allow searching a term in a specific release fileJakub Adam2014-03-232-4/+10
| | | | | Change-Id: I4a926c140101165a78107ae9d65f974d1b14b868 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Strip optional quotation marks from version stringJakub Adam2014-03-231-0/+3
| | | | | Change-Id: I072ef04026486d2591ef5f5143edb89c4299eb85 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Prefer VERSION_ID from /etc/os-release as QDeviceInfo::OsJakub Adam2014-03-231-0/+5
| | | | | | | | | | | | On Sailfish OS, where /etc/hw-release exists, QDeviceInfo::version() used to wrongly return hardware adaptation VERSION_ID from that file as the first value discovered by QDeviceInfoPrivate::findInRelease(). Thus, we look into /etc/os-release first. If the version isn't found, the method resorts to the previous behavior. Change-Id: Ia10c5d7b9cff83ab3006253931ca5a79f2e7c65f Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Prefer HW adaptation version as QDeviceInfo::Firmware on Sailfish OSJakub Adam2014-03-231-0/+6
| | | | | | | | | On Sailfish OS, HW adaptation version is stored in /etc/hw-release. If the value isn't found, QDeviceInfo::version() returns the kernel version as before. Change-Id: If742d2af1f719f45a59f4a937e18590060478651 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* stop serviceframework and qsysteminfo building on macLorn Potter2014-03-216-9/+9
| | | | | | | NOTE: these need to be fixed Change-Id: I0b7a2cf7efe28aa03359b03d8921bbfb9dd4d09c Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Fix battery related compilation errors on simulatorSamuli Piippo2014-01-284-9/+6
| | | | | | Change-Id: Icde8d7f9731e05193968a9f10f58556728d2a199 Reviewed-by: Travis Allen <tallen@blackberry.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Updated Documentation for QBatteryInfoTravis Allen2014-01-211-103/+92
| | | | | | | Fixed all of the documentation for QBatteryInfo with the new API Change-Id: Ib00dc03b8c778d54ffed1dccf06e534babf5f202 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* whitespace fixesOswald Buddenhagen2014-01-2054-155/+155
| | | | | | | remove trailing spaces & expand tabs Change-Id: I7606f8c263e3660b307ac865090d11293e892598 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Renames & Add new properties to QBatteryInfoTravis Allen2014-01-1720-23/+813
| | | | | | | | | | | -Renamed the Health enum values to Health* -Added temperature -Added isValid -Added cycleCount -Added level Change-Id: Ib72eebfbb1b5426300de16f5329dff36953eb42f Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Fix build: CWGlobals.h does not exist anymoreThiago Macieira2013-12-162-4/+2
| | | | | Change-Id: Iaabddc0612c3b52d4e84dca3a94521d70147e45d Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* upower: Return QBatteryInfo::LevelEmpty when the percentage is lower than 3%.Robin Burchell2013-12-161-8/+8
| | | | | | | | | | This gives applications some extra time to respond to this situation, and prepare for system shutdown, as systems often turn off for safety before absolute 0 is hit. Change-Id: Ie6fc40bb80c9b2c07898c6fc1852c78add95b24f Done-with: Vesa Halttunen <vesa.halttunen@jollamobile.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Fix qserviceinterfacedescriptor unit testAlex Blasche2013-12-161-1/+1
| | | | | | | | It seems the debug stream removes a space at its end. Change-Id: I2a4677d3fd2a136238034ea1a4ea5ed3dd618a86 Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* QBatteryInfo Refactorization Step 2Travis Allen2013-11-2919-251/+267
| | | | | | | | | | | -Remove EnergyUnit enum -Change Win32 code to return mAh to conform to all other platforms -Rename BatteryStatus to LevelState -Add Health enum and property -Rename a couple enum values Change-Id: Ie359036f66f0b1f41d35cd8a574552f2a7b8bf00 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Refactor the Linux/upower QBatteryInfo to match the other platformsTravis Allen2013-11-262-14/+96
| | | | | | | I missed this refactorization in 15d5f78. Change-Id: I21ee9514c4b6f5b153ab8d36c8baa1c75c72b1d7 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* First steps towards QBatteryInfo RefactorizationTravis Allen2013-11-2517-125/+548
| | | | | | | | | | | | | | -Remove the QML wrapper registration temporarily -Change the public API to lock it to one index -Change the Linux private API to lock it to one index -Change the Mac private API to lock it to one index -Change the Windows private API to lock it to one index -Change the tests to use the new API -Change the Simulator private API to lock it to one index Change-Id: I5b3d36a3baad339623281d79014c411c59dd1b59 Reviewed-by: Andrew Wooster <awooster@blackberry.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* DriveType: Cope with mmc devices with more than 9 partitionsIain Lane2013-10-181-2/+12
| | | | | | | | Previously they were reported as UnknownType always, now they get the appropriate drive type. Change-Id: I7c2cab0c01b105a7bed57450acad4c64d226feae Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Do not require signal strength information to return network status.Timo Jyrinki2013-10-101-2/+1
| | | | | | | | | | | Do not require signal strength information to be available in order to return network information. On some devices signal strength is not available. Task-number: QTBUG-33748 Change-Id: I1a6021483b9a2073595720a063f2de07ecdd98e1 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* use resource file on qml example so they can run betterLorn Potter2013-10-107-36/+26
| | | | | Change-Id: I6f1fd110ef53fb772feceb57701ccca1a0860dff Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Fix method invocations with both custom and standard param typesRobert Griebl2013-10-061-0/+3
| | | | | | | | | Prior to this fix, method calls would only work if the method's parameters were either just standard Qt types or just custom types. Any combination would lead to a failure invoking the method. Change-Id: I6f140767dfec1692ba7d766284f39916057cd017 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Fix simulator compilationSamuli Piippo2013-09-252-1/+7
| | | | | Change-Id: Ie93f12739bc2a2afbba0bf04bcf4132c4aec7bc1 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Bump qtsystems version to 5.3.0Thiago Macieira2013-09-251-1/+1
| | | | | Change-Id: Iab43fc52cf69571a3b51432392a1e99cf40d3c8e Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Port bluetooth powered signal from qtmobilityLorn Potter2013-09-1110-15/+342
| | | | | Change-Id: I757ad0a7a51515e4526df82eedef7fdf96421fb1 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* fix file permissions on imagesLorn Potter2013-09-1033-0/+0
| | | | | Change-Id: I5c8d63c0237c6e14861783b25051c3644e845ca1 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Add operating system name and board name functionsLorn Potter2013-09-1013-39/+180
| | | | | Change-Id: I438e98a942ee8dc574d11459f88244b20291435e Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Fix up some of these best guesses.Lorn Potter2013-08-291-29/+105
| | | | | | | Try to support os-release Change-Id: I0000f7175f7261aadea8cabb16ce39f5c154a079 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Remove unnecessary dependency to qtjsbackend from sync.profileSimon Hausmann2013-08-161-1/+0
| | | | | Change-Id: I1cfdda45c711376444a4a062f9a70da2303ecbdc Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* try harder to find unique ID, and validate it against QUUid.Lorn Potter2013-08-051-1/+24
| | | | | Change-Id: Ic9cc84f3a14b62330c3fefc54e058142ab39e7df Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Fix warning found by clang: private unused members in a classThiago Macieira2013-08-021-1/+0
| | | | | | | qremoteserviceregister_dbus_p.h:151:22: error: private field 'connection' is not used [-Werror,-Wunused-private-field] Change-Id: I445b478857e0807b468e5ba1daa92fa1c8c7d9da Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* make signals work on macLorn Potter2013-08-024-17/+17
| | | | | Change-Id: Id93747bae03a1622e09ad40629a1885159e51e03 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Disable tests failing on Windows.Friedemann Kleint2013-07-291-0/+5
| | | | | | | | | | Task-number: QTBUG-32666 Task-number: QTBUG-32667 Task-number: QTBUG-32707 Change-Id: I527120cf6c46bfb9f05baf7ece4d1b0399c773e6 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Alex <alexander.blasche@digia.com>