summaryrefslogtreecommitdiffstats
path: root/installerbuilder/common/binaryformat.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Keep common just for the tools.kh12012-03-131-1115/+0
| | | | | | | All other files should be in the lib anyway. Fix includes. Change-Id: I654fadf0a77b8d19953a6b47820e6398af11e2df Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Fix missing operations problem.kh12012-03-051-7/+8
| | | | | | | | | | | | | After a7c900ce4b6f33f14e1abe9f2dba70f6a16b2105 uninstalling one or several components failed, caused by the fact I used a hash to store the on disk component data after loading. Since the key would be the same for several components, only one single set of data would be available afterwards. Now store a pair of data and keep the order as well, important for uninstalling order... Change-Id: I8033273087361640abc920eb6338c76df0adc99a Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Implement shared class for binary content.kh12012-02-281-46/+129
| | | | | | | | | | | Fixes binary content destructor. Makes sure we unregister and clear the embedded resources only once. Helps to avoid instantiating several copies of BinaryFormatEngineHandler. Implement some statics to read and register the binary content. Change-Id: If7c72fe7c1588497736552f9c3490f58484b602e Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com> Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
* Fix typo. magicmaker() -> magicMarker()kh12012-02-271-4/+4
| | | | | | Change-Id: Ie822aef8943799497088bbc6949a2712a63b51c4 Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* remove code that has been ifdefed out since foreverNiels Weber2012-02-151-21/+0
| | | | | Change-Id: I52ba7e94f12d12af25e55490e01f785f0e07fe96 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Fix typos etc for translation needs.Niels Weber2012-02-101-10/+10
| | | | | | | Also, updated ts files. Change-Id: I083b8b41817e3b8dcd88af3a477fbe926503e3ca Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* fix typos, unify strings etcNiels Weber2012-02-091-2/+2
| | | | | | | to help with translation work Change-Id: Ia3f5ebc8311b1a385c5055d43769b97db18484f0 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* Fix typo.kh12012-02-091-1/+1
| | | | | Change-Id: I949769490de2d2597cfa43217cfd916789c02243 Reviewed-by: Niels Weber <niels.2.weber@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>
* license header fixesNiels Weber2012-02-061-13/+13
| | | | | Change-Id: I47739f3b085b4fe1bb8c64eba1b0a74b6c999ee4 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>
* clean up some qDebug messagesTim Jenssen2012-01-241-4/+10
| | | | | Change-Id: I707c4e757f9e050512166779e64dec76ec806879 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* Use qDebug instead of verbose.kh12012-01-171-12/+15
| | | | | | | The message handler now forwards everything to the verbosew riter anyway. Change-Id: I822f86e8f2e2e7690a3b855ed83199d2f41dc480 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Simplify KD* directory structure.hjk2011-11-211-1/+1
| | | | | Change-Id: Ia6a4a9581873ada42aed3818d8fd2a4f41763f75 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Remove re-directing KD* header.hjk2011-11-211-1/+1
| | | | | Change-Id: I840d5d7739161300b38ac9b77eaabb2840c9fe02 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Remove operation xml verbose output.kh12011-11-181-6/+6
| | | | | | | | | Delete the operation and continue in error case without adding the operation to the performed operations list. Change-Id: I8e0f9bacb0d3b1e3fc1883b77e9a52d2f886d1b5 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* allow archivegen to archive multiple directoriesMaurice Kalinowski2011-08-311-1/+1
| | | | | | | | | | | | | | this includes changing the syntax, it is now like in 7za archivegen arch.7z dir1 dir2 ... We will need this for further packaging. Adding incrementally does not work as the fascade creates a temporary files and writes it back. Hence we cannot add one directory after another Change-Id: I1923a3beabacf7b8f3618807c5377061555d98b2 Reviewed-on: http://codereview.qt.nokia.com/3889 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Remove compressing resources and operations.kh12011-08-161-10/+7
| | | | | | | | | Causes way to much trouble during an update. Change-Id: I46ea549e5a6395d59182524570925843983c6954 Reviewed-on: http://codereview.qt.nokia.com/3007 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Operations -> OperationListkh12011-07-051-1/+1
|
* Define some typedefs and hide the "Update"...kh12011-07-041-3/+2
|
* Use typedef to hide the "Update" prefix, doesn't fit really.kh12011-07-041-2/+2
|
* Properly fix the use of the binary file raw pointer.kh12011-06-241-33/+33
| | | | | | | | | Make sure we pass the shared pointer around instead of the actual raw pointer, this makes sure it get's destroyed at the right point in time. As long as we run the installer, the binary stays read opened during the whole application run, while running the updater/ package manager/ uninstaller will close the binary as soon as we mapped all data.
* Proper variable naming.kh12011-06-241-13/+13
|
* In case we are the installer do not close the file.kh12011-06-241-1/+0
| | | | | | | This is only the case for offline installer, as all resources are attached to the binary. Once we close the file, we are unable to read any resource like archives, operations etc... This fixes the crash seen by Maurice using the offline installer.
* Revert the revert commits as they do not fix the crash.kh12011-06-241-6/+0
| | | | | | I was trying to fix a crash in binary format handler that I thought was caused be removing these classes. Still this wasn't the case after some debugging, and, we really don't need them.
* Revert "Resolve TODO. Remove as it's not needed at all."kh12011-06-241-0/+6
| | | | This reverts commit fc936fe798cef701f1fde434eaf25b9a34ad96b1.
* Get rid of mmap-ing at all.kh12011-05-301-21/+17
| | | | | | It does not save that much memory as the resource is not in the gigabyte range. This will enable us to also get rid of the complex rename process for the binary data file...
* Add convenient function.kh12011-05-301-0/+8
|
* Cleanup, no functional change.kh12011-05-241-41/+29
|
* Extend comment.kh12011-05-241-1/+1
|
* Compress the resources as well.kh12011-05-241-3/+34
|
* Write the operations in compressed form.kh12011-05-241-4/+7
| | | | Save at least have the size of the binary data file.
* Add some debug output.kh12011-05-201-0/+6
|
* We need to keep the binary file in memory.kh12011-05-201-15/+21
| | | | | At some later point we map the resources into memory, but to access it the file needs to be opened still.
* Preparation to support a decoupled data file.kh12011-05-191-64/+88
|
* Reorder some code.kh12011-05-121-22/+25
|
* Implement read/ write to separate operation file.kh12011-05-121-21/+35
|
* Add accessor functions. Small style changes. Doc update.kh12011-05-101-29/+48
|
* Reorder to match header file.kh12011-05-041-30/+33
|
* Resolve TODO. Remove as it's not needed at all.kh12011-05-041-6/+0
|
* Fix build on OSX.kh12011-05-021-1/+3
|
* Cleanup. Formating. Style changes.kh12011-04-211-383/+382
|
* Whitespaces.kh12011-04-211-9/+9
|
* init commitTim Jenssen2011-02-211-0/+952