summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/kopetechatsessionmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/libkopete/kopetechatsessionmanager.cpp')
-rw-r--r--kopete/libkopete/kopetechatsessionmanager.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kopete/libkopete/kopetechatsessionmanager.cpp b/kopete/libkopete/kopetechatsessionmanager.cpp
index 9b7dd489..4805927b 100644
--- a/kopete/libkopete/kopetechatsessionmanager.cpp
+++ b/kopete/libkopete/kopetechatsessionmanager.cpp
@@ -29,7 +29,7 @@ namespace Kopete {
class ChatSessionManager::Private
{
public:
- QValueList <ChatSession*> sessions;
+ TQValueList <ChatSession*> sessions;
// UI::ChatView *activeView;
};
@@ -43,9 +43,9 @@ ChatSessionManager* ChatSessionManager::self()
return s_self;
}
-ChatSessionManager::ChatSessionManager( QObject* parent,
+ChatSessionManager::ChatSessionManager( TQObject* parent,
const char* name )
- : QObject( parent, name )
+ : TQObject( parent, name )
{
d=new Private;
s_self = this;
@@ -54,7 +54,7 @@ ChatSessionManager::ChatSessionManager( QObject* parent,
ChatSessionManager::~ChatSessionManager()
{
s_self = 0L;
- QValueListIterator<ChatSession*> it;
+ TQValueListIterator<ChatSession*> it;
for ( it=d->sessions.begin() ; it!=d->sessions.end() ; ++it )
{
kdDebug( 14010 ) << k_funcinfo << "Unloading KMM: Why this KMM isn't yet unloaded?" << endl;
@@ -67,13 +67,13 @@ ChatSession* ChatSessionManager::findChatSession(const Contact *user,
ContactPtrList chatContacts, Protocol *protocol)
{
ChatSession *result = 0L;
- QValueList<ChatSession*>::Iterator it;
+ TQValueList<ChatSession*>::Iterator it;
for ( it= d->sessions.begin(); it!=d->sessions.end() && !result ; ++it )
{
ChatSession* cs=(*it);
if ( cs->protocol() == protocol && user == cs->myself() )
{
- QPtrList<Contact> contactlist = cs->members();
+ TQPtrList<Contact> contactlist = cs->members();
// set this to false if chatContacts doesn't contain current cs's contactlist
bool halfMatch = true;
@@ -128,15 +128,15 @@ void ChatSessionManager::registerChatSession(ChatSession * result)
* There's no need for a slot here... just add a public remove()
* method and call from KMM's destructor
*/
- connect( result, SIGNAL( messageAppended( Kopete::Message &, Kopete::ChatSession * ) ),
- SIGNAL( aboutToDisplay( Kopete::Message & ) ) );
- connect( result, SIGNAL( messageSent( Kopete::Message &, Kopete::ChatSession * ) ),
- SIGNAL( aboutToSend(Kopete::Message & ) ) );
- connect( result, SIGNAL( messageReceived( Kopete::Message &, Kopete::ChatSession * ) ),
- SIGNAL( aboutToReceive(Kopete::Message & ) ) );
+ connect( result, TQT_SIGNAL( messageAppended( Kopete::Message &, Kopete::ChatSession * ) ),
+ TQT_SIGNAL( aboutToDisplay( Kopete::Message & ) ) );
+ connect( result, TQT_SIGNAL( messageSent( Kopete::Message &, Kopete::ChatSession * ) ),
+ TQT_SIGNAL( aboutToSend(Kopete::Message & ) ) );
+ connect( result, TQT_SIGNAL( messageReceived( Kopete::Message &, Kopete::ChatSession * ) ),
+ TQT_SIGNAL( aboutToReceive(Kopete::Message & ) ) );
- connect( result, SIGNAL(messageAppended( Kopete::Message &, Kopete::ChatSession *) ),
- SIGNAL( display( Kopete::Message &, Kopete::ChatSession *) ) );
+ connect( result, TQT_SIGNAL(messageAppended( Kopete::Message &, Kopete::ChatSession *) ),
+ TQT_SIGNAL( display( Kopete::Message &, Kopete::ChatSession *) ) );
emit chatSessionCreated(result);
}
@@ -148,12 +148,12 @@ void ChatSessionManager::removeSession( ChatSession *session)
d->sessions.remove( session );
}
-QValueList<ChatSession*> ChatSessionManager::sessions( )
+TQValueList<ChatSession*> ChatSessionManager::sessions( )
{
return d->sessions;
}
-KopeteView * ChatSessionManager::createView( ChatSession *kmm , const QString &requestedPlugin )
+KopeteView * ChatSessionManager::createView( ChatSession *kmm , const TQString &requestedPlugin )
{
KopeteView *newView = KopeteViewManager::viewManager()->view(kmm,requestedPlugin);
if(!newView)
@@ -162,17 +162,17 @@ KopeteView * ChatSessionManager::createView( ChatSession *kmm , const QString &r
return 0L;
}
- QObject *viewObject = dynamic_cast<QObject *>(newView);
+ TQObject *viewObject = dynamic_cast<TQObject *>(newView);
if(viewObject)
{
- connect(viewObject, SIGNAL(activated(KopeteView *)),
- this, SIGNAL(viewActivated(KopeteView *)));
- connect(viewObject, SIGNAL(closing(KopeteView *)),
- this, SIGNAL(viewClosing(KopeteView *)));
+ connect(viewObject, TQT_SIGNAL(activated(KopeteView *)),
+ this, TQT_SIGNAL(viewActivated(KopeteView *)));
+ connect(viewObject, TQT_SIGNAL(closing(KopeteView *)),
+ this, TQT_SIGNAL(viewClosing(KopeteView *)));
}
else
{
- kdWarning(14010) << "Failed to cast view to QObject *" << endl;
+ kdWarning(14010) << "Failed to cast view to TQObject *" << endl;
}
emit viewCreated( newView ) ;