summaryrefslogtreecommitdiffstats
path: root/installerbuilder/installerbase/installerbase_p.h
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@nokia.com>2011-11-22 17:52:59 +0100
committerKarsten Heimrich <karsten.heimrich@nokia.com>2011-11-23 12:10:48 +0100
commit707956ed5d2b9c127e4a5f5705addcda8d8cfd4a (patch)
tree6899c949063e233fcf63a43ec4f27756c44a6f6a /installerbuilder/installerbase/installerbase_p.h
parentc6475d72ca53282224dd9a0a18d434d3ef4be47f (diff)
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>
Diffstat (limited to 'installerbuilder/installerbase/installerbase_p.h')
-rw-r--r--installerbuilder/installerbase/installerbase_p.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/installerbuilder/installerbase/installerbase_p.h b/installerbuilder/installerbase/installerbase_p.h
index 904e6541a..b21adf60f 100644
--- a/installerbuilder/installerbase/installerbase_p.h
+++ b/installerbuilder/installerbase/installerbase_p.h
@@ -33,6 +33,9 @@
#include <QtCore/QThread>
#include <QtGui/QApplication>
+#include <fstream>
+#include <iostream>
+
namespace KDUpdater {
class FileDownloader;
}
@@ -41,6 +44,7 @@ QT_BEGIN_NAMESPACE
class QFile;
QT_END_NAMESPACE
+class MyApplicationConsole;
class Sleep : public QThread
{
@@ -60,7 +64,9 @@ public:
~InstallerBase();
int replaceMaintenanceToolBinary(QStringList arguments);
- static void showVersion(int &argc, char **argv, const QString &version);
+
+ static void showUsage();
+ static void showVersion(const QString &version);
private slots:
void downloadStarted();
@@ -88,5 +94,11 @@ class MyApplication : public QApplication
{
public:
MyApplication(int &argc, char **argv);
+ ~MyApplication();
+
+ void setVerbose();
virtual bool notify(QObject *receiver, QEvent *event);
+
+private:
+ MyApplicationConsole *m_console;
};