summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* declarative -> qml renamingChris Craig2012-03-0811-117/+117
| | | | | Change-Id: I0612bc25e5d40dde12aa6f09158e30b0a94cd6af Reviewed-by: Andrew Christian <andrew.christian@nokia.com>
* Added missing include fileAndrew Christian2012-03-081-0/+1
| | | | | Change-Id: If29f31cdb8bf696108788f5b179e404d303ebfb5 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Use JsonPipe functionality from QJsonStream libraryAndrew Christian2012-03-065-157/+27
| | | | | | | | The JsonPipe class from QJsonStream abstracts sending and receiving JSON-formatted messages over file descriptors. Change-Id: I7ebde3dc1f176d41e492f1bdf34c6ae0e0cf8fa5 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Added prefork library and factoryAndrew Christian2012-03-066-2/+622
| | | | | | | | | | | | | | * Prefork library parses command line arguments and creates appropriate master and child processes connected by pipes. * PreforkProcessBackendFactory retrieves information about child processes from prefork library and exposes those children as remote process manager objects. * Linux test case added to start a master and child object using prefork library and run all standard tests. Change-Id: Ic76da3eb8237744dd075f55db80f46f35550c73f Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Update prelaunch to copy processinfo record.Andrew Christian2012-03-052-6/+45
| | | | | | | | | * Added declarative test cases for Prelaunch factory * Copy ProcessInfo record into prelaunch factory to avoid memory management issues Change-Id: I3303286f34c7ee9c491a82726e4e4b50892625e4 Reviewed-by: Lasse Holmstedt <lasse.holmstedt@nokia.com>
* Add method to access the prelaunched backend from subclassesLasse Holmstedt2012-03-022-4/+14
| | | | | Change-Id: I0e88adff69718419598a7547f36aee3769833e53 Reviewed-by: Matthias Ettrich <matthias.ettrich@nokia.com>
* Add hasPrelaunchedProcess() to PrelaunchProcesBackendFactoryLasse Holmstedt2012-03-022-1/+11
| | | | | Change-Id: I466e79d5794a9e4db3ec15f0449d80a6a7357fe2 Reviewed-by: Matthias Ettrich <matthias.ettrich@nokia.com>
* Add prelaunchEnabled property to PrelaunchProcessBackendFactoryLasse Holmstedt2012-03-022-7/+47
| | | | | | | | | When true, the factory does prelaunching. Otherwise, it is still able to launch processes, but won't attempt to create any additional prelaunched runtimes. Change-Id: Iab8aa1367f109e64847b68af0c856d67287aa9aa Reviewed-by: Matthias Ettrich <matthias.ettrich@nokia.com>
* Change the PrelaunchProcessBackendFactory constructor to defaultLasse Holmstedt2012-03-022-15/+55
| | | | | | | Otherwise you must subclass it in order to create it in QML. Change-Id: Idbf78477518f366def7d3aadd56ef14734059db2 Reviewed-by: Matthias Ettrich <matthias.ettrich@nokia.com>
* add ProcessInfoTemplate::containsChris Craig2012-02-292-0/+10
| | | | | Change-Id: Ieebba581070fe1996e872e32bf9a7e6783376606 Reviewed-by: Lasse Holmstedt <lasse.holmstedt@nokia.com>
* processinfo template should use utf8Chris Craig2012-02-291-1/+1
| | | | | Change-Id: I564279a78162c2b63b40e7009ea3034f929bb275 Reviewed-by: Lasse Holmstedt <lasse.holmstedt@nokia.com>
* Removed dependencies on QtGui where possibleAndrew Christian2012-02-291-0/+1
| | | | | Change-Id: I57f552da2f45069fab73782e7229af484cd2636b Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Fix test cases to always run under LinuxAndrew Christian2012-02-291-1/+1
| | | | | Change-Id: I0f536fc6cae58461ffb1818b044512349a89bba2 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Move process group killing to common locationAndrew Christian2012-02-284-20/+26
| | | | | Change-Id: Icff9cd4073684ba7cc314b69b3efc6c0bf7cff99 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Added forklauncher code and test cases.Andrew Christian2012-02-277-11/+729
| | | | | Change-Id: I2e21b7635169464e229a36d02cc728a5f5bab443 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Added DeclarativeRewriteDelegateAndrew Christian2012-02-213-0/+195
| | | | | Change-Id: I42cdfcf1b32739ff483c1379cada7df394e57fa1 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Added DeclarativeMatchDelegateAndrew Christian2012-02-214-21/+246
| | | | | | | | * DeclarativeMatchDelegate allows matching logic to be specified in Javascript. * Cleaned up some of the QML documentation Change-Id: I1d9f246528a60656b713fcdb39d08f6f8d6904a0 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Schema validation for remote socket protocol.Andrew Christian2012-02-172-0/+11
| | | | | Change-Id: Ia4981187fb35edde82540042ff60688b8066f725 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Moved strings for remote protocol into common header.Andrew Christian2012-02-168-82/+165
| | | | | | | | | Commons strings are all declared as functions that return QStringLiteral values. This follows Qt practice and should allow for reliable reuse of strings values from 3rd-party applications. Change-Id: Ic3bd0fa0bfb2705d388aeba462dfac8c22d5eba2 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Added DeclarativeSocketLauncher class and created test cases.Andrew Christian2012-02-165-3/+187
| | | | | Change-Id: I67fc3561256c279acf6e10def3ffe58f12c68195 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Updated METATYPE declarations, fixed tests, fixed sandboxAndrew Christian2012-02-1610-20/+53
| | | | | | | | | | | * Updated macros for DECLARE_METATYPE to avoid QML problems * Updated module dependencies * Moved socket names into QML-friendly attributes * Fixed PGRP bug where kill command might be issued before setpgrp * Cleaned up test code Change-Id: I96e485bd2e95f8e186766692ce322ddb5c2ea527 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* remove dead declarative codeChris Craig2012-02-152-137/+0
| | | | | Change-Id: I2161e47ff95ce3e1eb47c6b66e685c2bd16bb69c Reviewed-by: Andrew Christian <andrew.christian@nokia.com>
* Remove compiler warningsHarald Fernengel2012-02-158-59/+59
| | | | | | | | Also fix a static global object and remove some QString conversion errors in the process. Change-Id: I8612ab2fbe4e083051f217682f2b24bc0af3b88d Reviewed-by: Andrew Christian <andrew.christian@nokia.com>
* Fix broken metatype registration using namespace macrosChris Craig2012-02-144-4/+11
| | | | | | | | | | | The compiler will not correctly expand this: Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE_PROCESSMANAGER(ProcessFrontend) *) so we add an extra level of indirection so the correct expanded typename is processed by Q_DECLARE_METATYPE. Change-Id: Ic7fa033f370844fe7fdb1dda4451bf3264769e8d Reviewed-by: Jani Uusi-Rantala <jani.uusi-rantala@nokia.com> Reviewed-by: Andrew Christian <andrew.christian@nokia.com>
* Updated matching delegate and documentationAndrew Christian2012-02-1316-119/+159
| | | | | | | | | | | | * Added KeyMatchDelegate for simple matching cases * Removed special-purpose matching functions in factory files * Removed special-purpose GdbProcessBackendFactory and replaced it with the GdbRewriteDelegate * Added test cases for matching. * Updated documentation errors and omissions Change-Id: Ibd201e56ab65c4d07763713d354a5023b6165aa3 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Added RewriteDelegate class and sample GdbRewriteDelegateAndrew Christian2012-02-138-6/+336
| | | | | Change-Id: I58abe4442afec07c4af707db1c0b7823f7c866e9 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Added MatchInfo class and renamed AbstractMatcher to MatchDelegateAndrew Christian2012-02-137-40/+236
| | | | | Change-Id: I78f88edb0e92d9feae9102aa51e3739b04ada981 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Added AbstractMatcherAndrew Christian2012-02-105-4/+188
| | | | | Change-Id: Iefb838c614fbf5217be9105a4dcbe89c956df00c Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Added oomAdjustment to the ProcessInfoTemplate (from Martin Zielinski)Andrew Christian2012-02-102-0/+35
| | | | | Change-Id: I323e4c87f1d57dfa5e983912fb31fe61dc8387a7 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Fixed procutils to deal with spaces in application namesAndrew Christian2012-02-101-20/+28
| | | | | Change-Id: Ic73e5bfc38b721072fa9d877a453ce5f9b03c101 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Added ExecutingProcessInfo object for data display of executing processesAndrew Christian2012-02-102-0/+244
| | | | | Change-Id: I127d41d7e5015073f96ef8d780efa50369e05e56 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Updating UID and GID control.Andrew Christian2012-02-106-57/+2
| | | | | | | | | | | | | * Removed uid() and gid() functions from process frontend/backend because these values must be calculated from the /proc filesystem. * Fixed bug in processinfo that incorrectly set group id. * Updated test suite so that you can specify UID/GID to run child processes as. Use TEST_UID=NUM and TEST_GID=num as environment variables and then execute the test suite with CAP_SETUID (normally accomplished by running as root) Change-Id: Ib1c10521bddec19afe7eae1422ffa1f24985756c Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Updating prelaunch backend factory.Andrew Christian2012-02-083-12/+65
| | | | | | | | | * Factory now restarts a failed prelaunched process. * Factory has "launchInterval" property to allow changing how frequently the prelaunched process is started. Change-Id: I870222b7d4b8a893477c254be72277e0380be5d6 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Terminate process group on destructionAndrew Christian2012-02-081-4/+19
| | | | | Change-Id: If07998eadea1f1f36d6b2cf7522476d3a28eb8b6 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Set process groups. Initialize group membershipAndrew Christian2012-02-082-8/+18
| | | | | Change-Id: I3e8c1b81b57aec26377ee3f52fc021213b8b255c Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* expose ProcUtils classChris Craig2012-02-071-1/+1
| | | | | Change-Id: I1e31f1946545f9b8719fb7cfb15991f402e920f0 Reviewed-by: Andrew Christian <andrew.christian@nokia.com>
* Cleaned up compiler warnings. Moved plugin code to examplesAndrew Christian2012-02-0315-103/+46
| | | | | Change-Id: I8da3cfb6b46c7c7a3f6bc140c6e9d14bf17ccb4e Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Make this a real Qt module.Chris Craig2012-02-0336-172/+62
| | | | | | | | | Combined the launcher and core modules into a single unit. Use core/launcher as QT += processmanager Use declarative as QT += processmanagerdeclarative Change-Id: I1d167a47236c8a624ed7eab01bcf994e6de25e80 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Removed extraneous castAndrew Christian2012-02-031-3/+2
| | | | | Change-Id: Ic6ff310bb4981d95995ff08e9f877922353edf82 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Updated oom adjustment. Fixed test cases to work on Linux and MacOSAndrew Christian2012-02-026-20/+74
| | | | | Change-Id: I71d2544bc883fed759dab5e33d041bf66f1369da Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Updated test cases to be more comprehensiveAndrew Christian2012-02-028-20/+34
| | | | | Change-Id: Ia889372d4c748f364745ba48df16d42b0c4d60b7 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Expose process errorstring to remote processesAndrew Christian2012-02-024-6/+20
| | | | | Change-Id: I08f3bd3ec4740a61faf7af09c8251d9054bcf68e Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
* Expose the process errorstring, to help with debuggingGunnar Sletta2012-02-016-0/+35
| | | | | Change-Id: Iab69ce0937c57a4ec852247d192e16f73ca3ef27 Reviewed-by: Andrew Christian <andrew.christian@nokia.com>
* Long live Qt Process Manager!Sergio Ahumada2012-01-3167-0/+8189