summaryrefslogtreecommitdiffstats
path: root/kmail/sievedebugdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kmail/sievedebugdialog.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/sievedebugdialog.cpp')
-rw-r--r--kmail/sievedebugdialog.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/kmail/sievedebugdialog.cpp b/kmail/sievedebugdialog.cpp
index 30a34136a..5ab305e83 100644
--- a/kmail/sievedebugdialog.cpp
+++ b/kmail/sievedebugdialog.cpp
@@ -25,7 +25,7 @@
#include <cassert>
#include <limits.h>
-#include <qdatetime.h>
+#include <tqdatetime.h>
#include <kdebug.h>
#include <klocale.h>
@@ -43,7 +43,7 @@
using KMail::AccountManager;
#include "kmkernel.h"
#include "sievejob.h"
-#include <qtextedit.h>
+#include <tqtextedit.h>
using KMail::SieveJob;
using KMime::Types::AddrSpecList;
@@ -77,7 +77,7 @@ public:
}
private:
- void commandStart( const QString & identifier )
+ void commandStart( const TQString & identifier )
{
kdDebug( 5006 ) << k_funcinfo << "Identifier: '" << identifier << "'" << endl;
reset();
@@ -88,7 +88,7 @@ private:
kdDebug( 5006 ) << k_funcinfo << endl;
}
- void testStart( const QString & )
+ void testStart( const TQString & )
{
kdDebug( 5006 ) << k_funcinfo << endl;
}
@@ -118,12 +118,12 @@ private:
kdDebug( 5006 ) << k_funcinfo << endl;
}
- void hashComment( const QString & )
+ void hashComment( const TQString & )
{
kdDebug( 5006 ) << k_funcinfo << endl;
}
- void bracketComment( const QString & )
+ void bracketComment( const TQString & )
{
kdDebug( 5006 ) << k_funcinfo << endl;
}
@@ -144,12 +144,12 @@ private:
kdDebug( 5006 ) << k_funcinfo << endl;
}
- void taggedArgument( const QString & tag )
+ void taggedArgument( const TQString & tag )
{
kdDebug( 5006 ) << k_funcinfo << "Tag: '" << tag << "'" << endl;
}
- void stringArgument( const QString & string, bool, const QString & )
+ void stringArgument( const TQString & string, bool, const TQString & )
{
kdDebug( 5006 ) << k_funcinfo << "String: '" << string << "'" << endl;
}
@@ -164,7 +164,7 @@ private:
kdDebug( 5006 ) << k_funcinfo << endl;
}
- void stringListEntry( const QString & string, bool, const QString & )
+ void stringListEntry( const TQString & string, bool, const TQString & )
{
kdDebug( 5006 ) << k_funcinfo << "String: '" << string << "'" << endl;
}
@@ -186,7 +186,7 @@ private:
namespace KMail
{
-SieveDebugDialog::SieveDebugDialog( QWidget *parent, const char *name )
+SieveDebugDialog::SieveDebugDialog( TQWidget *parent, const char *name )
: KDialogBase( parent, name, true, i18n( "Sieve Diagnostics" ), KDialogBase::Ok,
KDialogBase::Ok, true ),
mSieveJob( 0 )
@@ -197,16 +197,16 @@ SieveDebugDialog::SieveDebugDialog( QWidget *parent, const char *name )
for ( KMAccount *a = am->first(); a; a = am->next() )
mAccountList.append( a );
- mEdit = new QTextEdit( this );
+ mEdit = new TQTextEdit( this );
mEdit->setReadOnly(true);
setMainWidget( mEdit );
mEdit->setText( i18n( "Collecting diagnostic information about Sieve support...\n\n" ) );
- setInitialSize( QSize( 640, 480 ) );
+ setInitialSize( TQSize( 640, 480 ) );
if ( !mAccountList.isEmpty() )
- QTimer::singleShot( 0, this, SLOT( slotDiagNextAccount() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( slotDiagNextAccount() ) );
}
SieveDebugDialog::~SieveDebugDialog()
@@ -256,8 +256,8 @@ void SieveDebugDialog::slotDiagNextAccount()
mSieveJob = SieveJob::list( mUrl );
- connect( mSieveJob, SIGNAL( gotList( KMail::SieveJob *, bool, const QStringList &, const QString & ) ),
- SLOT( slotGetScriptList( KMail::SieveJob *, bool, const QStringList &, const QString & ) ) );
+ connect( mSieveJob, TQT_SIGNAL( gotList( KMail::SieveJob *, bool, const TQStringList &, const TQString & ) ),
+ TQT_SLOT( slotGetScriptList( KMail::SieveJob *, bool, const TQStringList &, const TQString & ) ) );
// Bypass the singleShot timer -- it's fired when we get our data
return;
@@ -267,7 +267,7 @@ void SieveDebugDialog::slotDiagNextAccount()
}
// Handle next account async
- QTimer::singleShot( 0, this, SLOT( slotDiagNextAccount() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( slotDiagNextAccount() ) );
}
void SieveDebugDialog::slotDiagNextScript()
@@ -276,11 +276,11 @@ void SieveDebugDialog::slotDiagNextScript()
{
// Continue handling accounts instead
mScriptList.clear();
- QTimer::singleShot( 0, this, SLOT( slotDiagNextAccount() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( slotDiagNextAccount() ) );
return;
}
- QString scriptFile = mScriptList.first();
+ TQString scriptFile = mScriptList.first();
mScriptList.pop_front();
mEdit->append( i18n( "Contents of script '%1':\n" ).arg( scriptFile ) );
@@ -303,12 +303,12 @@ void SieveDebugDialog::slotDiagNextScript()
mSieveJob = SieveJob::get( mUrl );
- connect( mSieveJob, SIGNAL( gotScript( KMail::SieveJob *, bool, const QString &, bool ) ),
- SLOT( slotGetScript( KMail::SieveJob *, bool, const QString &, bool ) ) );
+ connect( mSieveJob, TQT_SIGNAL( gotScript( KMail::SieveJob *, bool, const TQString &, bool ) ),
+ TQT_SLOT( slotGetScript( KMail::SieveJob *, bool, const TQString &, bool ) ) );
}
void SieveDebugDialog::slotGetScript( SieveJob * /* job */, bool success,
- const QString &script, bool active )
+ const TQString &script, bool active )
{
kdDebug( 5006 ) << "SieveDebugDialog::slotGetScript( ??, " << success
<< ", ?, " << active << " )" << endl
@@ -329,25 +329,25 @@ void SieveDebugDialog::slotGetScript( SieveJob * /* job */, bool success,
}
// Fetch next script
- QTimer::singleShot( 0, this, SLOT( slotDiagNextScript() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( slotDiagNextScript() ) );
}
void SieveDebugDialog::slotGetScriptList( SieveJob *job, bool success,
- const QStringList &scriptList, const QString &activeScript )
+ const TQStringList &scriptList, const TQString &activeScript )
{
kdDebug( 5006 ) << k_funcinfo << "Success: " << success << ", List: " << scriptList.join( ", " ) <<
", active: " << activeScript << endl;
mSieveJob = 0; // job deletes itself after returning from this slot!
mEdit->append( i18n( "Sieve capabilities:\n" ) );
- QStringList caps = job->sieveCapabilities();
+ TQStringList caps = job->sieveCapabilities();
if ( caps.isEmpty() )
{
mEdit->append( i18n( "(No special capabilities available)" ) );
}
else
{
- for ( QStringList::const_iterator it = caps.begin(); it != caps.end(); ++it )
+ for ( TQStringList::const_iterator it = caps.begin(); it != caps.end(); ++it )
mEdit->append( "* " + *it + "\n" );
mEdit->append( "\n" );
}
@@ -361,14 +361,14 @@ void SieveDebugDialog::slotGetScriptList( SieveJob *job, bool success,
else
{
mScriptList = scriptList;
- for ( QStringList::const_iterator it = scriptList.begin(); it != scriptList.end(); ++it )
+ for ( TQStringList::const_iterator it = scriptList.begin(); it != scriptList.end(); ++it )
mEdit->append( "* " + *it + "\n" );
mEdit->append( "\n" );
mEdit->append( i18n( "Active script: %1\n\n" ).arg( activeScript ) );
}
// Handle next job: dump scripts for this server
- QTimer::singleShot( 0, this, SLOT( slotDiagNextScript() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( slotDiagNextScript() ) );
}
void SieveDebugDialog::slotDialogOk()