00001 #include "updaterdialog.h"
00002
00003 UpdaterDialog::UpdaterDialog(Settings &settings, QWidget *parent) : QDialog(parent)
00004 {
00005 setupUi(this);
00006 setAttribute(Qt::WA_DeleteOnClose, true);
00007
00008 textCurrentVersion->setText(QApplication::applicationVersion());
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 connect(buttonClose, SIGNAL(clicked()), this, SLOT(close()));
00026 }
00027
00028 bool UpdaterDialog::checkForUpdates()
00029 {
00030
00031 if(true)
00032 {
00033
00034
00035 return true;
00036 }
00037 return false;
00038 }
00039
00040 void UpdaterDialog::startUpdate()
00041 {
00042
00043 }
00044
00045 void UpdaterDialog::close()
00046 {
00047 if(checkBoxReminder->isChecked())
00048 {
00049 done(0);
00050 }
00051 else
00052 {
00053 done(0);
00054 }
00055 }