summaryrefslogtreecommitdiffstats
path: root/korn/accountmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korn/accountmanager.cpp')
-rw-r--r--korn/accountmanager.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/korn/accountmanager.cpp b/korn/accountmanager.cpp
index d8c482e42..a791c53d4 100644
--- a/korn/accountmanager.cpp
+++ b/korn/accountmanager.cpp
@@ -30,15 +30,15 @@
#include <kconfig.h>
#include <kdebug.h>
-#include <qptrlist.h>
+#include <tqptrlist.h>
KornSubjectsDlg* AccountManager::_subjectsDlg = 0;
-AccountManager::AccountManager( QObject * parent, const char * name )
- : QObject( parent, name ),
- _kioList( new QPtrList< KMailDrop > ),
- _dcopList( new QPtrList< DCOPDrop > ),
- _dropInfo( new QMap< KMailDrop*, Dropinfo* > )
+AccountManager::AccountManager( TQObject * parent, const char * name )
+ : TQObject( parent, name ),
+ _kioList( new TQPtrList< KMailDrop > ),
+ _dcopList( new TQPtrList< DCOPDrop > ),
+ _dropInfo( new TQMap< KMailDrop*, Dropinfo* > )
{
_kioList->setAutoDelete( true );
_dcopList->setAutoDelete( true );
@@ -53,14 +53,14 @@ AccountManager::~AccountManager()
void AccountManager::readConfig( KConfig* config, const int index )
{
- KConfigGroup *masterGroup = new KConfigGroup( config, QString( "korn-%1" ).arg( index ) );
- QStringList dcop = masterGroup->readListEntry( "dcop", ',' );
+ KConfigGroup *masterGroup = new KConfigGroup( config, TQString( "korn-%1" ).arg( index ) );
+ TQStringList dcop = masterGroup->readListEntry( "dcop", ',' );
KConfigGroup *accountGroup;
int counter = 0;
- while( config->hasGroup( QString( "korn-%1-%2" ).arg( index ).arg( counter ) ) )
+ while( config->hasGroup( TQString( "korn-%1-%2" ).arg( index ).arg( counter ) ) )
{
- accountGroup = new KConfigGroup( config, QString( "korn-%1-%2" ).arg( index ).arg( counter ) );
+ accountGroup = new KConfigGroup( config, TQString( "korn-%1-%2" ).arg( index ).arg( counter ) );
const Protocol *proto = Protocols::getProto( accountGroup->readEntry( "protocol" ) );
if( !proto )
@@ -69,7 +69,7 @@ void AccountManager::readConfig( KConfig* config, const int index )
++counter;
continue;
}
- QMap< QString, QString > *configmap = proto->createConfig( accountGroup,
+ TQMap< TQString, TQString > *configmap = proto->createConfig( accountGroup,
KOrnPassword::readKOrnPassword( index, counter, *accountGroup ) );
KMailDrop *kiodrop = proto->createMaildrop( accountGroup );
const Protocol *nproto = proto->getProtocol( accountGroup );
@@ -84,12 +84,12 @@ void AccountManager::readConfig( KConfig* config, const int index )
}
//TODO: connect some stuff
- connect( kiodrop, SIGNAL( changed( int, KMailDrop* ) ), this, SLOT( slotChanged( int, KMailDrop* ) ) );
- connect( kiodrop, SIGNAL( showPassivePopup( QPtrList< KornMailSubject >*, int, bool, const QString& ) ),
- this, SLOT( slotShowPassivePopup( QPtrList< KornMailSubject >*, int, bool, const QString& ) ) );
- connect( kiodrop, SIGNAL( showPassivePopup( const QString&, const QString& ) ),
- this, SLOT( slotShowPassivePopup( const QString&, const QString& ) ) );
- connect( kiodrop, SIGNAL( validChanged( bool ) ), this, SLOT( slotValidChanged( bool ) ) );
+ connect( kiodrop, TQT_SIGNAL( changed( int, KMailDrop* ) ), this, TQT_SLOT( slotChanged( int, KMailDrop* ) ) );
+ connect( kiodrop, TQT_SIGNAL( showPassivePopup( TQPtrList< KornMailSubject >*, int, bool, const TQString& ) ),
+ this, TQT_SLOT( slotShowPassivePopup( TQPtrList< KornMailSubject >*, int, bool, const TQString& ) ) );
+ connect( kiodrop, TQT_SIGNAL( showPassivePopup( const TQString&, const TQString& ) ),
+ this, TQT_SLOT( slotShowPassivePopup( const TQString&, const TQString& ) ) );
+ connect( kiodrop, TQT_SIGNAL( validChanged( bool ) ), this, TQT_SLOT( slotValidChanged( bool ) ) );
kiodrop->readGeneralConfigGroup( *masterGroup );
if( !kiodrop->readConfigGroup( *accountGroup ) || !kiodrop->readConfigGroup( *configmap, nproto ) )
@@ -113,15 +113,15 @@ void AccountManager::readConfig( KConfig* config, const int index )
++counter;
}
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for( it = dcop.begin(); it != dcop.end(); ++it )
{
DCOPDrop *dcopdrop = new DCOPDrop;
Dropinfo *info = new Dropinfo;
- connect( dcopdrop, SIGNAL( changed( int, KMailDrop* ) ), this, SLOT( slotChanged( int, KMailDrop* ) ) );
- connect( dcopdrop, SIGNAL( showPassivePopup( QPtrList< KornMailSubject >*, int, bool, const QString& ) ),
- this, SLOT( slotShowPassivePopup( QPtrList< KornMailSubject >*, int, bool, const QString& ) ) );
+ connect( dcopdrop, TQT_SIGNAL( changed( int, KMailDrop* ) ), this, TQT_SLOT( slotChanged( int, KMailDrop* ) ) );
+ connect( dcopdrop, TQT_SIGNAL( showPassivePopup( TQPtrList< KornMailSubject >*, int, bool, const TQString& ) ),
+ this, TQT_SLOT( slotShowPassivePopup( TQPtrList< KornMailSubject >*, int, bool, const TQString& ) ) );
dcopdrop->readConfigGroup( *masterGroup );
dcopdrop->setDCOPName( *it );
@@ -141,25 +141,25 @@ void AccountManager::readConfig( KConfig* config, const int index )
void AccountManager::writeConfig( KConfig* config, const int index )
{
- QMap< KMailDrop*, Dropinfo* >::Iterator it;
+ TQMap< KMailDrop*, Dropinfo* >::Iterator it;
for( it = _dropInfo->begin(); it != _dropInfo->end(); ++it )
{
- config->setGroup( QString( "korn-%1-%2" ).arg( index ).arg( it.data()->index ) );
+ config->setGroup( TQString( "korn-%1-%2" ).arg( index ).arg( it.data()->index ) );
config->writeEntry( "reset", it.data()->reset );
}
}
-QString AccountManager::getTooltip() const
+TQString AccountManager::getTooltip() const
{
- QStringList result;
- QMap< KMailDrop*, Dropinfo* >::Iterator it;
+ TQStringList result;
+ TQMap< KMailDrop*, Dropinfo* >::Iterator it;
for( it = _dropInfo->begin(); it != _dropInfo->end(); ++it )
if( it.key()->valid() )
- result.append( QString( "%1: %2" ).arg( it.key()->realName() ).arg( it.data()->msgnr - it.data()->reset ));
+ result.append( TQString( "%1: %2" ).arg( it.key()->realName() ).arg( it.data()->msgnr - it.data()->reset ));
else
- result.append( QString( "%1: invalid" ).arg( it.key()->realName() ) );
+ result.append( TQString( "%1: invalid" ).arg( it.key()->realName() ) );
result.sort();
- return result.join( QChar( '\n' ) );
+ return result.join( TQChar( '\n' ) );
}
void AccountManager::doRecheck()
@@ -171,7 +171,7 @@ void AccountManager::doRecheck()
void AccountManager::doReset()
{
- QMap< KMailDrop*, Dropinfo* >::Iterator it;
+ TQMap< KMailDrop*, Dropinfo* >::Iterator it;
for( it = _dropInfo->begin(); it != _dropInfo->end(); ++it )
{
it.data()->reset = it.data()->msgnr;
@@ -183,7 +183,7 @@ void AccountManager::doReset()
void AccountManager::doView()
{
- QMap< KMailDrop*, Dropinfo* >::Iterator it;
+ TQMap< KMailDrop*, Dropinfo* >::Iterator it;
if( !_subjectsDlg )
_subjectsDlg = new KornSubjectsDlg();
@@ -216,7 +216,7 @@ int AccountManager::totalMessages()
{
int result = 0;
- QMap< KMailDrop*, Dropinfo* >::Iterator it;
+ TQMap< KMailDrop*, Dropinfo* >::Iterator it;
for( it = _dropInfo->begin(); it != _dropInfo->end(); ++it )
//if( it.date()->msgnr - it.date()->reset > 0 )
result += it.data()->msgnr - it.data()->reset;
@@ -226,7 +226,7 @@ int AccountManager::totalMessages()
bool AccountManager::hasNewMessages()
{
- QMap< KMailDrop*, Dropinfo* >::Iterator it;
+ TQMap< KMailDrop*, Dropinfo* >::Iterator it;
for( it = _dropInfo->begin(); it != _dropInfo->end(); ++it )
if( it.data()->newMessages )
return true;
@@ -234,7 +234,7 @@ bool AccountManager::hasNewMessages()
return false;
}
-void AccountManager::playSound( const QString& file )
+void AccountManager::playSound( const TQString& file )
{
KAudioPlayer::play( file );
}