summaryrefslogtreecommitdiffstats
path: root/kopete/kopete/kopeteiface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/kopete/kopeteiface.cpp')
-rw-r--r--kopete/kopete/kopeteiface.cpp78
1 files changed, 39 insertions, 39 deletions
diff --git a/kopete/kopete/kopeteiface.cpp b/kopete/kopete/kopeteiface.cpp
index 3895e271..426424ff 100644
--- a/kopete/kopete/kopeteiface.cpp
+++ b/kopete/kopete/kopeteiface.cpp
@@ -53,43 +53,43 @@ KopeteIface::KopeteIface() : DCOPObject( "KopeteIface" )
"KDE_stop_screensaver()", "setActive()", false);
}
-QStringList KopeteIface::contacts()
+TQStringList KopeteIface::contacts()
{
return Kopete::ContactList::self()->contacts();
}
-QStringList KopeteIface::reachableContacts()
+TQStringList KopeteIface::reachableContacts()
{
return Kopete::ContactList::self()->reachableContacts();
}
-QStringList KopeteIface::onlineContacts()
+TQStringList KopeteIface::onlineContacts()
{
- QStringList result;
- QPtrList<Kopete::Contact> list = Kopete::ContactList::self()->onlineContacts();
- QPtrListIterator<Kopete::Contact> it( list );
+ TQStringList result;
+ TQPtrList<Kopete::Contact> list = Kopete::ContactList::self()->onlineContacts();
+ TQPtrListIterator<Kopete::Contact> it( list );
for( ; it.current(); ++it )
result.append( it.current()->contactId() );
return result;
}
-QStringList KopeteIface::contactsStatus()
+TQStringList KopeteIface::contactsStatus()
{
return Kopete::ContactList::self()->contactStatuses();
}
-QStringList KopeteIface::fileTransferContacts()
+TQStringList KopeteIface::fileTransferContacts()
{
return Kopete::ContactList::self()->fileTransferContacts();
}
-QStringList KopeteIface::contactFileProtocols(const QString &displayName)
+TQStringList KopeteIface::contactFileProtocols(const TQString &displayName)
{
return Kopete::ContactList::self()->contactFileProtocols(displayName);
}
-QString KopeteIface::messageContact( const QString &contactId, const QString &messageText )
+TQString KopeteIface::messageContact( const TQString &contactId, const TQString &messageText )
{
Kopete::MetaContact *mc = Kopete::ContactList::self()->findMetaContactByContactId( contactId );
if ( !mc )
@@ -103,18 +103,18 @@ QString KopeteIface::messageContact( const QString &contactId, const QString &me
return "The contact is not reachable";
//Default return value
- return QString::null;
+ return TQString::null;
}
/*
-void KopeteIface::sendFile(const QString &displayName, const KURL &sourceURL,
- const QString &altFileName, uint fileSize)
+void KopeteIface::sendFile(const TQString &displayName, const KURL &sourceURL,
+ const TQString &altFileName, uint fileSize)
{
return Kopete::ContactList::self()->sendFile(displayName, sourceURL, altFileName, fileSize);
}
*/
-QString KopeteIface::onlineStatus( const QString &metaContactId )
+TQString KopeteIface::onlineStatus( const TQString &metaContactId )
{
Kopete::MetaContact *m = Kopete::ContactList::self()->metaContact( metaContactId );
if( m )
@@ -126,7 +126,7 @@ QString KopeteIface::onlineStatus( const QString &metaContactId )
return "Unknown Contact";
}
-void KopeteIface::messageContactById( const QString &metaContactId )
+void KopeteIface::messageContactById( const TQString &metaContactId )
{
Kopete::MetaContact *m = Kopete::ContactList::self()->metaContact( metaContactId );
if( m )
@@ -135,15 +135,15 @@ void KopeteIface::messageContactById( const QString &metaContactId )
}
}
-bool KopeteIface::addContact( const QString &protocolName, const QString &accountId, const QString &contactId,
- const QString &displayName, const QString &groupName )
+bool KopeteIface::addContact( const TQString &protocolName, const TQString &accountId, const TQString &contactId,
+ const TQString &displayName, const TQString &groupName )
{
//Get the protocol instance
Kopete::Account *myAccount = Kopete::AccountManager::self()->findAccount( protocolName, accountId );
if( myAccount )
{
- QString contactName;
+ TQString contactName;
Kopete::Group *realGroup=0L;
//If the nickName isn't specified we need to display the userId in the prompt
if( displayName.isEmpty() || displayName.isNull() )
@@ -180,11 +180,11 @@ bool KopeteIface::addContact( const QString &protocolName, const QString &accoun
}
}
-QStringList KopeteIface::accounts()
+TQStringList KopeteIface::accounts()
{
- QStringList list;
- QPtrList<Kopete::Account> m_accounts=Kopete::AccountManager::self()->accounts();
- QPtrListIterator<Kopete::Account> it( m_accounts );
+ TQStringList list;
+ TQPtrList<Kopete::Account> m_accounts=Kopete::AccountManager::self()->accounts();
+ TQPtrListIterator<Kopete::Account> it( m_accounts );
Kopete::Account *account;
while ( ( account = it.current() ) != 0 )
{
@@ -197,9 +197,9 @@ QStringList KopeteIface::accounts()
}
-void KopeteIface::connect(const QString &protocolId, const QString &accountId )
+void KopeteIface::connect(const TQString &protocolId, const TQString &accountId )
{
- QPtrListIterator<Kopete::Account> it( Kopete::AccountManager::self()->accounts() );
+ TQPtrListIterator<Kopete::Account> it( Kopete::AccountManager::self()->accounts() );
Kopete::Account *account;
while ( ( account = it.current() ) != 0 )
{
@@ -216,9 +216,9 @@ void KopeteIface::connect(const QString &protocolId, const QString &accountId )
}
}
-void KopeteIface::disconnect(const QString &protocolId, const QString &accountId )
+void KopeteIface::disconnect(const TQString &protocolId, const TQString &accountId )
{
- QPtrListIterator<Kopete::Account> it( Kopete::AccountManager::self()->accounts() );
+ TQPtrListIterator<Kopete::Account> it( Kopete::AccountManager::self()->accounts() );
Kopete::Account *account;
while ( ( account = it.current() ) != 0 )
{
@@ -245,11 +245,11 @@ void KopeteIface::disconnectAll()
Kopete::AccountManager::self()->disconnectAll();
}
-bool KopeteIface::loadPlugin( const QString &name )
+bool KopeteIface::loadPlugin( const TQString &name )
{
if ( Kopete::PluginManager::self()->setPluginEnabled( name ) )
{
- QString argument = name;
+ TQString argument = name;
if ( !argument.startsWith( "kopete_" ) )
argument.prepend( "kopete_" );
return Kopete::PluginManager::self()->loadPlugin( argument );
@@ -260,11 +260,11 @@ bool KopeteIface::loadPlugin( const QString &name )
}
}
-bool KopeteIface::unloadPlugin( const QString &name )
+bool KopeteIface::unloadPlugin( const TQString &name )
{
if ( Kopete::PluginManager::self()->setPluginEnabled( name, false ) )
{
- QString argument = name;
+ TQString argument = name;
if ( !argument.startsWith( "kopete_" ) )
argument.prepend( "kopete_" );
return Kopete::PluginManager::self()->unloadPlugin( argument );
@@ -280,7 +280,7 @@ void KopeteIface::setAway()
Kopete::AccountManager::self()->setAwayAll();
}
-void KopeteIface::setAway(const QString &msg, bool away)
+void KopeteIface::setAway(const TQString &msg, bool away)
{
Kopete::AccountManager::self()->setAwayAll(msg, away);
}
@@ -295,7 +295,7 @@ void KopeteIface::setAutoAway()
Kopete::Away::getInstance()->setAutoAway();
}
-void KopeteIface::setGlobalNickname( const QString &nickname )
+void KopeteIface::setGlobalNickname( const TQString &nickname )
{
if( Kopete::Config::enableGlobalIdentity() )
{
@@ -316,14 +316,14 @@ void KopeteIface::setGlobalPhoto( const KURL &photoUrl )
}
}
-QStringList KopeteIface::contactsForDisplayName( const QString & displayName )
+TQStringList KopeteIface::contactsForDisplayName( const TQString & displayName )
{
Kopete::MetaContact * mc = Kopete::ContactList::self()->findMetaContactByDisplayName( displayName );
- QStringList contactIds;
+ TQStringList contactIds;
if ( mc )
{
- QPtrList<Kopete::Contact> contacts = mc->contacts();
- QPtrListIterator<Kopete::Contact> it( contacts );
+ TQPtrList<Kopete::Contact> contacts = mc->contacts();
+ TQPtrListIterator<Kopete::Contact> it( contacts );
for( ; it.current(); ++it )
{
contactIds.append( (*it)->contactId() );
@@ -332,13 +332,13 @@ QStringList KopeteIface::contactsForDisplayName( const QString & displayName )
return contactIds;
}
-QStringList KopeteIface::metacontactsForContactId( const QString & contactId )
+TQStringList KopeteIface::metacontactsForContactId( const TQString & contactId )
{
Kopete::MetaContact * mc = Kopete::ContactList::self()->findMetaContactByContactId( contactId );
if ( mc )
- return QStringList( mc->displayName() );
+ return TQStringList( mc->displayName() );
else
- return QStringList();
+ return TQStringList();
}
// vim: set noet ts=4 sts=4 sw=4: