diff options
Diffstat (limited to 'kopete/protocols/gadu/gaducontactlist.cpp')
-rw-r--r-- | kopete/protocols/gadu/gaducontactlist.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/kopete/protocols/gadu/gaducontactlist.cpp b/kopete/protocols/gadu/gaducontactlist.cpp index 6601800d..314e661f 100644 --- a/kopete/protocols/gadu/gaducontactlist.cpp +++ b/kopete/protocols/gadu/gaducontactlist.cpp @@ -22,7 +22,7 @@ #include "gaducontactlist.h" -#include "qstringlist.h" +#include "tqstringlist.h" #include "kdebug.h" GaduContactsList::GaduContactsList() @@ -33,11 +33,11 @@ GaduContactsList::~GaduContactsList() { } -GaduContactsList::GaduContactsList( QString sList ) +GaduContactsList::GaduContactsList( TQString sList ) { - QStringList::iterator stringIterator; - QStringList strList; - QString empty; + TQStringList::iterator stringIterator; + TQStringList strList; + TQString empty; ContactLine cl; bool email; @@ -49,17 +49,17 @@ GaduContactsList::GaduContactsList( QString sList ) return; } - QStringList ln = QStringList::split( QChar( '\n' ), sList, true ); - QStringList::iterator lni = ln.begin( ); + TQStringList ln = TQStringList::split( TQChar( '\n' ), sList, true ); + TQStringList::iterator lni = ln.begin( ); while( lni != ln.end() ) { - QString cline = (*lni); + TQString cline = (*lni); if ( cline.isNull() ) { break; } - strList = QStringList::split( QChar( ';' ), cline, true ); + strList = TQStringList::split( TQChar( ';' ), cline, true ); stringIterator = strList.begin(); @@ -78,7 +78,7 @@ GaduContactsList::GaduContactsList( QString sList ) cl.firstname = (*stringIterator); - if ( cl.firstname == QString( "i" ) ) { + if ( cl.firstname == TQString( "i" ) ) { kdDebug(14100) << cline << " ignored" << endl; cl.ignored = true; cl.uin = strList[6]; @@ -105,7 +105,7 @@ GaduContactsList::GaduContactsList( QString sList ) ++stringIterator; if ( stringIterator != strList.end() ) { - cl.offlineTo = (*++stringIterator) == QString("0") ? false : true; + cl.offlineTo = (*++stringIterator) == TQString("0") ? false : true; cl.landline = (*++stringIterator); } } @@ -133,17 +133,17 @@ GaduContactsList::addContact( ContactLine& cl ) void GaduContactsList::addContact( - QString& displayname, - QString& group, - QString& uin, - QString& firstname, - QString& surname, - QString& nickname, - QString& phonenr, - QString& email, + TQString& displayname, + TQString& group, + TQString& uin, + TQString& firstname, + TQString& surname, + TQString& nickname, + TQString& phonenr, + TQString& email, bool ignored, bool offlineTo, - QString& landline + TQString& landline ) { ContactLine cl; @@ -167,7 +167,7 @@ GaduContactsList::addContact( QString GaduContactsList::asString() { - QString contacts; + TQString contacts; for ( it = cList.begin(); it != cList.end(); ++it ) { if ( (*it).ignored ) { @@ -185,7 +185,7 @@ GaduContactsList::asString() (*it).uin + ";"+ (*it).email + ";;0;0;;" + - ((*it).offlineTo == true ? QString("1") : QString("0")) + ((*it).offlineTo == true ? TQString("1") : TQString("0")) + ";" + (*it).landline + ";\r\n"; |