summaryrefslogtreecommitdiffstats
path: root/kmail/imapaccountbase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/imapaccountbase.cpp')
-rw-r--r--kmail/imapaccountbase.cpp88
1 files changed, 44 insertions, 44 deletions
diff --git a/kmail/imapaccountbase.cpp b/kmail/imapaccountbase.cpp
index 40ff81f7..47d169f9 100644
--- a/kmail/imapaccountbase.cpp
+++ b/kmail/imapaccountbase.cpp
@@ -105,12 +105,12 @@ namespace KMail {
{
mPort = imapDefaultPort;
mBodyPartList.setAutoDelete(true);
- TDEIO::Scheduler::connect(TQT_SIGNAL(slaveError(TDEIO::Slave *, int, const TQString &)),
- this, TQT_SLOT(slotSchedulerSlaveError(TDEIO::Slave *, int, const TQString &)));
- TDEIO::Scheduler::connect(TQT_SIGNAL(slaveConnected(TDEIO::Slave *)),
- this, TQT_SLOT(slotSchedulerSlaveConnected(TDEIO::Slave *)));
- connect(&mNoopTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotNoopTimeout()));
- connect(&mIdleTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotIdleTimeout()));
+ TDEIO::Scheduler::connect(TQ_SIGNAL(slaveError(TDEIO::Slave *, int, const TQString &)),
+ this, TQ_SLOT(slotSchedulerSlaveError(TDEIO::Slave *, int, const TQString &)));
+ TDEIO::Scheduler::connect(TQ_SIGNAL(slaveConnected(TDEIO::Slave *)),
+ this, TQ_SLOT(slotSchedulerSlaveConnected(TDEIO::Slave *)));
+ connect(&mNoopTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotNoopTimeout()));
+ connect(&mIdleTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotIdleTimeout()));
}
ImapAccountBase::~ImapAccountBase() {
@@ -385,8 +385,8 @@ namespace KMail {
jd.quiet = quiet;
insertJob(job, jd);
- connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
- TQT_SLOT(slotSubscriptionResult(TDEIO::Job *)));
+ connect(job, TQ_SIGNAL(result(TDEIO::Job *)),
+ TQ_SLOT(slotSubscriptionResult(TDEIO::Job *)));
}
//-----------------------------------------------------------------------------
@@ -437,8 +437,8 @@ namespace KMail {
jd.cancellable = true;
insertJob(job, jd);
- connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
- TQT_SLOT(slotGetUserRightsResult(TDEIO::Job *)));
+ connect(job, TQ_SIGNAL(result(TDEIO::Job *)),
+ TQ_SLOT(slotGetUserRightsResult(TDEIO::Job *)));
}
void ImapAccountBase::slotGetUserRightsResult( TDEIO::Job* _job )
@@ -481,8 +481,8 @@ namespace KMail {
jd.cancellable = true;
insertJob(job, jd);
- connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
- TQT_SLOT(slotGetACLResult(TDEIO::Job *)));
+ connect(job, TQ_SIGNAL(result(TDEIO::Job *)),
+ TQ_SLOT(slotGetACLResult(TDEIO::Job *)));
}
void ImapAccountBase::slotGetACLResult( TDEIO::Job* _job )
@@ -509,8 +509,8 @@ namespace KMail {
jd.cancellable = true;
insertJob(job, jd);
- connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
- TQT_SLOT(slotGetStorageQuotaInfoResult(TDEIO::Job *)));
+ connect(job, TQ_SIGNAL(result(TDEIO::Job *)),
+ TQ_SLOT(slotGetStorageQuotaInfoResult(TDEIO::Job *)));
}
void ImapAccountBase::slotGetStorageQuotaInfoResult( TDEIO::Job* _job )
@@ -536,8 +536,8 @@ namespace KMail {
TDEIO::SimpleJob *job = TDEIO::special( getUrl(), packedArgs, false );
TDEIO::Scheduler::assignJobToSlave(mSlave, job);
- connect( job, TQT_SIGNAL(result( TDEIO::Job * ) ),
- this, TQT_SLOT( slotSimpleResult( TDEIO::Job * ) ) );
+ connect( job, TQ_SIGNAL(result( TDEIO::Job * ) ),
+ this, TQ_SLOT( slotSimpleResult( TDEIO::Job * ) ) );
} else {
/* Stop the timer, we have disconnected. We have to make sure it is
started again when a new slave appears. */
@@ -596,8 +596,8 @@ namespace KMail {
emit connectionResult( 0, TQString() ); // success
if ( mNamespaces.isEmpty() || mNamespaceToDelimiter.isEmpty() ) {
- connect( this, TQT_SIGNAL( namespacesFetched( const ImapAccountBase::nsDelimMap& ) ),
- this, TQT_SLOT( slotSaveNamespaces( const ImapAccountBase::nsDelimMap& ) ) );
+ connect( this, TQ_SIGNAL( namespacesFetched( const ImapAccountBase::nsDelimMap& ) ),
+ this, TQ_SLOT( slotSaveNamespaces( const ImapAccountBase::nsDelimMap& ) ) );
getNamespaces();
}
@@ -607,8 +607,8 @@ namespace KMail {
stream << (int) 'c';
TDEIO::SimpleJob *job = TDEIO::special( getUrl(), packedArgs, false );
TDEIO::Scheduler::assignJobToSlave( mSlave, job );
- connect( job, TQT_SIGNAL(infoMessage(TDEIO::Job*, const TQString&)),
- TQT_SLOT(slotCapabilitiesResult(TDEIO::Job*, const TQString&)) );
+ connect( job, TQ_SIGNAL(infoMessage(TDEIO::Job*, const TQString&)),
+ TQ_SLOT(slotCapabilitiesResult(TDEIO::Job*, const TQString&)) );
}
//-----------------------------------------------------------------------------
@@ -621,16 +621,16 @@ namespace KMail {
//-----------------------------------------------------------------------------
void ImapAccountBase::getNamespaces()
{
- disconnect( this, TQT_SIGNAL( connectionResult(int, const TQString&) ),
- this, TQT_SLOT( getNamespaces() ) );
+ disconnect( this, TQ_SIGNAL( connectionResult(int, const TQString&) ),
+ this, TQ_SLOT( getNamespaces() ) );
if ( makeConnection() != Connected || !mSlave ) {
kdDebug(5006) << "getNamespaces - wait for connection" << endl;
if ( mNamespaces.isEmpty() || mNamespaceToDelimiter.isEmpty() ) {
// when the connection is established slotSchedulerSlaveConnected notifies us
} else {
// getNamespaces was called by someone else
- connect( this, TQT_SIGNAL( connectionResult(int, const TQString&) ),
- this, TQT_SLOT( getNamespaces() ) );
+ connect( this, TQ_SIGNAL( connectionResult(int, const TQString&) ),
+ this, TQ_SLOT( getNamespaces() ) );
}
return;
}
@@ -646,14 +646,14 @@ namespace KMail {
TQString(), true, useSSL() || useTLS() );
jd.progressItem->setTotalItems( 1 );
connect ( jd.progressItem,
- TQT_SIGNAL( progressItemCanceled( KPIM::ProgressItem* ) ),
+ TQ_SIGNAL( progressItemCanceled( KPIM::ProgressItem* ) ),
this,
- TQT_SLOT( slotAbortRequested( KPIM::ProgressItem* ) ) );
+ TQ_SLOT( slotAbortRequested( KPIM::ProgressItem* ) ) );
TDEIO::SimpleJob *job = TDEIO::special( getUrl(), packedArgs, false );
TDEIO::Scheduler::assignJobToSlave( mSlave, job );
insertJob( job, jd );
- connect( job, TQT_SIGNAL( infoMessage(TDEIO::Job*, const TQString&) ),
- TQT_SLOT( slotNamespaceResult(TDEIO::Job*, const TQString&) ) );
+ connect( job, TQ_SIGNAL( infoMessage(TDEIO::Job*, const TQString&) ),
+ TQ_SLOT( slotNamespaceResult(TDEIO::Job*, const TQString&) ) );
}
//-----------------------------------------------------------------------------
@@ -958,7 +958,7 @@ namespace KMail {
if ( errorCode == TDEIO::ERR_SERVER_TIMEOUT || errorCode == TDEIO::ERR_CONNECTION_BROKEN ) {
msg = i18n("The connection to the server %1 was unexpectedly closed or timed out. It will be re-established automatically if possible.").
arg( name() );
- KMessageBox::information( TQT_TQWIDGET(kapp->activeWindow()), msg, caption, "kmailConnectionBrokenErrorDialog" );
+ KMessageBox::information( kapp->activeWindow(), msg, caption, "kmailConnectionBrokenErrorDialog" );
// Show it in the status bar, in case the user has ticked "don't show again"
if ( errorCode == TDEIO::ERR_CONNECTION_BROKEN )
KPIM::BroadcastStatus::instance()->setStatusMsg(
@@ -968,9 +968,9 @@ namespace KMail {
i18n( "The connection to account %1 timed out." ).arg( name() ) );
} else {
if ( !errors.isEmpty() )
- KMessageBox::detailedError( TQT_TQWIDGET(kapp->activeWindow()), msg, errors.join("\n").prepend("<qt>"), caption );
+ KMessageBox::detailedError( kapp->activeWindow(), msg, errors.join("\n").prepend("<qt>"), caption );
else
- KMessageBox::error( TQT_TQWIDGET(kapp->activeWindow()), msg, caption );
+ KMessageBox::error( kapp->activeWindow(), msg, caption );
}
} else { // i.e. we have a chance to continue, ask the user about it
if ( errors.count() >= 3 ) { // there is no detailedWarningContinueCancel... (#86517)
@@ -978,7 +978,7 @@ namespace KMail {
msg = TQString( "<qt>") + context + error + '\n' + errors[2];
caption = errors[0];
}
- int ret = KMessageBox::warningContinueCancel( TQT_TQWIDGET(kapp->activeWindow()), msg, caption );
+ int ret = KMessageBox::warningContinueCancel( kapp->activeWindow(), msg, caption );
if ( ret == KMessageBox::Cancel ) {
jobsKilled = true;
killAllJobs( false );
@@ -1031,10 +1031,10 @@ namespace KMail {
mCheckingSingleFolder = ( type == Single );
if ( checkingMail() )
{
- disconnect( this, TQT_SIGNAL( finishedCheck( bool, CheckStatus ) ),
- this, TQT_SLOT( slotCheckQueuedFolders() ) );
- connect( this, TQT_SIGNAL( finishedCheck( bool, CheckStatus ) ),
- this, TQT_SLOT( slotCheckQueuedFolders() ) );
+ disconnect( this, TQ_SIGNAL( finishedCheck( bool, CheckStatus ) ),
+ this, TQ_SLOT( slotCheckQueuedFolders() ) );
+ connect( this, TQ_SIGNAL( finishedCheck( bool, CheckStatus ) ),
+ this, TQ_SLOT( slotCheckQueuedFolders() ) );
} else {
slotCheckQueuedFolders();
}
@@ -1043,8 +1043,8 @@ namespace KMail {
//-----------------------------------------------------------------------------
void ImapAccountBase::slotCheckQueuedFolders()
{
- disconnect( this, TQT_SIGNAL( finishedCheck( bool, CheckStatus ) ),
- this, TQT_SLOT( slotCheckQueuedFolders() ) );
+ disconnect( this, TQ_SIGNAL( finishedCheck( bool, CheckStatus ) ),
+ this, TQ_SLOT( slotCheckQueuedFolders() ) );
TQValueList<TQGuardedPtr<KMFolder> > mSaveList = mMailCheckFolders;
mMailCheckFolders = mFoldersQueuedForChecking;
@@ -1214,8 +1214,8 @@ namespace KMail {
ImapAccountBase::jobData jd( url.url(), folder );
jd.path = path;
insertJob(job, jd);
- connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
- TQT_SLOT(slotSetStatusResult(TDEIO::Job *)));
+ connect(job, TQ_SIGNAL(result(TDEIO::Job *)),
+ TQ_SLOT(slotSetStatusResult(TDEIO::Job *)));
}
void ImapAccountBase::setImapSeenStatus(KMFolder * folder, const TQString & path, bool seen)
@@ -1236,8 +1236,8 @@ namespace KMail {
ImapAccountBase::jobData jd( url.url(), folder );
jd.path = path;
insertJob(job, jd);
- connect(job, TQT_SIGNAL(result(TDEIO::Job *)),
- TQT_SLOT(slotSetStatusResult(TDEIO::Job *)));
+ connect(job, TQ_SIGNAL(result(TDEIO::Job *)),
+ TQ_SLOT(slotSetStatusResult(TDEIO::Job *)));
}
//-----------------------------------------------------------------------------
@@ -1299,9 +1299,9 @@ namespace KMail {
true,
useSSL() || useTLS() );
connect ( mListDirProgressItem,
- TQT_SIGNAL( progressItemCanceled( KPIM::ProgressItem* ) ),
+ TQ_SIGNAL( progressItemCanceled( KPIM::ProgressItem* ) ),
this,
- TQT_SLOT( slotAbortRequested( KPIM::ProgressItem* ) ) );
+ TQ_SLOT( slotAbortRequested( KPIM::ProgressItem* ) ) );
// Start with a guessed value of the old folder count plus 5%. As long
// as the list of folders doesn't constantly change, that should be good
// enough.