61 Commits

Author SHA1 Message Date
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
kh1
a56fdc2bc3 Let the app parse the arguments again in gui mode.
Also do not stop on unknown arguments, this is rather stupid
to do, just print the error message. Might fix a problem on
OSX with session id...

Change-Id: I9ca6903b0073ea54b398534c5273f7f0f2e50db4
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
2011-11-28 09:45:54 +01:00
kh1
bfbd76c816 Extend buffere size, move, add includes and defines.
Change-Id: Ic990012ca57bd97e50823de91bc9576dac6b7a34
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2011-11-23 15:36:38 +01:00
kh1
707956ed5d Let the the gui application open a console on Windows.
If running in verbose mode, redirect all output to our window.

Change-Id: Id93fb0b81ceaa7f0ad5eda26d5d313529976f661
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>
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
2011-11-23 12:10:48 +01:00
Alexander Lenhardt
7c2e7fbc2c added --version description to command-line help
Change-Id: I317ef287ced623eb18fa3a92acb90fcc1e53c93b
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2011-11-22 16:45:15 +01:00
Alexander Lenhardt
7cff235802 added command-line help
Change-Id: I034430cef3104ffcb6898eefdb5c421e15c5fa66
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
2011-11-22 16:15:53 +01:00
hjk
46d5f07487 Some replacements of QString::fromLatin1 with QLatin1String.
Change-Id: I76d6b7a0b7cb2a3acd4e82aa793ce50e43e1c678
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2011-11-21 13:15:03 +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
Niels Weber
2b09c8dec7 have always output, even when not verbose
Change-Id: Idb2ff09875017c31f3891d32a19e91678092cbad
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2011-11-17 13:01:33 +01:00
kh1
d48cb97ba1 Use QSet throughout the whole code, saves us QList conversions.
Remove default parameter from Repo ctor, lead already to confusion.
Also add some more specific {get/set} repo functions, to be able to
distinguish between the different kind of repositories (needed for
setting dialog).

Change-Id: I2c1e4d5377799f54e408a89785bdc5f01619f846
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
Reviewed-by: Alexander Lenhardt <alexander.lenhardt@nokia.com>
2011-11-15 14:54:00 +01:00
kh1
f06c311b10 Implement mechanism to update the maintenace tool.
Have an option to update the maintenace tool without using
the full installer binary. This can be used as fallback in
case the updater/ package manger won't start anymore.

Change-Id: I36be195203cb0172484d739c9f14a2e073ab7792
Reviewed-on: http://codereview.qt-project.org/5885
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-10-04 13:52:21 +02:00
kh1
e28c3cf29d Add some useful information about the installer base version.
Add the git sha1 and the build date to the verbose output, seems
more useful then the static version 2 we had before. Add --version
command line paramter. Small changes to the verbose output.

Change-Id: Idce7025dd64f3d56c2e6c53408167c95f41040d4
Reviewed-on: http://codereview.qt-project.org/5863
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
2011-09-30 14:18:22 +02:00
kh1
6f24db9d23 Move these into private source files, Include cleanup.
Change-Id: I8118c45a015f403a3f9aa28eff2e2b3cb795d1d4
Reviewed-on: http://codereview.qt-project.org/5862
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
2011-09-30 14:18:08 +02:00
Tim Jenssen
725f38b31b fixed wrong argument, added missing word run
Change-Id: I52a50e18c5f4fcddaf808457336a3784564781c6
Reviewed-on: http://codereview.qt-project.org/4923
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@nokia.com>
2011-09-15 08:21:52 +02:00
Tim Jenssen
507ef27700 we need the application object for some informations later
Change-Id: I67e1a6d4c3dcbd62d7fda343054fc509d7b4b935
Reviewed-on: http://codereview.qt-project.org/4909
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
2011-09-14 16:15:47 +02:00
Tim Jenssen
d51f2bad55 now an installer/maintenancetool can run operations
Change-Id: I9cea18aea7cdc9091b8268692b37dc1ebd098936
Reviewed-on: http://codereview.qt.nokia.com/4267
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2011-09-07 15:41:38 +02:00
Tim Jenssen
6f811f4895 now we forward exceptions from script and queue slots 2011-07-29 16:12:20 +02:00
Tim Jenssen
f1ccd134e2 reduce and improve verbose output 2011-07-19 13:52:22 +02:00
kh1
57a06a644f Move the define to where it's used. 2011-07-04 22:47:25 +02:00
kh1
7f75020e00 Keep the updater application as class member.
I can't see any reason to be able to set it from the outside,
thus it makes no sense to have that functionality at all.
To be able to work properly the app had to be set, but could
be easily forgotten, leading to a crash later on. Re-parsing
should be removed as well, will do it next.
2011-07-01 12:09:32 +02:00
kh1
2716f627b2 Rename files to match class name. Adjust includes. 2011-06-20 22:00:34 +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
5ed81415ac Rename the class to better fit it's real purpose. 2011-06-14 13:58:38 +02:00
kh1
c88e0eca04 Keep a flag if we have do a no forced installion. 2011-06-09 16:13:56 +02:00
kh1
2f76befcbb Merge branch 'master' into refactor
Conflicts:
	installerbuilder/installerbase/installerbase.cpp
2011-06-09 15:51:35 +02:00
Niels Weber
4f1d1b9255 don't fail with unknown arguments
done-with: kh1
2011-06-09 14:41:15 +02:00
kh1
23cb0b82ab Only in case we run the installer use metadata as source. 2011-06-08 12:03:17 +02:00
kh1
0fa4deea98 Remove unused function. 2011-06-05 20:49:47 +02:00
kh1
1bcaecfa87 The application object needs to be instantiated earlier.
Move this further up, since run checker accessed the qApp
object to get the application path. Supresses a warning..
2011-05-18 21:30:08 +02:00
kh1
f70957cfdc Merge branch 'master' into refactor 2011-05-18 21:26:51 +02:00
kh1
eb193817e8 Tha application object needs to be instantiated earlier.
Move this further up, since run checker accessed the qApp
object to get the application path. Supresses a warning..
2011-05-18 21:26:21 +02:00
kh1
ff292889df Merge branch 'master' into refactor
Conflicts:
	installerbuilder/installerbase/installerbase.cpp
2011-05-18 13:31:39 +02:00
kh1
5f52ee825d Use our own parser for arguments.
This fixes a; an crash seen on Linux and Mac caused
by two instances of Q{Core}Application and b; should
hide the icon and suppress message boxes in case we
check for updates. Seen on Mac mostly...

Review-by: tjenssen, Niels Weber
2011-05-18 13:24:28 +02:00
kh1
45ba3560f5 Always use TCP socket for communication. 2011-05-17 12:49:20 +02:00
kh1
63a5b8daaa Add accessor functions. Small style changes. Doc update. 2011-05-10 16:32:35 +02:00
kh1
1bd5c172e4 Whitespace. 2011-05-10 11:54:17 +02:00
kh1
c185bd8544 Initial implementation of user defined repositories. 2011-05-10 11:53:36 +02:00
kh1
9cdc4b7db4 Repositories are always "required" now. 2011-05-09 14:07:01 +02:00
kh1
1422149743 Remove superfluous function. Small cleanup. 2011-04-20 09:34:00 +02:00
kh1
66f0f592b5 Cleanup, we might need to adjust the examples though. 2011-04-12 10:10:06 +02:00
kh1
f620f3b477 Use the installer's virtual component font stuff. 2011-04-05 17:17:01 +02:00
kh1
30d37a5e00 Adjust updater to simple check for updates.
We might remove this class completely at some point.
2011-04-01 14:18:07 +02:00
kh1
32ae184157 Merge branch 'master' into refactor
Conflicts:
	installerbuilder/installerbase/tabcontroller.cpp
	installerbuilder/libinstaller/qinstaller.cpp
2011-03-16 10:22:13 +01:00
Tim Jenssen
c6c30f912b yes it is an allowed argument 2011-03-15 20:19:14 +01:00
kh1
6731abd566 Merge branch 'master' into refactor
Conflicts:
	installerbuilder/libinstaller/qinstallercomponent.cpp
	installerbuilder/libinstaller/qinstallercomponent.h
2011-03-14 17:51:45 +01:00
kh1
0fb14ac993 Major cleanup.
Use everything from installer now.
2011-03-14 17:42:15 +01:00
Niels Weber
9023403cad only one QApplication, so it does not crash
Reviewed-by: kh1
2011-03-14 14:18:08 +01:00
Niels Weber
95203f3719 Revert "Revert "Use a gui application to prevent crash.""
This reverts commit 4ad984278db64d719087922fabab94b2d93211ee.
2011-03-14 12:40:49 +01:00