diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/protocols/groupwise/gwcontactlist.cpp | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/groupwise/gwcontactlist.cpp')
-rw-r--r-- | kopete/protocols/groupwise/gwcontactlist.cpp | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/kopete/protocols/groupwise/gwcontactlist.cpp b/kopete/protocols/groupwise/gwcontactlist.cpp index 2af6d42a..3f8b5c4d 100644 --- a/kopete/protocols/groupwise/gwcontactlist.cpp +++ b/kopete/protocols/groupwise/gwcontactlist.cpp @@ -15,18 +15,18 @@ ************************************************************************* */ -#include <qobjectlist.h> +#include <tqobjectlist.h> #include <kdebug.h> #include "gwcontactlist.h" #include "gwerror.h" //debug area -GWContactList::GWContactList( QObject * parent ) - : QObject( parent ), rootFolder( new GWFolder( this, 0, 0, QString::null ) ) +GWContactList::GWContactList( TQObject * parent ) + : TQObject( parent ), rootFolder( new GWFolder( this, 0, 0, TQString::null ) ) { } -GWFolder * GWContactList::addFolder( unsigned int id, unsigned int sequence, const QString & displayName ) +GWFolder * GWContactList::addFolder( unsigned int id, unsigned int sequence, const TQString & displayName ) { if ( rootFolder ) return new GWFolder( rootFolder, id, sequence, displayName ); @@ -34,11 +34,11 @@ GWFolder * GWContactList::addFolder( unsigned int id, unsigned int sequence, con return 0; } -GWContactInstance * GWContactList::addContactInstance( unsigned int id, unsigned int parent, unsigned int sequence, const QString & displayName, const QString & dn ) +GWContactInstance * GWContactList::addContactInstance( unsigned int id, unsigned int parent, unsigned int sequence, const TQString & displayName, const TQString & dn ) { - QObjectList * l = queryList( "GWFolder", 0, false, true ); - QObjectListIt it( *l ); // iterate over the buttons - QObject *obj; + TQObjectList * l = queryList( "GWFolder", 0, false, true ); + TQObjectListIt it( *l ); // iterate over the buttons + TQObject *obj; GWContactInstance * contact = 0; while ( (obj = it.current()) != 0 ) { @@ -56,9 +56,9 @@ GWContactInstance * GWContactList::addContactInstance( unsigned int id, unsigned GWFolder * GWContactList::findFolderById( unsigned int id ) { - QObjectList * l = queryList( "GWFolder", 0, false, true ); - QObjectListIt it( *l ); // iterate over the buttons - QObject *obj; + TQObjectList * l = queryList( "GWFolder", 0, false, true ); + TQObjectListIt it( *l ); // iterate over the buttons + TQObject *obj; GWFolder * candidate, * folder = 0; while ( (obj = it.current()) != 0 ) { @@ -74,11 +74,11 @@ GWFolder * GWContactList::findFolderById( unsigned int id ) return folder; } -GWFolder * GWContactList::findFolderByName( const QString & displayName ) +GWFolder * GWContactList::findFolderByName( const TQString & displayName ) { - QObjectList * l = queryList( "GWFolder", 0, false, true ); - QObjectListIt it( *l ); // iterate over the buttons - QObject *obj; + TQObjectList * l = queryList( "GWFolder", 0, false, true ); + TQObjectListIt it( *l ); // iterate over the buttons + TQObject *obj; GWFolder * folder = 0; while ( (obj = it.current()) != 0 ) { @@ -96,9 +96,9 @@ GWFolder * GWContactList::findFolderByName( const QString & displayName ) int GWContactList::maxSequenceNumber() { - QObjectList * l = queryList( "GWFolder", 0, false, true ); - QObjectListIt it( *l ); // iterate over the buttons - QObject *obj; + TQObjectList * l = queryList( "GWFolder", 0, false, true ); + TQObjectListIt it( *l ); // iterate over the buttons + TQObject *obj; unsigned int sequence = 0; while ( (obj = it.current()) != 0 ) { @@ -110,11 +110,11 @@ int GWContactList::maxSequenceNumber() return sequence; } -GWContactInstanceList GWContactList::instancesWithDn( const QString & dn ) +GWContactInstanceList GWContactList::instancesWithDn( const TQString & dn ) { - QObjectList * l = queryList( "GWContactInstance", 0, false, true ); - QObjectListIt it( *l ); // iterate over the buttons - QObject *obj; + TQObjectList * l = queryList( "GWContactInstance", 0, false, true ); + TQObjectListIt it( *l ); // iterate over the buttons + TQObject *obj; GWContactInstanceList matches; while ( (obj = it.current()) != 0 ) { @@ -134,9 +134,9 @@ void GWContactList::removeInstance( GWContactListItem * instance ) void GWContactList::removeInstanceById( unsigned int id ) { - QObjectList * l = queryList( "GWContactInstance", 0, false, true ); - QObjectListIt it( *l ); // iterate over the buttons - QObject *obj; + TQObjectList * l = queryList( "GWContactInstance", 0, false, true ); + TQObjectListIt it( *l ); // iterate over the buttons + TQObject *obj; GWContactInstanceList matches; while ( (obj = it.current()) != 0 ) { @@ -154,11 +154,11 @@ void GWContactList::removeInstanceById( unsigned int id ) void GWContactList::dump() { kdDebug(GROUPWISE_DEBUG_GLOBAL) << k_funcinfo << endl; - const QObjectList * l = children(); + const TQObjectList * l = children(); if ( l && !l->isEmpty() ) { - QObjectListIt it( *l ); // iterate over the buttons - QObject *obj; + TQObjectListIt it( *l ); // iterate over the buttons + TQObject *obj; while ( (obj = it.current()) != 0 ) { GWFolder * folder = ::qt_cast< GWFolder * >( obj ); @@ -174,11 +174,11 @@ void GWContactList::dump() void GWContactList::clear() { kdDebug(GROUPWISE_DEBUG_GLOBAL) << k_funcinfo << endl; - const QObjectList * l = children(); + const TQObjectList * l = children(); if ( l && !l->isEmpty() ) { - QObjectListIt it( *l ); - QObject *obj; + TQObjectListIt it( *l ); + TQObject *obj; while ( (obj = it.current()) != 0 ) { delete obj; @@ -187,24 +187,24 @@ void GWContactList::clear() } } -GWContactListItem::GWContactListItem( QObject * parent, unsigned int theId, unsigned int theSequence, const QString & theDisplayName ) : - QObject( parent), id( theId ), sequence( theSequence ), displayName( theDisplayName ) +GWContactListItem::GWContactListItem( TQObject * parent, unsigned int theId, unsigned int theSequence, const TQString & theDisplayName ) : + TQObject( parent), id( theId ), sequence( theSequence ), displayName( theDisplayName ) { } -GWFolder::GWFolder( QObject * parent, unsigned int theId, unsigned int theSequence, const QString & theDisplayName ) : +GWFolder::GWFolder( TQObject * parent, unsigned int theId, unsigned int theSequence, const TQString & theDisplayName ) : GWContactListItem( parent, theId, theSequence, theDisplayName ) { } void GWFolder::dump( unsigned int depth ) { - QString s; + TQString s; s.fill( ' ', ++depth * 2 ); kdDebug( GROUPWISE_DEBUG_GLOBAL ) << s <<"Folder " << displayName << " id: " << id << " contains: " << endl; - const QObjectList * l = children(); + const TQObjectList * l = children(); if ( l ) { - QObjectListIt it( *l ); // iterate over the buttons - QObject *obj; + TQObjectListIt it( *l ); // iterate over the buttons + TQObject *obj; while ( (obj = it.current()) != 0 ) { ++it; @@ -223,13 +223,13 @@ void GWFolder::dump( unsigned int depth ) kdDebug( GROUPWISE_DEBUG_GLOBAL ) << s << " no contacts." << endl; } -GWContactInstance::GWContactInstance( QObject * parent, unsigned int theId, unsigned int theSequence, const QString & theDisplayName, const QString & theDn ) : +GWContactInstance::GWContactInstance( TQObject * parent, unsigned int theId, unsigned int theSequence, const TQString & theDisplayName, const TQString & theDn ) : GWContactListItem( parent, theId, theSequence, theDisplayName ), dn( theDn ) { } void GWContactInstance::dump( unsigned int depth ) { - QString s; + TQString s; s.fill( ' ', ++depth * 2 ); kdDebug( GROUPWISE_DEBUG_GLOBAL ) << s << "Contact " << displayName << " id: " << id << " dn: " << dn << endl; } |