summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/history/historyplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/plugins/history/historyplugin.cpp')
-rw-r--r--kopete/plugins/history/historyplugin.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kopete/plugins/history/historyplugin.cpp b/kopete/plugins/history/historyplugin.cpp
index bf8d70b4..af92fc09 100644
--- a/kopete/plugins/history/historyplugin.cpp
+++ b/kopete/plugins/history/historyplugin.cpp
@@ -41,22 +41,22 @@ typedef KGenericFactory<HistoryPlugin> HistoryPluginFactory;
static const KAboutData aboutdata("kopete_history", I18N_NOOP("History") , "1.0" );
K_EXPORT_COMPONENT_FACTORY( kopete_history, HistoryPluginFactory( &aboutdata ) )
-HistoryPlugin::HistoryPlugin( QObject *parent, const char *name, const QStringList & /* args */ )
+HistoryPlugin::HistoryPlugin( TQObject *parent, const char *name, const TQStringList & /* args */ )
: Kopete::Plugin( HistoryPluginFactory::instance(), parent, name ), m_loggerFactory( this )
{
KAction *viewMetaContactHistory = new KAction( i18n("View &History" ),
- QString::fromLatin1( "history" ), 0, this, SLOT(slotViewHistory()),
+ TQString::fromLatin1( "history" ), 0, this, TQT_SLOT(slotViewHistory()),
actionCollection(), "viewMetaContactHistory" );
viewMetaContactHistory->setEnabled(
Kopete::ContactList::self()->selectedMetaContacts().count() == 1 );
- connect(Kopete::ContactList::self(), SIGNAL(metaContactSelected(bool)),
- viewMetaContactHistory, SLOT(setEnabled(bool)));
+ connect(Kopete::ContactList::self(), TQT_SIGNAL(metaContactSelected(bool)),
+ viewMetaContactHistory, TQT_SLOT(setEnabled(bool)));
- connect(Kopete::ChatSessionManager::self(), SIGNAL(viewCreated(KopeteView*)),
- this, SLOT(slotViewCreated(KopeteView*)));
+ connect(Kopete::ChatSessionManager::self(), TQT_SIGNAL(viewCreated(KopeteView*)),
+ this, TQT_SLOT(slotViewCreated(KopeteView*)));
- connect(this, SIGNAL(settingsChanged()), this, SLOT(slotSettingsChanged()));
+ connect(this, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(slotSettingsChanged()));
setXMLFile("historyui.rc");
if(detectOldHistory())
@@ -73,14 +73,14 @@ HistoryPlugin::HistoryPlugin( QObject *parent, const char *name, const QStringLi
// Add GUI action to all existing kmm objects
// (Needed if the plugin is enabled while kopete is already running)
- QValueList<Kopete::ChatSession*> sessions = Kopete::ChatSessionManager::self()->sessions();
- for (QValueListIterator<Kopete::ChatSession*> it= sessions.begin(); it!=sessions.end() ; ++it)
+ TQValueList<Kopete::ChatSession*> sessions = Kopete::ChatSessionManager::self()->sessions();
+ for (TQValueListIterator<Kopete::ChatSession*> it= sessions.begin(); it!=sessions.end() ; ++it)
{
if(!m_loggers.contains(*it))
{
m_loggers.insert(*it, new HistoryGUIClient( *it ) );
- connect( *it, SIGNAL(closing(Kopete::ChatSession*)),
- this, SLOT(slotKMMClosed(Kopete::ChatSession*)));
+ connect( *it, TQT_SIGNAL(closing(Kopete::ChatSession*)),
+ this, TQT_SLOT(slotKMMClosed(Kopete::ChatSession*)));
}
}
}
@@ -105,14 +105,14 @@ void HistoryPlugin::messageDisplayed(const Kopete::Message &m)
if(!m_loggers.contains(m.manager()))
{
m_loggers.insert(m.manager() , new HistoryGUIClient( m.manager() ) );
- connect(m.manager(), SIGNAL(closing(Kopete::ChatSession*)),
- this, SLOT(slotKMMClosed(Kopete::ChatSession*)));
+ connect(m.manager(), TQT_SIGNAL(closing(Kopete::ChatSession*)),
+ this, TQT_SLOT(slotKMMClosed(Kopete::ChatSession*)));
}
HistoryLogger *l=m_loggers[m.manager()]->logger();
if(l)
{
- QPtrList<Kopete::Contact> mb=m.manager()->members();
+ TQPtrList<Kopete::Contact> mb=m.manager()->members();
l->appendMessage(m,mb.first());
}
@@ -136,7 +136,7 @@ void HistoryPlugin::slotViewHistory()
void HistoryPlugin::slotViewCreated( KopeteView* v )
{
- if(v->plugin()->pluginInfo()->pluginName() != QString::fromLatin1("kopete_chatwindow") )
+ if(v->plugin()->pluginInfo()->pluginName() != TQString::fromLatin1("kopete_chatwindow") )
return; //Email chat windows are not supported.
bool autoChatWindow = HistoryConfig::auto_chatwindow();
@@ -144,7 +144,7 @@ void HistoryPlugin::slotViewCreated( KopeteView* v )
KopeteView *m_currentView = v;
Kopete::ChatSession *m_currentChatSession = v->msgManager();
- QPtrList<Kopete::Contact> mb = m_currentChatSession->members();
+ TQPtrList<Kopete::Contact> mb = m_currentChatSession->members();
if(!m_currentChatSession)
return; //i am sorry
@@ -152,8 +152,8 @@ void HistoryPlugin::slotViewCreated( KopeteView* v )
if(!m_loggers.contains(m_currentChatSession))
{
m_loggers.insert(m_currentChatSession , new HistoryGUIClient( m_currentChatSession ) );
- connect( m_currentChatSession, SIGNAL(closing(Kopete::ChatSession*)),
- this , SLOT(slotKMMClosed(Kopete::ChatSession*)));
+ connect( m_currentChatSession, TQT_SIGNAL(closing(Kopete::ChatSession*)),
+ this , TQT_SLOT(slotKMMClosed(Kopete::ChatSession*)));
}
if(!autoChatWindow || nbAutoChatWindow == 0)
@@ -163,7 +163,7 @@ void HistoryPlugin::slotViewCreated( KopeteView* v )
logger->setPositionToLast();
- QValueList<Kopete::Message> msgs = logger->readMessages(nbAutoChatWindow,
+ TQValueList<Kopete::Message> msgs = logger->readMessages(nbAutoChatWindow,
/*mb.first()*/ 0L, HistoryLogger::AntiChronological, true, true);
// make sure the last message is not the one which will be appened right