summaryrefslogtreecommitdiffstats
path: root/installerbuilder/libinstaller/component.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Reorganize the tree, have better ifw.pri. Shadow build support.kh12012-03-191-1207/+0
| | | | | Change-Id: I01fb12537f863ed0744979973c7e4153889cc5cb Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* make string translatableNiels Weber2012-03-191-1/+1
| | | | | Change-Id: Ia80f42a06be5cb36a7fee7fc3cf923033766a5a4 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Keep common just for the tools.kh12012-03-131-3/+2
| | | | | | | All other files should be in the lib anyway. Fix includes. Change-Id: I654fadf0a77b8d19953a6b47820e6398af11e2df Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Don't copy over a checksum file.kh12012-03-051-2/+2
| | | | | | | | | Whithout this fix, offline installers would spam the install directory with .sha1 files. Follow up on 61dc9d1d03f039e5155 Change-Id: Ice1bc51e1d058b48b2a58849611b7005d290f8c1 Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* look for translated licensesNiels Weber2012-02-151-3/+10
| | | | | Change-Id: I22157ae2760708910f07ff0e9fa6950841db0885 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* function documentationNiels Weber2012-02-151-1/+4
| | | | | Change-Id: I08eebd30a4354a7f9c807baffc546c3daf7a33bd Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* update contact email to the current oneNiels Weber2012-02-061-2/+2
| | | | | Change-Id: Icc6560f9c65e294e01439f17ff02614d6dcf7dc8 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* more license header fixesNiels Weber2012-02-061-13/+13
| | | | | Change-Id: I694171e531edd5216401dcd99ce3040a1a007604 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* fix cases where now only 2012 was stated as copyright yearkh12012-02-011-1/+1
| | | | | Change-Id: Iae8c25276707dd245bf8247bc4b71511a29901b0 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* Qt SDK -> Installer FrameworkNiels Weber2012-01-311-1/+1
| | | | | Change-Id: I143694ac2a62e3c0e2be003ffa0f7e37f00351a2 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* mass change 2011 -> 2012 for copyrightNiels Weber2012-01-311-1/+1
| | | | | | Change-Id: I66340dbc1f2a5a38ed98d1ad406c22b594d92b6e Reviewed-by: Alexander Lenhardt <alexander.lenhardt@nokia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* Fix crash while deleting components.Tim Jenssen2012-01-241-1/+7
| | | | | | | | | | | 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>
* Use qDebug instead of verbose.kh12012-01-171-6/+4
| | | | | | | The message handler now forwards everything to the verbosew riter anyway. Change-Id: I822f86e8f2e2e7690a3b855ed83199d2f41dc480 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* fixed QTIFW-75Alexander Lenhardt2012-01-051-1/+18
| | | | | Change-Id: I012819b8e95aa47d08576765eaeffaef01eeaabf Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Cleanup.kh12011-11-281-1/+1
| | | | | | | | | 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>
* begininstallation has nothing todo with createOperationsTim Jenssen2011-11-231-1/+0
| | | | | | | - copy and paste error Change-Id: Iac33b200d4c2654679b036f03866fcf4cba03758 Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
* Simplify KD* directory structure.hjk2011-11-211-2/+2
| | | | | Change-Id: Ia6a4a9581873ada42aed3818d8fd2a4f41763f75 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Remove re-directing KD* header.hjk2011-11-211-2/+2
| | | | | Change-Id: I840d5d7739161300b38ac9b77eaabb2840c9fe02 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* fix autodependency behaviourTim Jenssen2011-11-211-0/+10
| | | | | | | | | - 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>
* introduce beginInstallation() method in ComponentTim Jenssen2011-11-211-0/+10
| | | | | | | | - 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>
* introduce a DownloadableArchives package description xml-tagTim Jenssen2011-11-181-0/+1
| | | | | | | | - 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>
* Create a scripte engine only if really needed.kh12011-11-181-14/+13
| | | | | | Change-Id: I5f4c2591bf6a96f1ad4054e0d7550c2303fd4bae Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com> Reviewed-by: Alexander Lenhardt <alexander.lenhardt@nokia.com>
* Add QDebug stream operator to component class.kh12011-11-171-0/+13
| | | | | Change-Id: I4de2464f733b7d851f2a4744fc278b8de685f002 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* Make sure we remove ui elements we added.kh12011-11-091-2/+2
| | | | | | | | | | | | 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>
* make sure that a component with addElevatedOperation will get ↵Tim Jenssen2011-11-081-0/+4
| | | | | | | RequiresAdminRights tag Change-Id: I5b8e00212b580c968d15e7b5e93be43a66ad6649 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* added contentChangeRequested on the component classTim Jenssen2011-10-311-0/+9
| | | | | | Change-Id: Ie637e9415b48f028f43d32989a2f133572792866 Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* Fix some typos.kh12011-10-201-2/+2
| | | | | | | 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>
* added scRemoteVersion constant for better readabilityAlexander Lenhardt2011-10-131-2/+2
| | | | | | Change-Id: I781f58c74e318d0946026f691cb381634fd59704 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Fixed QTSDK-961Alexander Lenhardt2011-10-131-4/+6
| | | | | | | | | | | | - 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>
* fix foundImportantUpdate and rename it to essentialTim Jenssen2011-09-271-1/+1
| | | | | | | | | | | | - 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>
* convert and use autodependencies like usually dependenciesTim Jenssen2011-09-161-1/+4
| | | | | | | | | | - 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>
* Fixes QTIFW-6.kh12011-09-121-3/+2
| | | | | | | | | | "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>
* updater can't have a component with uninstallation requestedTim Jenssen2011-08-261-0/+2
| | | | | | | | 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>
* Add a context paramter to be able to pass some other info.kh12011-08-251-4/+4
| | | | | | | 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>
* component script constructor can cause an exception forward thisTim Jenssen2011-08-251-0/+6
| | | | | | | 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>
* Add a getter for auto dependency values.kh12011-08-231-7/+12
| | | | | | | | | | 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>
* catch isDefault and isAutoDependOn errors from scriptTim Jenssen2011-08-221-2/+19
| | | | | | | | 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>
* Expose some private functions and make use of it.kh12011-08-181-4/+3
| | | | | | | | | | | | 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>
* Remove now superfluous code as depenedencies work.kh12011-08-151-1/+0
| | | | Review-By: tjenssen
* Fix wrong whitespaces.kh12011-08-121-12/+12
|
* Small cleanup.kh12011-08-121-16/+14
| | | | | | | | | 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
* Added some comments. Small change to keep the code compact.kh12011-08-121-19/+22
| | | | Review-By: Niels Weber
* Revert: 308dc03e a1a130b9 5fb0f4ackh12011-08-101-1/+2
| | | | | | | | | | | | | | 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
* now autodepend is recursive and worksTim Jenssen2011-07-291-5/+12
|
* activate auto depend onTim Jenssen2011-07-291-0/+1
|
* added const to method where possible and clean up the code(removed unused ↵Tim Jenssen2011-07-271-9/+4
| | | | | | methods) Reviewed-By: Niels Weber
* enable ,<space> and , as seperator in stringlist valuesTim Jenssen2011-07-271-4/+4
| | | | Reviewed-By: Niels Weber
* added an updateIsAvailable flag to component classTim Jenssen2011-07-271-1/+17
| | | | Reviewed-By: Niels Weber
* added a why component, because it looks very strange to meTim Jenssen2011-07-271-0/+1
|
* added isAutoDependOn to Component classTim Jenssen2011-07-221-1/+34
|