SieveDebugDialog::SieveDebugDialog( QWidget *parent, const char *name ) : KDialogBase( parent, name, true, i18n( "Sieve Diagnostics" ), KDialogBase::Ok, KDialogBase::Ok, true ), mSieveJob( 0 ) { // Collect all accounts AccountManager *am = kmkernel->acctMgr(); assert( am ); for ( KMAccount *a = am->first(); a; a = am->next() ) mAccountList.append( a ); mEdit = new QTextEdit( this ); mEdit->setReadOnly(true); setMainWidget( mEdit ); mEdit->setText( i18n( "Collecting diagnostic information about Sieve support...\n\n" ) ); setInitialSize( QSize( 640, 480 ) ); if ( !mAccountList.isEmpty() ) QTimer::singleShot( 0, this, SLOT( slotDiagNextAccount() ) ); }