///////////////////////////////////////////////////////////////////////////////
// LameXP - Audio Encoder Front-End
-// Copyright (C) 2004-2011 LoRd_MuldeR <MuldeR2@GMX.de>
+// Copyright (C) 2004-2012 LoRd_MuldeR <MuldeR2@GMX.de>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
#pragma once
-#include "..\tmp\UIC_UpdateDialog.h"
-
#include <QDialog>
class UpdateInfo;
class SettingsModel;
class QMovie;
-class UpdateDialog : public QDialog, private Ui::UpdateDialog
+//UIC forward declartion
+namespace Ui {
+ class UpdateDialog;
+}
+
+//UpdateDialog class
+class UpdateDialog : public QDialog
{
Q_OBJECT
void progressBarValueChanged(int value);
protected:
- void showEvent(QShowEvent *event);
- void closeEvent(QCloseEvent *event);
- void keyPressEvent(QKeyEvent *e);
- bool winEvent(MSG *message, long *result);
+ virtual void showEvent(QShowEvent *event);
+ virtual void closeEvent(QCloseEvent *event);
+ virtual void keyPressEvent(QKeyEvent *e);
+ virtual bool winEvent(MSG *message, long *result);
+ virtual bool event(QEvent *e);
const bool m_betaUpdates;
private:
+ Ui::UpdateDialog *ui; //for Qt UIC
+
bool tryUpdateMirror(UpdateInfo *updateInfo, const QString &url);
bool getFile(const QString &url, const QString &outFile, unsigned int maxRedir = 5, bool *httpOk = NULL);
bool checkSignature(const QString &file, const QString &signature);
const QString m_binaryGnuPG;
const QString m_binaryUpdater;
const QString m_binaryKeys;
+ unsigned long m_updaterProcess;
bool m_success;
bool m_updateReadyToInstall;
+ bool m_firstShow;
};