66 Commits

Author SHA1 Message Date
Niels Weber
dd15ca9e79 function documentation
Change-Id: I08eebd30a4354a7f9c807baffc546c3daf7a33bd
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2012-02-15 10:25:04 +01:00
Niels Weber
56ff139b19 update contact email to the current one
Change-Id: Icc6560f9c65e294e01439f17ff02614d6dcf7dc8
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
2012-02-06 11:52:36 +01:00
Niels Weber
c0403b40c4 more license header fixes
Change-Id: I694171e531edd5216401dcd99ce3040a1a007604
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2012-02-06 10:48:49 +01:00
kh1
bd097dacb0 fix cases where now only 2012 was stated as copyright year
Change-Id: Iae8c25276707dd245bf8247bc4b71511a29901b0
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
2012-02-01 15:20:02 +01:00
Niels Weber
b4d60f60c2 Qt SDK -> Installer Framework
Change-Id: I143694ac2a62e3c0e2be003ffa0f7e37f00351a2
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
2012-01-31 12:57:12 +01:00
Niels Weber
35c8468339 mass change 2011 -> 2012 for copyright
Change-Id: I66340dbc1f2a5a38ed98d1ad406c22b594d92b6e
Reviewed-by: Alexander Lenhardt <alexander.lenhardt@nokia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
2012-01-31 12:26:31 +01:00
Tim Jenssen
ce22ca6ae6 Fix crash while deleting components.
To delete it's childs, the component uses qDeleteAll on the childs list,
but once a child get's deleted it removes itself from the calling
components child list and then messes up the list iterators. The child
list passed to qDeleteAll needs to be a deep copy of the list the
component owns to not mess with the original the calliing component holds.

Change-Id: I638ffbb576a9543b7197c8bf267239f31197e274
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
2012-01-24 18:01:51 +01:00
kh1
376804db87 Use qDebug instead of verbose.
The message handler now forwards everything to the verbosew riter anyway.

Change-Id: I822f86e8f2e2e7690a3b855ed83199d2f41dc480
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2012-01-17 12:05:35 +01:00
Alexander Lenhardt
3fee266f5c fixed QTIFW-75
Change-Id: I012819b8e95aa47d08576765eaeffaef01eeaabf
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2012-01-05 17:25:25 +01:00
kh1
6ab43ba472 Cleanup.
Save some QLatin1String - QString conversion, remove dead code.
Rename some functions, etc. Should not change much functionality.

Change-Id: I42bfbe19d773e9fa2cc18e11e74f71ef271f4130
Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2011-11-28 12:19:58 +01:00
Tim Jenssen
c6475d72ca begininstallation has nothing todo with createOperations
- copy and paste error

Change-Id: Iac33b200d4c2654679b036f03866fcf4cba03758
Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
2011-11-23 11:39:48 +01:00
hjk
7d5c4a7211 Simplify KD* directory structure.
Change-Id: Ia6a4a9581873ada42aed3818d8fd2a4f41763f75
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2011-11-21 13:08:37 +01:00
hjk
2f330d359e Remove re-directing KD* header.
Change-Id: I840d5d7739161300b38ac9b77eaabb2840c9fe02
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2011-11-21 12:13:09 +01:00
Tim Jenssen
f5eedc9e48 fix autodependency behaviour
- remove code that autodependency is a real dependency, it was a hack and totaly wrong
  - introduce addDependency() to be able to add these operating system depend, for example you need vcredist to register Qt Simulator under Windows but not under the other OSs(the wrong autodependency was only a hack to allow this)

Change-Id: Iab6adc28d47b42eac1823afe7fe6a8bbfb2b3361
Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2011-11-21 12:11:27 +01:00
Tim Jenssen
653bac34d7 introduce beginInstallation() method in Component
- with this we have the possiblity to set some variables or show a messagebox if that component is really installed, like to ask the user to stop a process

Change-Id: Ibe2044006835b301fd13e5ba226dc81ae6e25244
Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2011-11-21 12:10:33 +01:00
Tim Jenssen
89ded0446b introduce a DownloadableArchives package description xml-tag
- with this new tag we are able to create simple components which have some content without a needed script
 - this saves us some scriptengine instances in the future

Change-Id: Ib9890324bfbd9b18fb33f3f7bd88cae93c6a2062
Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
2011-11-18 14:38:57 +01:00
kh1
5ccb838aca Create a scripte engine only if really needed.
Change-Id: I5f4c2591bf6a96f1ad4054e0d7550c2303fd4bae
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
Reviewed-by: Alexander Lenhardt <alexander.lenhardt@nokia.com>
2011-11-18 09:01:22 +01:00
kh1
9b275406e6 Add QDebug stream operator to component class.
Change-Id: I4de2464f733b7d851f2a4744fc278b8de685f002
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
2011-11-17 15:54:28 +01:00
kh1
5a5f91a97d Make sure we remove ui elements we added.
This fixes several problems, e.g. once a component script has been
run, possible ui elements or even complete pages have been added.
On a second component script run these elements would have been
added again etc... Now we remove all pages and widget by default.

Change-Id: I47a3283ce06767c28529201432b71c0b4f12e533
Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
Reviewed-by: Alexander Lenhardt <alexander.lenhardt@nokia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2011-11-09 14:11:57 +01:00
Tim Jenssen
7ccd0acdcf make sure that a component with addElevatedOperation will get RequiresAdminRights tag
Change-Id: I5b8e00212b580c968d15e7b5e93be43a66ad6649
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
2011-11-08 15:09:44 +01:00
Tim Jenssen
7c7638997f added contentChangeRequested on the component class
Change-Id: Ie637e9415b48f028f43d32989a2f133572792866
Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
2011-10-31 16:52:09 +01:00
kh1
5b24a2a206 Fix some typos.
Change-Id: Ibe7826d2d378bf89cf7e422f0a9db4e77c23dd54
Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
2011-10-20 15:50:04 +02:00
Alexander Lenhardt
7c6aa97c76 added scRemoteVersion constant for better readability
Change-Id: I781f58c74e318d0946026f691cb381634fd59704
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2011-10-13 15:15:25 +02:00
Alexander Lenhardt
ef5cd8a882 Fixed QTSDK-961
- added support for version inheritance attributes to repogen
 - added version inheritance for components
 - 'inheritVersionFrom' attribute can be set for Version tags

added support for version inheritance attributes to repogen

Change-Id: I7e9a3a71620de2d8ffed0e0296b68f307304d9f6
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@nokia.com>
2011-10-13 15:07:05 +02:00
Tim Jenssen
fd8711f9c4 fix foundImportantUpdate and rename it to essential
- there was bug that unselected updates are removed in case there is an important update

 - to avoid the error with old installation we are renaming Important tag to Essential which means the same but only works with this fix

Change-Id: Idea87bb828b1a358874b59ddafccf00c6ddaf417
Reviewed-on: http://codereview.qt-project.org/5592
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-09-27 10:45:07 +02:00
Tim Jenssen
5359d0a3e8 convert and use autodependencies like usually dependencies
- this is needed to bring autodepended components in the right install order

Change-Id: Ic4ad1d3b152125827e9f533b9fd16a71d447cb02
Reviewed-on: http://codereview.qt-project.org/5077
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2011-09-16 13:44:21 +02:00
kh1
7a7730cdd6 Fixes QTIFW-6.
"Update Info:" should be only visible in updater mode and
only if there is some text to display.

Change-Id: I81e7c0cc0a5532026f63d64ae8529f945884b328
Reviewed-on: http://codereview.qt-project.org/4558
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2011-09-12 12:30:31 +02:00
Tim Jenssen
576ca29806 updater can't have a component with uninstallation requested
Change-Id: I9b99a7a8d0a3c55f5ed0049119e1da71773cd32c
Reviewed-on: http://codereview.qt.nokia.com/3642
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-26 10:23:31 +02:00
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