summaryrefslogtreecommitdiffstats
path: root/installerbuilder/installerbase/installerbase_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'installerbuilder/installerbase/installerbase_p.h')
-rw-r--r--installerbuilder/installerbase/installerbase_p.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/installerbuilder/installerbase/installerbase_p.h b/installerbuilder/installerbase/installerbase_p.h
index d896c8061..94d405766 100644
--- a/installerbuilder/installerbase/installerbase_p.h
+++ b/installerbuilder/installerbase/installerbase_p.h
@@ -33,6 +33,12 @@
#include <QtCore/QThread>
#include <QtGui/QApplication>
+namespace KDUpdater {
+ class FileDownloader;
+}
+class QFile;
+
+
class Sleep : public QThread
{
public:
@@ -47,7 +53,25 @@ class InstallerBase : public QObject
Q_OBJECT;
public:
+ InstallerBase(QObject *parent = 0);
+ ~InstallerBase();
+
+ int replaceMaintenanceToolBinary(QStringList arguments);
static void showVersion(int &argc, char **argv, const QString &version);
+
+private slots:
+ void downloadStarted();
+ void downloadFinished();
+ void downloadProgress(double progress);
+ void downloadAborted(const QString& error);
+
+private:
+ void deferredRename(const QString &source, const QString &target);
+ void writeMaintenanceBinary(const QString &target, QFile *const source, qint64 size);
+
+private:
+ volatile bool m_downloadFinished;
+ QScopedPointer<KDUpdater::FileDownloader> m_downloader;
};
class MyCoreApplication : public QCoreApplication