@ -27,20 +27,20 @@
# include <ktar.h>
# include <kdebug.h>
# include < qwizard.h>
# include < qwidget.h>
# include < qpushbutton.h>
# include < qtextstream.h>
# include < qfile.h>
# include < qtextbrowser.h>
# include < qmime.h>
# include < qstring.h>
# include < qdialog.h>
# include < qlabel.h>
# include < qdatetime.h>
# include < qtextstream.h>
# include < qptrlist.h>
# include < qdir.h>
# include < t qwizard.h>
# include < t qwidget.h>
# include < t qpushbutton.h>
# include < t qtextstream.h>
# include < t qfile.h>
# include < t qtextbrowser.h>
# include < t qmime.h>
# include < t qstring.h>
# include < t qdialog.h>
# include < t qlabel.h>
# include < t qdatetime.h>
# include < t qtextstream.h>
# include < t qptrlist.h>
# include < t qdir.h>
# include <iostream>
# include <cstdlib>
@ -48,7 +48,7 @@
# include "upgradewizard.h"
# include "errordialog.h"
DistroEntry : : DistroEntry ( QString * d_field )
DistroEntry : : DistroEntry ( T QString * d_field )
{
dist_field = d_field ;
supported_field = false ;
@ -74,25 +74,25 @@ DistroEntry::~DistroEntry() {
free ( upgrade_tool_sig_url ) ;
}
UpgradeWizard : : UpgradeWizard ( QWidget* parent, const char * name , bool modal , WFlags fl )
: UpgradeWizardDlg ( parent, name , modal , fl )
UpgradeWizard : : UpgradeWizard ( T QWidget* tq parent, const char * name , bool modal , WFlags fl )
: UpgradeWizardDlg ( tq parent, name , modal , fl )
{
err_dlg = NULL ;
for ( int i = 0 ; i < pageCount ( ) ; i + + ) {
QWidget* p = page ( i ) ;
T QWidget* p = page ( i ) ;
setHelpEnabled ( p , false ) ;
}
QWidget * p = page ( pageCount ( ) - 1 ) ;
T QWidget * p = page ( pageCount ( ) - 1 ) ;
setBackEnabled ( p , false ) ;
textLabel3 - > hide ( ) ;
p = page ( pageCount ( ) - 2 ) ;
setNextEnabled ( p , false ) ;
QPushButton * fin = finishButton ( ) ;
connect ( fin , SIGNAL( clicked ( ) ) , this , SLOT( launchDistUpdater ( ) ) ) ;
T QPushButton * fin = finishButton ( ) ;
connect ( fin , TQT_ SIGNAL( clicked ( ) ) , this , TQT_ SLOT( launchDistUpdater ( ) ) ) ;
}
@ -101,20 +101,20 @@ UpgradeWizard::~UpgradeWizard()
// ** FUNCTIONS ** //
void UpgradeWizard : : removeDirectory ( QString directoryName )
void UpgradeWizard : : removeDirectory ( T QString directoryName )
{
// recursively delete a directory structure
// Mar-22-2007 Billy Pollifrone
QDir dir ( directoryName ) ;
QStringList files ( dir . entryList ( ) ) ;
for ( QStringList: : Iterator i = files . begin ( ) ; i ! = files . end ( ) ; i + + ) {
QString fileName ( * ( i ) ) ;
if ( fileName = = QString( " . " ) | | fileName = = QString( " .. " ) ) continue ;
QFileInfo fileInfo ( directoryName , fileName ) ;
T QDir dir ( directoryName ) ;
T QStringList files ( dir . entryList ( ) ) ;
for ( T QStringList: : Iterator i = files . begin ( ) ; i ! = files . end ( ) ; i + + ) {
T QString fileName ( * ( i ) ) ;
if ( fileName = = T QString( " . " ) | | fileName = = T QString( " .. " ) ) continue ;
T QFileInfo fileInfo ( directoryName , fileName ) ;
if ( fileInfo . isDir ( ) ) {
removeDirectory ( fileInfo . absFilePath ( ) ) ;
} else {
QFile file ( fileInfo . absFilePath ( ) ) ;
T QFile file ( fileInfo . absFilePath ( ) ) ;
file . remove ( ) ;
}
}
@ -126,55 +126,55 @@ void UpgradeWizard::removeOldUpgradeTool()
// remove old files from dist-upgrade when we check if there is a knew one since
// adept kills us before we have a chance on the same run.
// Mar-22-2007 Billy Pollifrone
QString directoryName ( " /tmp/kde-root " ) ;
QString directoryFilter ( " adept_*.tmp* " ) ;
QDir dir ( directoryName , directoryFilter ) ;
QStringList files ( dir . entryList ( ) ) ;
for ( QStringList: : Iterator i = files . begin ( ) ; i ! = files . end ( ) ; i + + ) {
QString fileName ( * ( i ) ) ;
QFileInfo fileInfo ( directoryName , fileName ) ;
T QString directoryName ( " /tmp/kde-root " ) ;
T QString directoryFilter ( " adept_*.tmp* " ) ;
T QDir dir ( directoryName , directoryFilter ) ;
T QStringList files ( dir . entryList ( ) ) ;
for ( T QStringList: : Iterator i = files . begin ( ) ; i ! = files . end ( ) ; i + + ) {
T QString fileName ( * ( i ) ) ;
T QFileInfo fileInfo ( directoryName , fileName ) ;
if ( fileInfo . isDir ( ) ) {
removeDirectory ( fileInfo . absFilePath ( ) ) ;
} else {
QFile file ( fileInfo . absFilePath ( ) ) ;
T QFile file ( fileInfo . absFilePath ( ) ) ;
file . remove ( ) ;
}
}
}
bool UpgradeWizard : : checkForDistUpgrade ( QString url , bool developmentVersion ) {
bool UpgradeWizard : : checkForDistUpgrade ( T QString url , bool developmentVersion ) {
removeOldUpgradeTool ( ) ;
std : : cout < < " UpgradeWizard::checkForDistUpgrade " < < std : : endl ;
if ( url = = QString( " " ) ) {
url = QString( " http://changelogs.ubuntu.com/meta-release " ) ;
if ( url = = T QString( " " ) ) {
url = T QString( " http://changelogs.ubuntu.com/meta-release " ) ;
}
bool upgrade_available = false ;
KConfig * config = KGlobal : : config ( ) ;
config - > setGroup ( " General Settings " ) ;
QString upgradeURL ;
upgradeURL = config - > readEntry ( QString( " upgradeURL " ) , url ) ;
T QString upgradeURL ;
upgradeURL = config - > readEntry ( T QString( " upgradeURL " ) , url ) ;
KURL metafile_url ( upgradeURL ) ;
QString temp_file_location ;
T QString temp_file_location ;
if ( KIO : : NetAccess : : download ( metafile_url , temp_file_location , NULL ) ) {
QFile temp_file ( temp_file_location ) ;
T QFile temp_file ( temp_file_location ) ;
temp_file . open ( IO_ReadOnly ) ;
QTextIStream * temp_file_stream = new QTextIStream( temp_file . readAll ( ) ) ;
T QTextIStream * temp_file_stream = new T QTextIStream( temp_file . readAll ( ) ) ;
// need to spawn a process to call lsb_release -c -s
// to find out which version of kubuntu we are using
KProcess * proc = new KProcess ;
* proc < < " lsb_release " ;
* proc < < " -c " < < " -s " ;
connect ( proc , SIGNAL( receivedStdout ( KProcess * , char * , int ) ) ,
this , SLOT( receiveDistroName ( KProcess * , char * , int ) ) ) ;
connect ( proc , TQT_ SIGNAL( receivedStdout ( KProcess * , char * , int ) ) ,
this , TQT_ SLOT( receiveDistroName ( KProcess * , char * , int ) ) ) ;
proc - > start ( KProcess : : Block , KProcess : : Stdout ) ;
current_dist = 0 ;
QPtrList< DistroEntry > * entry_list = parseMetafile ( temp_file_stream , distro_name ) ;
T QPtrList< DistroEntry > * entry_list = parseMetafile ( temp_file_stream , distro_name ) ;
upgrade_dist = entry_list - > last ( ) ;
DistroEntry * entry ;
@ -218,7 +218,7 @@ bool UpgradeWizard::checkForDistUpgrade(QString url, bool developmentVersion) {
std : : cout < < " Dist: " < < * entry - > dist_field - > latin1 ( ) < < std : : endl ;
std : : cout < < " Name: " < < * entry - > name_field - > latin1 ( ) < < std : : endl ;
std : : cout < < " Version: " < < * entry - > version_field - > latin1 ( ) < < std : : endl ;
std : : cout < < " Date: " < < entry - > date_field - > toString ( QString( " ddd, dd MMM yyyy hh:mm:ss UTC " ) ) . latin1 ( ) < < std : : endl ;
std : : cout < < " Date: " < < entry - > date_field - > toString ( T QString( " ddd, dd MMM yyyy hh:mm:ss UTC " ) ) . latin1 ( ) < < std : : endl ;
//std::cout << "Supported: " << entry->supported_field.latin1() << std::endl;
std : : cout < < " Description: " < < * entry - > desc_field - > latin1 ( ) < < std : : endl ;
std : : cout < < " Release-File: " < < entry - > release_file_url - > prettyURL ( ) . latin1 ( ) < < std : : endl ;
@ -242,25 +242,25 @@ bool UpgradeWizard::checkForDistUpgrade(QString url, bool developmentVersion) {
return upgrade_available ;
}
QPtrList< DistroEntry > * UpgradeWizard : : parseMetafile ( QTextIStream * text_stream ,
QString my_distro_name )
T QPtrList< DistroEntry > * UpgradeWizard : : parseMetafile ( T QTextIStream * text_stream ,
T QString my_distro_name )
{
QPtrList< DistroEntry > * metafile_entries = new QPtrList< DistroEntry > ( ) ;
T QPtrList< DistroEntry > * metafile_entries = new T QPtrList< DistroEntry > ( ) ;
DistroEntry * entry = NULL ;
while ( ! text_stream - > atEnd ( ) ) {
QStringList line = QStringList: : split ( QChar( ' : ' ) , text_stream - > readLine ( ) ) ;
T QStringList line = T QStringList: : split ( T QChar( ' : ' ) , text_stream - > readLine ( ) ) ;
if ( ! line . isEmpty ( ) ) {
QString first = line . first ( ) ;
if ( QString: : compare ( first , QString( " Dist " ) ) = = 0 ) {
T QString first = line . first ( ) ;
if ( T QString: : compare ( first , T QString( " Dist " ) ) = = 0 ) {
// we've encountered a new entry:
// first save the old one
if ( entry ! = NULL ) {
// if this entry is for the current version we are running,
// then add it at the start of the list
if ( QString: : compare ( * entry - > dist_field , my_distro_name ) = = 0 ) {
if ( T QString: : compare ( * entry - > dist_field , my_distro_name ) = = 0 ) {
current_dist = entry ;
metafile_entries - > prepend ( entry ) ;
} else {
@ -269,105 +269,105 @@ QPtrList<DistroEntry> *UpgradeWizard::parseMetafile( QTextIStream *text_stream,
}
// now create a new entry
line . pop_front ( ) ;
entry = new DistroEntry ( new QString( line . first ( ) . stripWhiteSpace ( ) ) ) ;
entry = new DistroEntry ( new T QString( line . first ( ) . stripWhiteSpace ( ) ) ) ;
}
else if ( QString: : compare ( first , QString( " Name " ) ) = = 0 ) {
else if ( T QString: : compare ( first , T QString( " Name " ) ) = = 0 ) {
if ( entry ! = NULL ) {
line . pop_front ( ) ;
entry - > name_field = new QString( line . first ( ) . stripWhiteSpace ( ) ) ;
entry - > name_field = new T QString( line . first ( ) . stripWhiteSpace ( ) ) ;
}
}
else if ( QString: : compare ( first , QString( " Version " ) ) = = 0 ) {
else if ( T QString: : compare ( first , T QString( " Version " ) ) = = 0 ) {
if ( entry ! = NULL ) {
line . pop_front ( ) ;
entry - > version_field = new QString( line . first ( ) . stripWhiteSpace ( ) ) ;
entry - > version_field = new T QString( line . first ( ) . stripWhiteSpace ( ) ) ;
}
}
else if ( QString: : compare ( first , QString( " Date " ) ) = = 0 ) {
else if ( T QString: : compare ( first , T QString( " Date " ) ) = = 0 ) {
if ( entry ! = NULL ) {
line . pop_front ( ) ;
QString temp = line . join ( QChar( ' ' ) ) . stripWhiteSpace ( ) ;
T QString temp = line . join ( T QChar( ' ' ) ) . stripWhiteSpace ( ) ;
// get the day(verbal)
line = QStringList: : split ( QChar( ' ' ) , temp ) ;
QString day_verbal = line . first ( ) ;
line = T QStringList: : split ( T QChar( ' ' ) , temp ) ;
T QString day_verbal = line . first ( ) ;
day_verbal . truncate ( 3 ) ;
// get the date
line . pop_front ( ) ;
QString date = line . first ( ) ;
T QString date = line . first ( ) ;
// get the month(verbal)
line . pop_front ( ) ;
QString month_verbal = line . first ( ) ;
T QString month_verbal = line . first ( ) ;
// get the year
line . pop_front ( ) ;
QString year = line . first ( ) ;
T QString year = line . first ( ) ;
// get the time
line . pop_front ( ) ;
QString time = line . first ( ) + " : " ;
T QString time = line . first ( ) + " : " ;
line . pop_front ( ) ;
time + = line . first ( ) + " : " ;
line . pop_front ( ) ;
time + = line . first ( ) ;
QDate the_date ( QDate: : fromString ( day_verbal + " " + month_verbal + " " + date + " " + year ) ) ;
QTime the_time ( QTime: : fromString ( time ) ) ;
T QDate the_date ( T QDate: : fromString ( day_verbal + " " + month_verbal + " " + date + " " + year ) ) ;
T QTime the_time ( T QTime: : fromString ( time ) ) ;
entry - > date_field = new QDateTime( the_date , the_time ) ;
entry - > date_field = new T QDateTime( the_date , the_time ) ;
}
}
else if ( QString: : compare ( first , QString( " Supported " ) ) = = 0 ) {
else if ( T QString: : compare ( first , T QString( " Supported " ) ) = = 0 ) {
if ( entry ! = NULL ) {
line . pop_front ( ) ;
entry - > supported_field = line . first ( ) . stripWhiteSpace ( ) . toInt ( ) ;
}
}
else if ( QString: : compare ( first , QString( " Description " ) ) = = 0 ) {
else if ( T QString: : compare ( first , T QString( " Description " ) ) = = 0 ) {
if ( entry ! = NULL ) {
line . pop_front ( ) ;
entry - > desc_field = new QString( line . first ( ) . stripWhiteSpace ( ) ) ;
entry - > desc_field = new T QString( line . first ( ) . stripWhiteSpace ( ) ) ;
}
}
else if ( QString: : compare ( first , QString( " Release-File " ) ) = = 0 ) {
else if ( T QString: : compare ( first , T QString( " Release-File " ) ) = = 0 ) {
if ( entry ! = NULL ) {
line . pop_front ( ) ;
QString http_part = line . first ( ) . stripWhiteSpace ( ) + " : " ;
T QString http_part = line . first ( ) . stripWhiteSpace ( ) + " : " ;
line . pop_front ( ) ;
QString complete_url = http_part + line . first ( ) . stripWhiteSpace ( ) ;
T QString complete_url = http_part + line . first ( ) . stripWhiteSpace ( ) ;
entry - > release_file_url = new KURL ( complete_url ) ;
}
}
else if ( QString: : compare ( first , QString( " ReleaseNotes " ) ) = = 0 ) {
else if ( T QString: : compare ( first , T QString( " ReleaseNotes " ) ) = = 0 ) {
if ( entry ! = NULL ) {
line . pop_front ( ) ;
QString http_part = line . first ( ) . stripWhiteSpace ( ) + " : " ;
T QString http_part = line . first ( ) . stripWhiteSpace ( ) + " : " ;
line . pop_front ( ) ;
QString complete_url = http_part + line . first ( ) . stripWhiteSpace ( ) ;
T QString complete_url = http_part + line . first ( ) . stripWhiteSpace ( ) ;
entry - > release_notes_url = new KURL ( complete_url ) ;
}
}
else if ( QString: : compare ( first , QString( " UpgradeTool " ) ) = = 0 ) {
else if ( T QString: : compare ( first , T QString( " UpgradeTool " ) ) = = 0 ) {
if ( entry ! = NULL ) {
line . pop_front ( ) ;
QString http_part = line . first ( ) . stripWhiteSpace ( ) + " : " ;
T QString http_part = line . first ( ) . stripWhiteSpace ( ) + " : " ;
line . pop_front ( ) ;
QString complete_url = http_part + line . first ( ) . stripWhiteSpace ( ) ;
T QString complete_url = http_part + line . first ( ) . stripWhiteSpace ( ) ;
entry - > upgrade_tool_url = new KURL ( complete_url ) ;
}
}
else if ( QString: : compare ( first , QString( " UpgradeToolSignature " ) ) = = 0 ) {
else if ( T QString: : compare ( first , T QString( " UpgradeToolSignature " ) ) = = 0 ) {
if ( entry ! = NULL ) {
line . pop_front ( ) ;
QString http_part = line . first ( ) . stripWhiteSpace ( ) + " : " ;
T QString http_part = line . first ( ) . stripWhiteSpace ( ) + " : " ;
line . pop_front ( ) ;
QString complete_url = http_part + line . first ( ) . stripWhiteSpace ( ) ;
T QString complete_url = http_part + line . first ( ) . stripWhiteSpace ( ) ;
entry - > upgrade_tool_sig_url = new KURL ( complete_url ) ;
}
}
@ -378,7 +378,7 @@ QPtrList<DistroEntry> *UpgradeWizard::parseMetafile( QTextIStream *text_stream,
// add the last one
// if this entry is for the current version we are running,
// then add it at the start of the list
if ( QString: : compare ( * entry - > dist_field , my_distro_name ) = = 0 ) {
if ( T QString: : compare ( * entry - > dist_field , my_distro_name ) = = 0 ) {
current_dist = entry ;
metafile_entries - > prepend ( entry ) ;
} else {
@ -391,14 +391,14 @@ QPtrList<DistroEntry> *UpgradeWizard::parseMetafile( QTextIStream *text_stream,
// ** SLOTS ** //
void UpgradeWizard : : receiveDistroName ( KProcess * , char * buffer , int buflen ) {
distro_name = QString: : fromAscii ( buffer , buflen - 1 ) ;
distro_name = T QString: : fromAscii ( buffer , buflen - 1 ) ;
}
void UpgradeWizard : : launchDistUpdater ( ) {
QDir dir ;
T QDir dir ;
dir . mkdir ( upgrade_tool_location + " -extract " ) ;
KTar tarFile ( upgrade_tool_location , QString( " application/x-gzip " ) ) ;
KTar tarFile ( upgrade_tool_location , T QString( " application/x-gzip " ) ) ;
tarFile . open ( IO_ReadOnly ) ;
//KArchiveDirectory* tarDirectory = tarFile.directory();
//tarDirectory->copyTo(upgrade_tool_location+"-extract");
@ -411,11 +411,11 @@ void UpgradeWizard::launchDistUpdater() {
proc - > start ( KProcess : : DontCare ) ;
// don't kill adept, it stops the app from running
// parentWidget()->close();
// tq parentWidget()->close();
}
void UpgradeWizard : : fetchReleaseAnnounce ( ) {
QString temp_file_location ;
T QString temp_file_location ;
bool result = false ;
if ( upgrade_dist - > release_notes_url = = NULL ) {
@ -428,17 +428,17 @@ void UpgradeWizard::fetchReleaseAnnounce() {
if ( result ) {
emit killErrorDialog ( ) ;
err_dlg = NULL ;
textBrowser1 - > mimeSourceFactory ( ) - > setExtensionType ( QString( " tmp " ) , " text/plain " ) ;
textBrowser1 - > mimeSourceFactory ( ) - > setExtensionType ( T QString( " tmp " ) , " text/plain " ) ;
textBrowser1 - > setSource ( temp_file_location ) ;
QWidget * p = page ( pageCount ( ) - 2 ) ;
T QWidget * p = page ( pageCount ( ) - 2 ) ;
setNextEnabled ( p , true ) ;
} else {
if ( err_dlg = = NULL ) {
err_dlg = new ErrorDialog ( this , i18n ( " Could not download the release announcement. Please check that your Internet connection is active. " ) , 0 , 1 ) ;
connect ( err_dlg - > retryButton , SIGNAL( clicked ( ) ) , this , SLOT( fetchReleaseAnnounce ( ) ) ) ;
connect ( err_dlg - > exitButton , SIGNAL( clicked ( ) ) , err_dlg , SLOT( close ( ) ) ) ;
connect ( err_dlg - > exitButton , SIGNAL( clicked ( ) ) , this , SLOT( close ( ) ) ) ;
connect ( this , SIGNAL( killErrorDialog ( ) ) , err_dlg , SLOT( close ( ) ) ) ;
connect ( err_dlg - > retryButton , TQT_ SIGNAL( clicked ( ) ) , this , TQT_ SLOT( fetchReleaseAnnounce ( ) ) ) ;
connect ( err_dlg - > exitButton , TQT_ SIGNAL( clicked ( ) ) , err_dlg , TQT_ SLOT( close ( ) ) ) ;
connect ( err_dlg - > exitButton , TQT_ SIGNAL( clicked ( ) ) , this , TQT_ SLOT( close ( ) ) ) ;
connect ( this , TQT_ SIGNAL( killErrorDialog ( ) ) , err_dlg , TQT_ SLOT( close ( ) ) ) ;
err_dlg - > show ( ) ;
}
}
@ -457,10 +457,10 @@ void UpgradeWizard::fetchUpgradeTool() {
} else {
if ( err_dlg = = NULL ) {
err_dlg = new ErrorDialog ( this , i18n ( " Could not download the upgrade tool. Please check that your Internet connection is active. " ) , 0 , 1 ) ;
connect ( err_dlg - > retryButton , SIGNAL( clicked ( ) ) , this , SLOT( fetchUpgradeTool ( ) ) ) ;
connect ( err_dlg - > exitButton , SIGNAL( clicked ( ) ) , err_dlg , SLOT( close ( ) ) ) ;
connect ( err_dlg - > exitButton , SIGNAL( clicked ( ) ) , this , SLOT( close ( ) ) ) ;
connect ( this , SIGNAL( killErrorDialog ( ) ) , err_dlg , SLOT( close ( ) ) ) ;
connect ( err_dlg - > retryButton , TQT_ SIGNAL( clicked ( ) ) , this , TQT_ SLOT( fetchUpgradeTool ( ) ) ) ;
connect ( err_dlg - > exitButton , TQT_ SIGNAL( clicked ( ) ) , err_dlg , TQT_ SLOT( close ( ) ) ) ;
connect ( err_dlg - > exitButton , TQT_ SIGNAL( clicked ( ) ) , this , TQT_ SLOT( close ( ) ) ) ;
connect ( this , TQT_ SIGNAL( killErrorDialog ( ) ) , err_dlg , TQT_ SLOT( close ( ) ) ) ;
err_dlg - > show ( ) ;
}
}
@ -475,10 +475,10 @@ void UpgradeWizard::fetchUpgradeToolSig() {
} else {
if ( err_dlg = = NULL ) {
err_dlg = new ErrorDialog ( this , i18n ( " Could not download the upgrade tool's GPG signature. Please check that your Internet connection is active. " ) , 0 , 1 ) ;
connect ( err_dlg - > retryButton , SIGNAL( clicked ( ) ) , this , SLOT( fetchUpgradeToolSig ( ) ) ) ;
connect ( err_dlg - > exitButton , SIGNAL( clicked ( ) ) , err_dlg , SLOT( close ( ) ) ) ;
connect ( err_dlg - > exitButton , SIGNAL( clicked ( ) ) , this , SLOT( close ( ) ) ) ;
connect ( this , SIGNAL( killErrorDialog ( ) ) , err_dlg , SLOT( close ( ) ) ) ;
connect ( err_dlg - > retryButton , TQT_ SIGNAL( clicked ( ) ) , this , TQT_ SLOT( fetchUpgradeToolSig ( ) ) ) ;
connect ( err_dlg - > exitButton , TQT_ SIGNAL( clicked ( ) ) , err_dlg , TQT_ SLOT( close ( ) ) ) ;
connect ( err_dlg - > exitButton , TQT_ SIGNAL( clicked ( ) ) , this , TQT_ SLOT( close ( ) ) ) ;
connect ( this , TQT_ SIGNAL( killErrorDialog ( ) ) , err_dlg , TQT_ SLOT( close ( ) ) ) ;
err_dlg - > show ( ) ;
}
}
@ -497,17 +497,17 @@ void UpgradeWizard::verifyUpgradeTool() {
err_dlg = NULL ;
// remove the signature file
KIO : : file_delete ( KURL ( upgrade_tool_sig_location ) , false ) ;
QWidget * p = page ( pageCount ( ) - 1 ) ;
T QWidget * p = page ( pageCount ( ) - 1 ) ;
setFinishEnabled ( p , true ) ;
textLabel3 - > show ( ) ;
} else {
if ( err_dlg = = NULL ) {
err_dlg = new ErrorDialog ( this , i18n ( " Could not verify the integrity of the upgrader application. This program will now exit. " ) , 0 , 1 ) ;
//connect( err_dlg->retryButton, SIGNAL( clicked() ), this, SLOT( verify_upgrade_tool() ) );
//connect( err_dlg->retryButton, TQT_ SIGNAL( clicked() ), this, TQT_ SLOT( verify_upgrade_tool() ) );
err_dlg - > retryButton - > setEnabled ( false ) ;
connect ( err_dlg - > exitButton , SIGNAL( clicked ( ) ) , err_dlg , SLOT( close ( ) ) ) ;
connect ( err_dlg - > exitButton , SIGNAL( clicked ( ) ) , this , SLOT( close ( ) ) ) ;
connect ( this , SIGNAL( killErrorDialog ( ) ) , err_dlg , SLOT( close ( ) ) ) ;
connect ( err_dlg - > exitButton , TQT_ SIGNAL( clicked ( ) ) , err_dlg , TQT_ SLOT( close ( ) ) ) ;
connect ( err_dlg - > exitButton , TQT_ SIGNAL( clicked ( ) ) , this , TQT_ SLOT( close ( ) ) ) ;
connect ( this , TQT_ SIGNAL( killErrorDialog ( ) ) , err_dlg , TQT_ SLOT( close ( ) ) ) ;
err_dlg - > show ( ) ;
}
}
@ -515,12 +515,12 @@ void UpgradeWizard::verifyUpgradeTool() {
void UpgradeWizard : : back ( )
{
QWizard: : back ( ) ;
T QWizard: : back ( ) ;
}
void UpgradeWizard : : next ( )
{
QWizard: : next ( ) ;
T QWizard: : next ( ) ;
// page 1: d/l release announcement
// and display it on page1