From 9c02dbb59ce57c68dc177d9294b980bf114a3e11 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 15:59:03 -0500 Subject: Update to TDE R14 API --- doc/html/configelem_8cpp-source.html | 190 +++++++++++++++++------------------ 1 file changed, 95 insertions(+), 95 deletions(-) (limited to 'doc/html/configelem_8cpp-source.html') diff --git a/doc/html/configelem_8cpp-source.html b/doc/html/configelem_8cpp-source.html index e8e1e2a..f01995c 100644 --- a/doc/html/configelem_8cpp-source.html +++ b/doc/html/configelem_8cpp-source.html @@ -38,7 +38,7 @@ 00021 int const ConfigElem::cancelShowHeaders( 1 ); 00022 00023 -00024 ConfigElem::ConfigElem( ) : QObject() +00024 ConfigElem::ConfigElem( ) : TQObject() 00025 { 00026 //initialize account 00027 init(); @@ -51,7 +51,7 @@ 00034 m_strAccount = ""; 00035 } 00036 -00037 ConfigElem::ConfigElem( ConfigList* config ) : QObject() +00037 ConfigElem::ConfigElem( ConfigList* config ) : TQObject() 00038 { 00039 //initialize account 00040 init(); @@ -65,7 +65,7 @@ 00048 00049 } 00050 -00051 ConfigElem::ConfigElem( ConfigElem* pElem ) : QObject() +00051 ConfigElem::ConfigElem( ConfigElem* pElem ) : TQObject() 00052 { 00053 //initialize account 00054 init(); @@ -81,7 +81,7 @@ 00064 00065 } 00066 -00067 ConfigElem::ConfigElem( ConfigList* config, const QString& account ) : QObject() +00067 ConfigElem::ConfigElem( ConfigList* config, const TQString& account ) : TQObject() 00068 { 00069 //initialize account 00070 init(); @@ -99,7 +99,7 @@ 00082 void ConfigElem::init( ) 00083 { 00084 //initialize timeout timer -00085 pop3Timer = new QTimer( this ); +00085 pop3Timer = new TQTimer( this ); 00086 connect( pop3Timer, SIGNAL( timeout() ), this, SLOT( slotTimeout() ) ); 00087 00088 //state is idle @@ -121,10 +121,10 @@ 00104 // do not delete m_pshowrecord here 00105 } 00106 -00107 void ConfigElem::saveOptions( QDomDocument& doc, QDomElement& parent ) +00107 void ConfigElem::saveOptions( TQDomDocument& doc, TQDomElement& parent ) 00108 { 00109 //get application config -00110 KConfig* config = KApplication::kApplication()->config(); +00110 TDEConfig* config = TDEApplication::kApplication()->config(); 00111 00112 //save the active state 00113 config->setGroup( getAccountName() ); @@ -136,7 +136,7 @@ 00119 m_pshowrecord->saveOptions( doc, parent ); 00120 } 00121 -00122 void ConfigElem::readStoredMails( QDomElement& parent ) +00122 void ConfigElem::readStoredMails( TQDomElement& parent ) 00123 { 00124 //get mails 00125 m_pshowrecord->readStoredMails( parent ); @@ -163,23 +163,23 @@ 00146 m_bActive = active; 00147 } 00148 -00149 QString ConfigElem::getAccountName( ) const +00149 TQString ConfigElem::getAccountName( ) const 00150 { 00151 return m_strAccount; 00152 } 00153 -00154 void ConfigElem::setAccountName( QString name ) +00154 void ConfigElem::setAccountName( TQString name ) 00155 { 00156 if( name != NULL ) 00157 m_strAccount = name; 00158 } 00159 -00160 QString ConfigElem::getPassword( ) const +00160 TQString ConfigElem::getPassword( ) const 00161 { 00162 return m_url.pass(); 00163 } 00164 -00165 void ConfigElem::setPassword( const QString& password ) +00165 void ConfigElem::setPassword( const TQString& password ) 00166 { 00167 m_url.setPass( password ); 00168 } @@ -194,12 +194,12 @@ 00177 return m_url.hasPass(); 00178 } 00179 -00180 void ConfigElem::setListViewItem( QListViewItem* item ) +00180 void ConfigElem::setListViewItem( TQListViewItem* item ) 00181 { 00182 m_pViewItem = item; 00183 } 00184 -00185 QListViewItem * ConfigElem::getListViewItem( ) +00185 TQListViewItem * ConfigElem::getListViewItem( ) 00186 { 00187 return m_pViewItem; 00188 } @@ -225,12 +225,12 @@ 00208 m_pshowrecord->clear(); 00209 } 00210 -00211 void ConfigElem::setHost( const QString& host ) +00211 void ConfigElem::setHost( const TQString& host ) 00212 { 00213 m_url.setHost( host ); 00214 } 00215 -00216 void ConfigElem::setProtocol( const QString& protocol ) +00216 void ConfigElem::setProtocol( const TQString& protocol ) 00217 { 00218 m_url.setProtocol( protocol ); 00219 } @@ -240,17 +240,17 @@ 00223 m_url.setPort( port ); 00224 } 00225 -00226 void ConfigElem::setUser( const QString & user ) +00226 void ConfigElem::setUser( const TQString & user ) 00227 { 00228 m_url.setUser( user ); 00229 } 00230 -00231 QString ConfigElem::getUser( ) const +00231 TQString ConfigElem::getUser( ) const 00232 { 00233 return m_url.user(); 00234 } 00235 -00236 QString ConfigElem::getHost( ) const +00236 TQString ConfigElem::getHost( ) const 00237 { 00238 return m_url.host(); 00239 } @@ -297,14 +297,14 @@ 00280 { 00281 //no password found, we will ask the user! 00282 //set normal cursor -00283 while( QApplication::overrideCursor() ) -00284 QApplication::restoreOverrideCursor(); +00283 while( TQApplication::overrideCursor() ) +00284 TQApplication::restoreOverrideCursor(); 00285 -00286 QCString password; //for the password dialog to store the password +00286 TQCString password; //for the password dialog to store the password 00287 int result = KPasswordDialog::getPassword( password, i18n( "Please type in the password for %1" ).arg( getAccountName() ) ); 00288 00289 //set waiting cursor -00290 QApplication::setOverrideCursor( Qt::waitCursor ); +00290 TQApplication::setOverrideCursor( TQt::waitCursor ); 00291 00292 //let's look, what the user has done :o) 00293 if( result == KPasswordDialog::Accepted ) @@ -314,13 +314,13 @@ 00297 setPassword( password ); 00298 00299 //save password in file or KWallet -00300 KConfig* config = KApplication::kApplication()->config(); +00300 TDEConfig* config = TDEApplication::kApplication()->config(); 00301 config->setGroup( getAccountName() ); 00302 00303 if( PasswordStorage == CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_FILE ) 00304 config->writeEntry( CONFIG_ENTRY_ACCOUNT_PASSWORD, crypt( m_url ) ); 00305 else -00306 config->writeEntry( CONFIG_ENTRY_ACCOUNT_PASSWORD, QString::null ); +00306 config->writeEntry( CONFIG_ENTRY_ACCOUNT_PASSWORD, TQString::null ); 00307 00308 if( PasswordStorage == CONFIG_VALUE_ACCOUNT_PASSWORD_SAVE_KWALLET ) 00309 KWalletAccess::savePassword( getAccountName(), m_url.pass() ); @@ -353,11 +353,11 @@ 00336 } 00337 00338 //start job -00339 startKIOJob( QString( "/remove/%1" ).arg( *MailsToDelete.begin() ) ); -00340 connect( pop3Job, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotMailDeleted( KIO::Job* ) ) ); +00339 startKIOJob( TQString( "/remove/%1" ).arg( *MailsToDelete.begin() ) ); +00340 connect( pop3Job, SIGNAL( result( TDEIO::Job* ) ), this, SLOT( slotMailDeleted( TDEIO::Job* ) ) ); 00341 } 00342 -00343 void ConfigElem::slotMailDeleted( KIO::Job* job ) +00343 void ConfigElem::slotMailDeleted( TDEIO::Job* job ) 00344 { 00345 //stop timeout timer 00346 pop3Timer->stop(); @@ -365,7 +365,7 @@ 00348 //check for errors 00349 //if an error is occured, the deletion will be canceled 00350 //or will ask for a new password -00351 if( job->error() == KIO::ERR_COULD_NOT_LOGIN ) +00351 if( job->error() == TDEIO::ERR_COULD_NOT_LOGIN ) 00352 { 00353 //login failed, ask for a new password 00354 job->showErrorDialog(); @@ -408,7 +408,7 @@ 00391 00392 } 00393 -00394 void ConfigElem::slotFinalizeDeletion( KIO::Job* ) +00394 void ConfigElem::slotFinalizeDeletion( TDEIO::Job* ) 00395 { 00396 //stop timeout time 00397 pop3Timer->stop(); @@ -420,9 +420,9 @@ 00403 emit sigDeleteReady( m_strAccount ); 00404 } 00405 -00406 void ConfigElem::startKIOJob( const QString & path ) +00406 void ConfigElem::startKIOJob( const TQString & path ) 00407 { -00408 KIO::MetaData options; //options for the pop3 job +00408 TDEIO::MetaData options; //options for the pop3 job 00409 00410 //set options 00411 options.insert( "progress", "off" ); @@ -437,7 +437,7 @@ 00420 kdDebug() << "ConfigElem::startKIOJob: start KIO job on URL " << m_url.url() << endl; 00421 00422 //start the job and get handle to it -00423 pop3Job = KIO::get( m_url, false, false ); +00423 pop3Job = TDEIO::get( m_url, false, false ); 00424 00425 //put options to the job 00426 pop3Job->addMetaData( options ); @@ -454,8 +454,8 @@ 00437 void ConfigElem::commitDeletion( ) 00438 { 00439 //start job to commit -00440 startKIOJob( QString( "/commit" ) ); -00441 connect( pop3Job, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotFinalizeDeletion( KIO::Job* ) ) ); +00440 startKIOJob( TQString( "/commit" ) ); +00441 connect( pop3Job, SIGNAL( result( TDEIO::Job* ) ), this, SLOT( slotFinalizeDeletion( TDEIO::Job* ) ) ); 00442 } 00443 00444 unsigned int ConfigElem::getTimeoutTime( ) @@ -484,7 +484,7 @@ 00467 kdError() << "Timeout error!" << endl; 00468 00469 if( state != AccountRefreshing || appConfig->showConnectionErrors() ) -00470 KMessageBox::error( NULL, QString( i18n( "Time out on %1. The operation could not be finished on time" ) ).arg( m_strAccount ), i18n( "Time Out" ) ); +00470 KMessageBox::error( NULL, TQString( i18n( "Time out on %1. The operation could not be finished on time" ) ).arg( m_strAccount ), i18n( "Time Out" ) ); 00471 00472 //call the appropriate finalize methode 00473 switch( state ) @@ -498,7 +498,7 @@ 00481 } 00482 } 00483 -00484 QStringList ConfigElem::getSelectedSubjects( ) const +00484 TQStringList ConfigElem::getSelectedSubjects( ) const 00485 { 00486 return m_pshowrecord->getSelectedSubjects(); 00487 } @@ -557,13 +557,13 @@ 00540 mailbody.resize( 0 ); 00541 00542 //start job -00543 startKIOJob( QString( "/download/%1" ).arg( *MailsToShow.begin() ) ); -00544 connect( pop3Job, SIGNAL( data( KIO::Job*, const QByteArray & ) ), SLOT( slotDataMailBody( KIO::Job*, const QByteArray & ) ) ); -00545 connect( pop3Job, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotBodyDownloaded( KIO::Job* ) ) ); +00543 startKIOJob( TQString( "/download/%1" ).arg( *MailsToShow.begin() ) ); +00544 connect( pop3Job, SIGNAL( data( TDEIO::Job*, const TQByteArray & ) ), SLOT( slotDataMailBody( TDEIO::Job*, const TQByteArray & ) ) ); +00545 connect( pop3Job, SIGNAL( result( TDEIO::Job* ) ), this, SLOT( slotBodyDownloaded( TDEIO::Job* ) ) ); 00546 00547 } 00548 -00549 void ConfigElem::slotBodyDownloaded( KIO::Job * job ) +00549 void ConfigElem::slotBodyDownloaded( TDEIO::Job * job ) 00550 { 00551 //stop timeout timer 00552 pop3Timer->stop(); @@ -571,7 +571,7 @@ 00554 //check for errors 00555 //if an error has occured, the download will be canceled 00556 //or will ask for a new password -00557 if( job->error() == KIO::ERR_COULD_NOT_LOGIN ) +00557 if( job->error() == TDEIO::ERR_COULD_NOT_LOGIN ) 00558 { 00559 //login failed, ask for a new password 00560 job->showErrorDialog(); @@ -595,11 +595,11 @@ 00578 //succesful download 00579 //show mail 00580 int currentMail = *MailsToShow.begin(); -00581 QString tsender = m_pshowrecord->getSenderOf( currentMail ); -00582 QString tdate = m_pshowrecord->getDateOf( currentMail ); -00583 QString tsize = m_pshowrecord->getSizeOf( currentMail ); -00584 QString tsubject = m_pshowrecord->getSubjectOf( currentMail ); -00585 QString tmailbody( m_pshowrecord->decodeMailBody( mailbody, currentMail, appConfig->allowHTML() ) ); +00581 TQString tsender = m_pshowrecord->getSenderOf( currentMail ); +00582 TQString tdate = m_pshowrecord->getDateOf( currentMail ); +00583 TQString tsize = m_pshowrecord->getSizeOf( currentMail ); +00584 TQString tsubject = m_pshowrecord->getSubjectOf( currentMail ); +00585 TQString tmailbody( m_pshowrecord->decodeMailBody( mailbody, currentMail, appConfig->allowHTML() ) ); 00586 00587 //emit signal to notify the opening of a window 00588 emit sigMessageWindowOpened(); @@ -635,7 +635,7 @@ 00618 showNextMail(); 00619 } 00620 -00621 void ConfigElem::slotFinalizeShowMail( KIO::Job* ) +00621 void ConfigElem::slotFinalizeShowMail( TDEIO::Job* ) 00622 { 00623 //stop timeout time 00624 pop3Timer->stop(); @@ -647,7 +647,7 @@ 00630 emit sigShowBodiesReady( m_strAccount ); 00631 } 00632 -00633 void ConfigElem::slotDataMailBody( KIO::Job *, const QByteArray & datas ) +00633 void ConfigElem::slotDataMailBody( TDEIO::Job *, const TQByteArray & datas ) 00634 { 00635 if( !datas.isEmpty() ) 00636 { @@ -663,8 +663,8 @@ 00646 void ConfigElem::commitDownloading( ) 00647 { 00648 //start job to commit -00649 startKIOJob( QString( "/commit" ) ); -00650 connect( pop3Job, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotFinalizeShowMail( KIO::Job* ) ) ); +00649 startKIOJob( TQString( "/commit" ) ); +00650 connect( pop3Job, SIGNAL( result( TDEIO::Job* ) ), this, SLOT( slotFinalizeShowMail( TDEIO::Job* ) ) ); 00651 } 00652 00653 void ConfigElem::refreshMailList( ) @@ -699,32 +699,32 @@ 00682 00683 void ConfigElem::getUIDs( ) 00684 { -00685 //clears the QString list, which contains all received UIDs +00685 //clears the TQString list, which contains all received UIDs 00686 receivedUIDs.clear(); 00687 00688 //start job -00689 startKIOJob( QString( "/uidl" ) ); -00690 connect( pop3Job, SIGNAL( data( KIO::Job*, const QByteArray & ) ), SLOT( slotReceiveUID( KIO::Job*, const QByteArray & ) ) ); -00691 connect( pop3Job, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotUIDsReceived( KIO::Job* ) ) ); +00689 startKIOJob( TQString( "/uidl" ) ); +00690 connect( pop3Job, SIGNAL( data( TDEIO::Job*, const TQByteArray & ) ), SLOT( slotReceiveUID( TDEIO::Job*, const TQByteArray & ) ) ); +00691 connect( pop3Job, SIGNAL( result( TDEIO::Job* ) ), this, SLOT( slotUIDsReceived( TDEIO::Job* ) ) ); 00692 00693 } 00694 -00695 void ConfigElem::slotReceiveUID( KIO::Job*, const QByteArray& data ) +00695 void ConfigElem::slotReceiveUID( TDEIO::Job*, const TQByteArray& data ) 00696 { 00697 //return, when data is empty 00698 if( data.isEmpty() ) return; 00699 -00700 //cast the data to QString -00701 QString uid( data ); +00700 //cast the data to TQString +00701 TQString uid( data ); 00702 00703 //insert the uid at the end of the UID list 00704 receivedUIDs.append( uid ); 00705 } 00706 -00707 void ConfigElem::slotUIDsReceived( KIO::Job * job ) +00707 void ConfigElem::slotUIDsReceived( TDEIO::Job * job ) 00708 { 00709 int number; //an extracted mail number -00710 QString uid; //an extracted uid +00710 TQString uid; //an extracted uid 00711 bool corruptData = false; //set to TRUE, if a data is corrupt 00712 bool isNew = false; //state of the received mail 00713 @@ -734,7 +734,7 @@ 00717 //check for errors 00718 //if an error has occured, the refresh will be canceled 00719 //or will ask for a new password -00720 if( job->error() == KIO::ERR_COULD_NOT_LOGIN ) +00720 if( job->error() == TDEIO::ERR_COULD_NOT_LOGIN ) 00721 { 00722 //login failed, ask for a new password 00723 job->showErrorDialog(); @@ -765,9 +765,9 @@ 00748 if( !receivedUIDs.isEmpty() ) 00749 { 00750 //iterate over all UIDs in the list -00751 for ( QStringList::Iterator it = receivedUIDs.begin(); it != receivedUIDs.end(); ++it ) +00751 for ( TQStringList::Iterator it = receivedUIDs.begin(); it != receivedUIDs.end(); ++it ) 00752 { -00753 QString line = *it; +00753 TQString line = *it; 00754 00755 //every line has the format "number UID", e.g.: 1 bf10d38018de7c1d628d65288d722f6a 00756 //get the position of the separating space @@ -776,7 +776,7 @@ 00759 //if no space was found, the line is corrupt 00760 if( positionOfSpace == -1 ) 00761 { -00762 kdError() << "ConfigElem::slotUIDsReceived: get a corrupt UID from " << dynamic_cast<KIO::SimpleJob*>(job)->url().host() << ". No space. : " << line << endl; +00762 kdError() << "ConfigElem::slotUIDsReceived: get a corrupt UID from " << dynamic_cast<TDEIO::SimpleJob*>(job)->url().host() << ". No space. : " << line << endl; 00763 corruptData = true; 00764 } 00765 else @@ -788,7 +788,7 @@ 00771 if( !isNumber ) 00772 { 00773 //the first part is not a number -00774 kdError() << "ConfigElem::slotUIDsReceived: get a corrupt UID from " << dynamic_cast<KIO::SimpleJob*>(job)->url().host() << ". No number found at begin. : " << line << endl; +00774 kdError() << "ConfigElem::slotUIDsReceived: get a corrupt UID from " << dynamic_cast<TDEIO::SimpleJob*>(job)->url().host() << ". No number found at begin. : " << line << endl; 00775 corruptData = true; 00776 } 00777 else @@ -856,7 +856,7 @@ 00839 //we don't need an error message, because the KIO job has shown one 00840 } 00841 -00842 void ConfigElem::slotFinalizeRefresh( KIO::Job* ) +00842 void ConfigElem::slotFinalizeRefresh( TDEIO::Job* ) 00843 { 00844 //stop timeout time 00845 pop3Timer->stop(); @@ -880,23 +880,23 @@ 00863 void ConfigElem::commitRefresh( ) 00864 { 00865 //start job to commit -00866 startKIOJob( QString( "/commit" ) ); -00867 connect( pop3Job, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotFinalizeRefresh( KIO::Job* ) ) ); +00866 startKIOJob( TQString( "/commit" ) ); +00867 connect( pop3Job, SIGNAL( result( TDEIO::Job* ) ), this, SLOT( slotFinalizeRefresh( TDEIO::Job* ) ) ); 00868 } 00869 00870 void ConfigElem::getSizes( ) 00871 { -00872 //clears the QString list, which contains all received UIDs +00872 //clears the TQString list, which contains all received UIDs 00873 receivedSizes.clear(); 00874 00875 //start job -00876 startKIOJob( QString( "/index" ) ); -00877 connect( pop3Job, SIGNAL( data( KIO::Job*, const QByteArray & ) ), SLOT( slotReceiveSize( KIO::Job*, const QByteArray & ) ) ); -00878 connect( pop3Job, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotSizesReceived( KIO::Job* ) ) ); +00876 startKIOJob( TQString( "/index" ) ); +00877 connect( pop3Job, SIGNAL( data( TDEIO::Job*, const TQByteArray & ) ), SLOT( slotReceiveSize( TDEIO::Job*, const TQByteArray & ) ) ); +00878 connect( pop3Job, SIGNAL( result( TDEIO::Job* ) ), this, SLOT( slotSizesReceived( TDEIO::Job* ) ) ); 00879 00880 } 00881 -00882 void ConfigElem::slotSizesReceived( KIO::Job * job ) +00882 void ConfigElem::slotSizesReceived( TDEIO::Job * job ) 00883 { 00884 int number; //an extracted mail number 00885 long size; //an extracted size @@ -920,9 +920,9 @@ 00903 if( !receivedSizes.isEmpty() ) 00904 { 00905 //iterate over all sizes in the list -00906 for ( QStringList::Iterator it = receivedSizes.begin(); it != receivedSizes.end(); ++it ) +00906 for ( TQStringList::Iterator it = receivedSizes.begin(); it != receivedSizes.end(); ++it ) 00907 { -00908 QString line = *it; +00908 TQString line = *it; 00909 00910 //every line has the format "number size", e.g.: 1 1234 00911 //get the position of the separating space @@ -931,7 +931,7 @@ 00914 //if no space was found, the line is corrupt 00915 if( positionOfSpace == -1 ) 00916 { -00917 kdError() << "ConfigElem::slotSizesReceived: get a corrupt size from " << dynamic_cast<KIO::SimpleJob*>(job)->url().host() << ". No space. : " << line << endl; +00917 kdError() << "ConfigElem::slotSizesReceived: get a corrupt size from " << dynamic_cast<TDEIO::SimpleJob*>(job)->url().host() << ". No space. : " << line << endl; 00918 corruptData = true; 00919 } 00920 else @@ -943,7 +943,7 @@ 00926 if( !isNumber ) 00927 { 00928 //the first part is not a number -00929 kdError() << "ConfigElem::slotSizesReceived: get a corrupt size from " << dynamic_cast<KIO::SimpleJob*>(job)->url().host() << ". No number found at begin. : " << line << endl; +00929 kdError() << "ConfigElem::slotSizesReceived: get a corrupt size from " << dynamic_cast<TDEIO::SimpleJob*>(job)->url().host() << ". No number found at begin. : " << line << endl; 00930 corruptData = true; 00931 } 00932 else @@ -955,7 +955,7 @@ 00938 if( !isNumber ) 00939 { 00940 //the second part of the string is not a number -00941 kdError() << "ConfigElem::slotSizesReceived: get a corrupt size from " << dynamic_cast<KIO::SimpleJob*>(job)->url().host() << ". No size found at end. : " << line << endl; +00941 kdError() << "ConfigElem::slotSizesReceived: get a corrupt size from " << dynamic_cast<TDEIO::SimpleJob*>(job)->url().host() << ". No size found at end. : " << line << endl; 00942 corruptData = true; 00943 } 00944 else @@ -977,13 +977,13 @@ 00960 } 00961 } 00962 -00963 void ConfigElem::slotReceiveSize( KIO::Job *, const QByteArray & data ) +00963 void ConfigElem::slotReceiveSize( TDEIO::Job *, const TQByteArray & data ) 00964 { 00965 //return, when data is empty 00966 if( data.isEmpty() ) return; 00967 -00968 //cast the data to QString -00969 QString size( data ); +00968 //cast the data to TQString +00969 TQString size( data ); 00970 00971 //insert the uid at the end of the sizes list 00972 receivedSizes.append( size ); @@ -1018,13 +1018,13 @@ 01001 receivedHeader.resize( 0 ); 01002 01003 //start job -01004 startKIOJob( QString( "/headers/%1" ).arg( *newMails.begin() ) ); -01005 connect( pop3Job, SIGNAL( data( KIO::Job*, const QByteArray & ) ), this, SLOT( slotReceiveHeader( KIO::Job*, const QByteArray & ) ) ); -01006 connect( pop3Job, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotHeaderDownloaded( KIO::Job* ) ) ); +01004 startKIOJob( TQString( "/headers/%1" ).arg( *newMails.begin() ) ); +01005 connect( pop3Job, SIGNAL( data( TDEIO::Job*, const TQByteArray & ) ), this, SLOT( slotReceiveHeader( TDEIO::Job*, const TQByteArray & ) ) ); +01006 connect( pop3Job, SIGNAL( result( TDEIO::Job* ) ), this, SLOT( slotHeaderDownloaded( TDEIO::Job* ) ) ); 01007 01008 } 01009 -01010 void ConfigElem::slotHeaderDownloaded( KIO::Job * job ) +01010 void ConfigElem::slotHeaderDownloaded( TDEIO::Job * job ) 01011 { 01012 //stop timeout timer 01013 pop3Timer->stop(); @@ -1042,7 +1042,7 @@ 01025 } 01026 01027 //store header -01028 tempMailList->setHeader( *newMails.begin(), QString( receivedHeader ) ); +01028 tempMailList->setHeader( *newMails.begin(), TQString( receivedHeader ) ); 01029 01030 //remove the first item of the list of new mails 01031 newMails.remove( newMails.begin() ); @@ -1061,14 +1061,14 @@ 01044 void ConfigElem::copyHeaders( ) 01045 { 01046 //get the UIDs of the old mails in the temporary mail list -01047 QStringList UIDs = tempMailList->getUIDsOfOldMails(); +01047 TQStringList UIDs = tempMailList->getUIDsOfOldMails(); 01048 01049 //iterate over all members of the list, 01050 //get the header from the old list and store it in the new one -01051 QStringList::iterator it; +01051 TQStringList::iterator it; 01052 for ( it = UIDs.begin(); it != UIDs.end(); ++it ) 01053 { -01054 QString header = m_pshowrecord->getHeaderOf( *it ); +01054 TQString header = m_pshowrecord->getHeaderOf( *it ); 01055 tempMailList->setHeader( *it, header ); 01056 } 01057 @@ -1076,7 +1076,7 @@ 01059 commitRefresh(); 01060 } 01061 -01062 void ConfigElem::slotReceiveHeader( KIO::Job *, const QByteArray & data ) +01062 void ConfigElem::slotReceiveHeader( TDEIO::Job *, const TQByteArray & data ) 01063 { 01064 if( !data.isEmpty() ) 01065 { @@ -1115,13 +1115,13 @@ 01098 { 01099 if( isActive() ) 01100 { -01101 m_pViewItem->setText( 4, QString( "%1" ).arg( getNumberMails(), 3 ) ); -01102 m_pViewItem->setText( 5, QString( "%1" ).arg( getTotalSize(), 8 ) ); +01101 m_pViewItem->setText( 4, TQString( "%1" ).arg( getNumberMails(), 3 ) ); +01102 m_pViewItem->setText( 5, TQString( "%1" ).arg( getTotalSize(), 8 ) ); 01103 } 01104 else 01105 { -01106 m_pViewItem->setText( 4, QString( "???" ) ); -01107 m_pViewItem->setText( 5, QString( "???" ) ); +01106 m_pViewItem->setText( 4, TQString( "???" ) ); +01107 m_pViewItem->setText( 5, TQString( "???" ) ); 01108 } 01109 } 01110 } @@ -1203,7 +1203,7 @@ 01186 return PasswordStorage; 01187 } 01188 -01189 QString ConfigElem::getProtocol( bool upperCase ) const +01189 TQString ConfigElem::getProtocol( bool upperCase ) const 01190 { 01191 if( upperCase ) 01192 return m_url.protocol().upper(); -- cgit v1.2.1