38 Commits

Author SHA1 Message Date
kh1
8f84b31778 Add a context paramter to be able to pass some other info.
Change-Id: Ibdf7d56b421c932d3ebe9836ee4562bf5cd6762f
Reviewed-on: http://codereview.qt.nokia.com/3589
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2011-08-25 15:04:51 +02:00
Tim Jenssen
9ca4558458 component script constructor can cause an exception forward this
Change-Id: If49829105abe7463278837d871c63ea3fd89564f
Reviewed-on: http://codereview.qt.nokia.com/3529
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
2011-08-25 11:24:09 +02:00
kh1
77292bee62 Add a getter for auto dependency values.
Since we need the list anyway, we can move the is empty
check to the beginning of the function.

Change-Id: Iebe04b6f2904a02c807edaa7586af8a83c115c0a
Reviewed-on: http://codereview.qt.nokia.com/3414
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2011-08-23 16:35:29 +02:00
Tim Jenssen
68a367649a catch isDefault and isAutoDependOn errors from script
Change-Id: I565d79c6e2d668f629700b0e62ce34eaf9651f59
Reviewed-on: http://codereview.qt.nokia.com/3322
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
2011-08-22 15:18:45 +02:00
kh1
2167a0d06b Expose some private functions and make use of it.
It should be way faster to iterate over the known installed
packages list instead of all components to figure out if they
are installed.

Change-Id: I2fdb54c4063a3a886828129ad344c59216eb6509
Reviewed-on: http://codereview.qt.nokia.com/3173
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2011-08-18 13:35:02 +02:00
kh1
93e804d498 Remove now superfluous code as depenedencies work.
Review-By: tjenssen
2011-08-15 14:27:30 +02:00
kh1
6ba25f5e1b Fix wrong whitespaces. 2011-08-12 11:03:11 +02:00
kh1
f69b248fb0 Small cleanup.
Add a regular expression constant. Remove superfluous
check if the component is in the list, as in worst case
both methods need to iterate over the list to notice that
the component does not exist.

Review-By: Niels Weber
2011-08-12 11:03:10 +02:00
kh1
69d522b9d5 Added some comments. Small change to keep the code compact.
Review-By: Niels Weber
2011-08-12 11:03:10 +02:00
kh1
dd59146f9d Revert: 308dc03e a1a130b9 5fb0f4ac
The proper fix for 308dc03e would have been to check if we
run in installer mode and only than check default components
initially. Not sure how a1a130b9 could state that the code
would work as expected, as proper testing would have revealed
that the "Next" button now was enabled always enabled in
package manager mode and always disabled in updater mode...
Fixes also the problem seen by Niels that in package manager
case components would have been scheduled for uninstall even
if we just selected a new component without removing an other.

Reviewed-By: Niels Weber
2011-08-10 13:39:23 +02:00
Tim Jenssen
7696e1637e now autodepend is recursive and works 2011-07-29 13:06:52 +02:00
Tim Jenssen
68ce78e1ba activate auto depend on 2011-07-29 11:39:34 +02:00
Tim Jenssen
73ca2b5e4a added const to method where possible and clean up the code(removed unused methods)
Reviewed-By: Niels Weber
2011-07-27 14:26:11 +02:00
Tim Jenssen
9d43d3f36a enable ,<space> and , as seperator in stringlist values
Reviewed-By: Niels Weber
2011-07-27 14:26:08 +02:00
Tim Jenssen
02b859b819 added an updateIsAvailable flag to component class
Reviewed-By: Niels Weber
2011-07-27 14:25:58 +02:00
Tim Jenssen
31b7d64b27 added a why component, because it looks very strange to me 2011-07-27 14:25:57 +02:00
Tim Jenssen
89531cd82c added isAutoDependOn to Component class 2011-07-22 14:35:19 +02:00
Tim Jenssen
10d5d3a881 disable some not working dependency code and splitted components() 2011-07-21 21:26:29 +02:00
Tim Jenssen
4b01b138a2 add a comment to processEvents in loadComponentScript 2011-07-21 20:30:23 +02:00
Tim Jenssen
6260bf6f8b added child to the container names to reduce confusion 2011-07-21 20:05:08 +02:00
kh1
915d1ef4bb Process app events and invoke the signal queued.
Solves a freeze seen on updater/ package manger restart.
2011-07-12 13:52:38 +02:00
kh1
c29ab9679f Lower the impact of statics per compilation unit. 2011-07-05 13:42:31 +02:00
kh1
fd1358a9f5 Hide the KDUpdater stuff behind typedefs. 2011-07-05 13:22:05 +02:00
kh1
f7bb1f1485 Operations -> OperationList 2011-07-05 10:02:02 +02:00
kh1
771ca39b80 Define some typedefs and hide the "Update"... 2011-07-04 23:40:17 +02:00
kh1
429081b235 Fix broken check for forced installation. 2011-06-30 14:25:55 +02:00
kh1
304d54ea19 Implement package management even if we can't reach the repo.
If we can't reach the given repo or if no repo is set, we
still need to support package managment to be able to
uninstall components found on the hard disk drive.
2011-06-30 14:03:22 +02:00
kh1
b68afc9cc6 Use a different precision and a lower amount for size. 2011-06-29 16:08:10 +02:00
kh1
812f60ea11 Whitespace cleanup. Style change. 2011-06-29 13:21:08 +02:00
kh1
2b883fe0b1 If there is no update info, do not show the string.
Put some minimal html around the description, so we get
word wrap for free from the tool tip.
2011-06-22 12:53:18 +02:00
kh1
c126a4c411 Create the handler on the stack instead of the heap.
This makes it possible to use more then one instance
of the core engine per application. They now all listen
to the same port and use the same connection. Fixes a
memory leak as well as a crash during core engine destruct.
2011-06-15 15:29:31 +02:00
kh1
4d78ddd97c Rename header/ source files to match class name.
Fix includes as well.
2011-06-15 12:39:03 +02:00
kh1
787eb763bd Rename from Installer to PackageManagerCore.
Note: Might break on any other platform than windows,
needs some more tests. No break on windows so far...
2011-06-14 16:24:50 +02:00
kh1
65de51a9c2 Move constants into global file and use where possible. 2011-06-09 16:47:41 +02:00
kh1
c88e0eca04 Keep a flag if we have do a no forced installion. 2011-06-09 16:13:56 +02:00
Tim Jenssen
e1082246ca fixed renaming of constants 2011-06-09 15:58:13 +02:00
Tim Jenssen
8a66f6f791 extracted and renamed qinstallercomponent_constants 2011-06-09 15:05:32 +02:00
kh1
0dfc6184af Rename to match actual class name. Fix includes. 2011-06-09 11:54:06 +02:00