summaryrefslogtreecommitdiffstats
path: root/src/serviceframework
Commit message (Collapse)AuthorAgeFilesLines
* Migrate the service framework to QRegularExpressionSamuel Gaist2019-01-032-12/+15
| | | | | | | | | This patch updates the service framework code to use QRegularExpression in place of QRegExp which is to be considered deprecated. Task-number: QTBUG-72593 Change-Id: Ic1f464d7af1bc075ff004c0c4cb8425a83efa649 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Fix license headersJani Heikkinen2018-01-2260-780/+1140
| | | | | | | | | | | old, outdated and removed header.LGPL21 was used in some files. Replace that with correct one (header.LGPL in src, headre.GPL-EXCEPT in tests and header.BSD in examples). Also remove unnesessary license files and add missing ones. Change-Id: Ib021ae191316da379a01e355fe90fe39180f541b Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Update outdated license headers with correct onesJani Heikkinen2017-11-221-4/+4
| | | | | | | | BSD-OLD and FDL-OLD were still used in some files. Fix those to use new ones to be able to pass license tests in CI Change-Id: I15665d24c0eaec574c3836ce6fdcaea1ea593434 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* QServiceManager: don't deref nullptrMarc Mutz2016-03-031-1/+1
| | | | | | | | Use T::foo instead of static_cast<T*>(nullptr)->foo to access the staticMetaObject of a T. Change-Id: Ieef90dc2d21e938b3661f66703c8c9c2142b07d6 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Make more ctors explicitMarc Mutz2016-03-032-2/+2
| | | | | | | | | Added explicit where it was missing. This is not a source- incompatible change, because code that breaks by this is a bug. Let's not have this sitting around in an LTS. Change-Id: Ib360290b0d01d9690703945f4fbf7efe946c5a59 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Make public headers compile with -Wzero-as-null-pointer-constantMarc Mutz2016-03-033-10/+10
| | | | | | | | | | | | | ... or equivalent. QtBase 5.6 headers already compile that way, so let the other modules follow suit. Required to change one misuse of reinterpret_cast into static_cast. Task-number: QTBUG-45291 Change-Id: I8212182c7cd87302aeb16b0cca7e6b0e3ef6c0c6 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Prospective build fix for Visual Studio 2013Simon Hausmann2015-07-302-0/+10
| | | | | | | | | | VS2013 rightfully complains that when calling the assignment operator, the compiler generated one needs visibility to the private class. Since we don't have that, we must explicitly define the assignment operator. This is binary compatible and common practice. Change-Id: Id2558908d0b2841f8dfb6da15cb2614470c4f215 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Update all license headersAlex Blasche2015-03-2661-1267/+787
| | | | | | | Some files had wrong licenses too. Change-Id: I7f940d4a136d102cb2c7755702308938530158c4 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Add missing private headers warningSamuel Gaist2014-08-1816-20/+190
| | | | | Change-Id: Ie9ba1ca09620b55d99b65ac7dd9bf0fa9e29da56 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>
* 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>
* whitespace fixesOswald Buddenhagen2014-01-201-1/+1
| | | | | | | remove trailing spaces & expand tabs Change-Id: I7606f8c263e3660b307ac865090d11293e892598 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 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>
* Remove JsonDB dependencies (1/2)Alex Blasche2013-06-194-1361/+6
| | | | | | | No more JsonDB in QtSFW. Change-Id: Ie2ffbd5e1beeae9058eec6133551ad8595c59b64 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Fix warnings found in headers (headersclean)Thiago Macieira2013-04-081-4/+4
| | | | | | | | qservicereply.h:95:9: error: declaration of ‘parent’ shadows a member of 'this' [-Werror=shadow] qservicereply.h:112:5: error: declaration of ‘proxyObject’ shadows a member of 'this' [-Werror=shadow] Change-Id: I697bb79fae7fbe77451f3652f5360fb79ba30373 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Make QServicePackagePrivate::clean non-virtualThiago Macieira2013-04-081-1/+1
| | | | | | | | | | | | This class method does not need to be virtual, since nothing is deriving from it. If something ever does, then the destructor should be virtual too, to avoid this warning: qservicepackage.cpp:49:10: required from here qshareddata.h:163:72: warning: deleting object of polymorphic class type ‘QServicePackagePrivate’ which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor] Change-Id: I0e5ccc6edcb6a74e801edfbe73320cf5a0ece171 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* make use of qtHaveModule()Oswald Buddenhagen2013-02-151-1/+1
| | | | | | | | Change-Id: Id893f505be66103366d13b88cbb177d3bb401cc1 Reviewed-by: Andrew Stanley-Jones <asj@cban.com> Reviewed-by: Tasuku Suzuki <stasuku@gmail.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Remove use of QT_{BEGIN,END}_HEADER macros.Aaron McCarthy2013-02-0613-43/+1
| | | | | | | | These macros were removed from Qt Core and they are no longer defined causing qtsystems to fail to build. Change-Id: I0e08e7a53f20a016e403d9022e349b25ba38a7ec Reviewed-by: Andrew Stanley-Jones <asj@cban.com>
* Do not use interface as variable or parameter nameOliver Wolff2013-01-235-167/+167
| | | | | | | | | | | | | | | As "interface" is defined as struct in objbase.h on windows it either should not be used as a variable or parameter name or undefed before. (see CI failure in https://codereview.qt-project.org/#change,45321 ) As parts of QtSystems rely on other windows headers which need interface defined as struct it cannot be 'undef'ed "globally". Thus "interface" is replaced with proper values in files where it occurs. Change-Id: I9f77df966c7243fbc06aea87be075bfbd9b05d4a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Rainer Keller <rainer.keller@digia.com> Reviewed-by: Cristiano di Flora <cristiano.diflora@gmail.com>
* Change default linux backends when dbus is not presentAndrew Stanley-Jones2012-11-161-4/+4
| | | | | | | | | | | Change the default linux backend to unix when dbus isn't present. This is a better backend to default to than the localsocket backend since it doesn't spin the Qt event loop. Change-Id: I7af9bf588504ee82c8269a76a7cbd0ff123df042 Reviewed-by: Lincoln Ramsay Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
* Allow using QRemoteServiceRegister for types other than IPC.Lincoln Ramsay2012-11-154-2/+47
| | | | | Change-Id: Ic8ca7e4c48df42dad63bda87fc5d5ecb4cbd5410 Reviewed-by: Andrew Stanley-Jones <asj@cban.com>
* QtSystems: Fix compiler warnings.Friedemann Kleint2012-10-161-1/+1
| | | | | | | | | | | | - Fix QString-construction from const char * returned by getenv, (potential crash). - Fix single character string constants. - Integer truncation. - Unused variables. Change-Id: I245daa1eb68801227d42ae07681f8e640c1f55c0 Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Update docs after modularization of docsTor Arne Vestbø2012-10-121-2/+2
| | | | | | | | The global files now live in qtbase only, and are made available to the other modules via the $QT_INSTALL_DOCS variable. Change-Id: I776e3168e41e6ae2fe1ee3c3f0097482466bcb62 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-2463-1503/+1503
| | | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I7786bc90235877567a7f61fc5c82af8dc3ad28c8 Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* centralize load(qt_build_config)s in .qmake.confOswald Buddenhagen2012-09-111-2/+0
| | | | | Change-Id: I8f7389dac06dee984f79deec1b070b1c6d27604d Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* make use of QT_{,FOR_}PRIVATE to specify private Qt dependencies, take 2v5.0.0-beta1Oswald Buddenhagen2012-08-242-7/+6
| | | | | | Change-Id: I40c2efe22e373dec3c6e1e75bdd35da9be3ff0eb Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* follow rename of qt_module_config.prf to qt_module.prfOswald Buddenhagen2012-08-111-1/+1
| | | | | Change-Id: I98dd7cc723a8454724286dcfb4fefe989469034a Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* OSX 10.6 doesn't define O_CLOEXEC so don't use itAndrew Stanley-Jones2012-07-131-9/+10
| | | | | | | | When using fcntl use FD_CLOEXEC instead since it's supported on all platforms. Change-Id: I549d5ed684447a05c1dbabae6c0dc1f6cb1ad381 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Allow build of submodule docs individually using 'make'.Peter Yard2012-07-051-0/+4
| | | | | Change-Id: I0fe4e04056396bfb6ba6fee77db017f2997fb1d6 Reviewed-by: Andrew Stanley-Jones <andrew.stanley-jones@nokia.com>
* Fix the cross compilationLaszlo Papp2012-07-041-2/+2
| | | | | Change-Id: I151398d0ca986649119d056404a8c1fc0d3d8add Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Fix select on OSXAndrew Stanley-Jones2012-07-021-1/+3
| | | | | | | | | OSX does not allow the timeval.tv_usec to be greater than 1 million (1 second), so split the value between the usec path and the second field. Change-Id: I926c360aa91e5d5131e6b7099df808f29ac3c56a Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Make unix backend compile on MacAndrew Stanley-Jones2012-07-022-2/+13
| | | | | | | | | Update the backend include files and avoid using a linux only pipe2. Also compile sfwlisten correctly and place it in the right location. Change-Id: I083c286a8ed2ca7bdba8f3025c2a66a9e0405a1a Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* The unit test modifies the PATH.Lincoln Ramsay2012-07-012-18/+1
| | | | | | | | | It was already doing this for Mac builds. Do it for all Unix builds now. This way, we don't need a special code path, enabled for the CI system, that allows tests to pass there that then fail on regular desktops. Change-Id: I8b0bc61339a3d615c2703e7692927e03f5457101 Reviewed-by: Andrew Stanley-Jones <andrew.stanley-jones@nokia.com>
* Update the export macros in qtsystems.gitThiago Macieira2012-06-281-18/+2
| | | | | | | Use the new, simpler QT_STATIC macro. Change-Id: I44381e608d2b65388a6f395d08060b7972821d9d Reviewed-by: Alex <alex.blasche@nokia.com>
* Fix build/ add missing includes for QDataStream.Friedemann Kleint2012-06-281-0/+2
| | | | | | | | Apparently caused by qtbase:b719bd498ee179f92bee174a622c7954ed542fd0. Change-Id: Icd5fa7829ab76fb3e73ed717d50b7794da2fac6e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Do not depend on indirect includes: include <QDataStream>Thiago Macieira2012-06-271-0/+1
| | | | | | | | QDataStream used to be defined through indirect inclusion (by way of qpair.h). Instead, include the header directly. Change-Id: Ia178c13cdaaa9b3cb962b6afff991a3b4433af88 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Fix a warning.Lincoln Ramsay2012-06-261-1/+1
| | | | | Change-Id: I9d02220325bcf18a279710d830a468207b2ae551 Reviewed-by: Alex <alex.blasche@nokia.com>
* fix a warning and a docLincoln Ramsay2012-06-261-2/+2
| | | | | | | | unused variable warning fix a misspelling in a doc Change-Id: Ib71fb28f471eae714375b649ab6393ce86d835fe Reviewed-by: Alex <alex.blasche@nokia.com>
* CompileLincoln Ramsay2012-06-261-2/+3
| | | | | | | If the Unix IPC backend is used and debug is off, we don't have QtNetwork Change-Id: Idd5bfe08a98f19a2a39df5ec5893c699f0e803e5 Reviewed-by: Alex <alex.blasche@nokia.com>
* build system cleanupsOswald Buddenhagen2012-06-261-7/+1
| | | | | | | | | | | | | | | - load(qt_module) => load(qt_build_config) - remove: - CONFIG+=module (obsolete) - code relating to module version headers (automated now) - %mastercontent assignment (automated now) - QT_BUILD_*_LIB defines (automated now) - pointless QPRO_PWD assignments - pointless DEFINES+=QT_MAKEDLL Change-Id: I062c0bbe4bb69c2952f35b6bd6628770c0bc9446 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com> Reviewed-by: Alex <alex.blasche@nokia.com>
* Remove left over defines and fix the unix backendAndrew Stanley-Jones2012-06-258-135/+98
| | | | | Change-Id: If491cb14a1829baf84769c8425144e7848604c37 Reviewed-by: Alex <alex.blasche@nokia.com>
* use auto-defined QT_BUILD_*_LIB variablesOswald Buddenhagen2012-06-221-1/+1
| | | | | Change-Id: I6bafddeb11e764d17c5e9d9147c4e60da59c80a7 Reviewed-by: Andrew Stanley-Jones <andrew.stanley-jones@nokia.com>
* auto-generate module prisOswald Buddenhagen2012-06-221-1/+0
| | | | | Change-Id: Ied629f52b278241e2007491175ba338698bae5bc Reviewed-by: Andrew Stanley-Jones <andrew.stanley-jones@nokia.com>
* Make backend selection easyAndrew Stanley-Jones2012-06-222-24/+35
| | | | | | | | | | Allow the backend to be selected on the qmake command line, which allows for easier testing. Use by specifiying SFW_BACKEND=unix, localsocket or dbus. Change-Id: I699737a7d2c97b564ebb5dc6b6d7c87dec8b6eb5 Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com> Reviewed-by: Alex <alex.blasche@nokia.com>
* Fix compile error in the unix backendAndrew Stanley-Jones2012-06-201-48/+0
| | | | | | Change-Id: I458578c85afc01e21a7a3b114c46cea3d0d0bc4f Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Fix sfwlistenAndrew Stanley-Jones2012-06-201-0/+6
| | | | | | | | | If sfwlisten listens on several interfaces it could crash since the QUdpSocket was delete. Change-Id: I0a91a98477b70fa01ac2493a5f7ac1915498bc73 Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Fix compiler warning about order of initialization.Lincoln Ramsay2012-06-201-10/+10
| | | | | | | Also, have the copy constructor avoid double-initialization of members. Change-Id: If2130c5dc51a0b371822f0c27673467b82be36ab Reviewed-by: Andrew Stanley-Jones <andrew.stanley-jones@nokia.com>
* QString(const char*) is deprecated - use QLatin1String()Lincoln Ramsay2012-06-201-1/+1
| | | | | Change-Id: Ic9c49710b546dbec89ba2e4e0eef77ab92030553 Reviewed-by: Andrew Stanley-Jones <andrew.stanley-jones@nokia.com>
* Fix warnings about declared-but-unused symbols.Lincoln Ramsay2012-06-203-1/+9
| | | | | Change-Id: I74f7513b2492308369cc6acbe77d928325f82de8 Reviewed-by: Andrew Stanley-Jones <andrew.stanley-jones@nokia.com>