summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/yahoo/yahooaccount.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/yahoo/yahooaccount.cpp')
-rw-r--r--kopete/protocols/yahoo/yahooaccount.cpp770
1 files changed, 385 insertions, 385 deletions
diff --git a/kopete/protocols/yahoo/yahooaccount.cpp b/kopete/protocols/yahoo/yahooaccount.cpp
index 3a64d215..ae33f264 100644
--- a/kopete/protocols/yahoo/yahooaccount.cpp
+++ b/kopete/protocols/yahoo/yahooaccount.cpp
@@ -21,15 +21,15 @@
#include <stdlib.h>
//QT
-#include <qfont.h>
-#include <qdatetime.h>
-#include <qcolor.h>
-#include <qregexp.h>
-#include <qimage.h>
-#include <qfile.h>
-#include <qpixmap.h>
-#include <qdir.h>
-#include <qfileinfo.h>
+#include <tqfont.h>
+#include <tqdatetime.h>
+#include <tqcolor.h>
+#include <tqregexp.h>
+#include <tqimage.h>
+#include <tqfile.h>
+#include <tqpixmap.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
// KDE
#include <klocale.h>
@@ -66,7 +66,7 @@
#include "yabentry.h"
#include "yahoouserinfodialog.h"
-YahooAccount::YahooAccount(YahooProtocol *parent, const QString& accountId, const char *name)
+YahooAccount::YahooAccount(YahooProtocol *parent, const TQString& accountId, const char *name)
: Kopete::PasswordedAccount(parent, accountId, 0, name)
{
@@ -83,21 +83,21 @@ YahooAccount::YahooAccount(YahooProtocol *parent, const QString& accountId, cons
// FIXME
//m_openInboxAction = new KAction( KIcon("mail-folder-inbox"), i18n( "Open Inbo&x..." ), this );
//, "m_openInboxAction" );
- //QObject::connect(m_openInboxAction, SIGNAL( triggered(bool) ), this, SLOT( slotOpenInbox() ) );
+ //TQObject::connect(m_openInboxAction, TQT_SIGNAL( triggered(bool) ), this, TQT_SLOT( slotOpenInbox() ) );
//m_openYABAction = new KAction( KIcon("x-office-address-book"), i18n( "Open &Address book..." ), this );
//, "m_openYABAction" );
- //QObject::connect(m_openYABAction, SIGNAL( triggered(bool) ), this, SLOT( slotOpenYAB() ) );
+ //TQObject::connect(m_openYABAction, TQT_SIGNAL( triggered(bool) ), this, TQT_SLOT( slotOpenYAB() ) );
//m_editOwnYABEntry = new KAction( KIcon("document-properties"), i18n( "&Edit my contact details..."), this );
//, "m_editOwnYABEntry" );
- //QObject::connect(m_editOwnYABEntry, SIGNAL( triggered(bool) ), this, SLOT( slotEditOwnYABEntry() ) );
+ //TQObject::connect(m_editOwnYABEntry, TQT_SIGNAL( triggered(bool) ), this, TQT_SLOT( slotEditOwnYABEntry() ) );
//m_joinChatAction = new KAction( KIcon("im-chat-room-join"), i18n( "&Join chat room..."), this );
//, "m_joinChatAction" );
- //QObject::connect(m_joinChatAction, SIGNAL( triggered(bool) ), this, SLOT( slotJoinChatRoom() ) );
+ //TQObject::connect(m_joinChatAction, TQT_SIGNAL( triggered(bool) ), this, TQT_SLOT( slotJoinChatRoom() ) );
- m_openInboxAction = new KAction( i18n( "Open Inbo&x..." ), "mail_generic", 0, this, SLOT( slotOpenInbox() ), this, "m_openInboxAction" );
- m_openYABAction = new KAction( i18n( "Open &Addressbook..." ), "contents", 0, this, SLOT( slotOpenYAB() ), this, "m_openYABAction" );
- m_editOwnYABEntry = new KAction( i18n( "&Edit my contact details..."), "contents", 0, this, SLOT( slotEditOwnYABEntry() ), this, "m_editOwnYABEntry" );
- m_joinChatAction = new KAction( i18n( "&Join chat room..."), "contents", 0, this, SLOT( slotJoinChatRoom() ), this, "m_joinChatAction");
+ m_openInboxAction = new KAction( i18n( "Open Inbo&x..." ), "mail_generic", 0, this, TQT_SLOT( slotOpenInbox() ), this, "m_openInboxAction" );
+ m_openYABAction = new KAction( i18n( "Open &Addressbook..." ), "contents", 0, this, TQT_SLOT( slotOpenYAB() ), this, "m_openYABAction" );
+ m_editOwnYABEntry = new KAction( i18n( "&Edit my contact details..."), "contents", 0, this, TQT_SLOT( slotEditOwnYABEntry() ), this, "m_editOwnYABEntry" );
+ m_joinChatAction = new KAction( i18n( "&Join chat room..."), "contents", 0, this, TQT_SLOT( slotJoinChatRoom() ), this, "m_joinChatAction");
YahooContact* _myself=new YahooContact( this, accountId.lower(), accountId, Kopete::ContactList::self()->myself() );
setMyself( _myself );
@@ -109,7 +109,7 @@ YahooAccount::YahooAccount(YahooProtocol *parent, const QString& accountId, cons
// initConnectionSignals( MakeConnections );
- QString displayName = configGroup()->readEntry(QString::fromLatin1("displayName"), QString());
+ TQString displayName = configGroup()->readEntry(TQString::fromLatin1("displayName"), TQString());
if(!displayName.isEmpty())
_myself->setNickName(displayName);
@@ -128,17 +128,17 @@ YahooAccount::~YahooAccount()
m_webcam->stopTransmission();
}
-void YahooAccount::setServer( const QString &server )
+void YahooAccount::setServer( const TQString &server )
{
- configGroup()->writeEntry( QString::fromLatin1( "Server" ), server );
+ configGroup()->writeEntry( TQString::fromLatin1( "Server" ), server );
}
void YahooAccount::setPort( int port )
{
- configGroup()->writeEntry( QString::fromLatin1( "Port" ), port );
+ configGroup()->writeEntry( TQString::fromLatin1( "Port" ), port );
}
-void YahooAccount::slotGoStatus( int status, const QString &awayMessage)
+void YahooAccount::slotGoStatus( int status, const TQString &awayMessage)
{
kdDebug(YAHOO_GEN_DEBUG) << "GoStatus: " << status << " msg: " << awayMessage << endl;
if( !isConnected() )
@@ -162,9 +162,9 @@ Client *YahooAccount::yahooSession()
return m_session ? m_session : 0L;
}
-QString YahooAccount::stripMsgColorCodes(const QString& msg)
+TQString YahooAccount::stripMsgColorCodes(const TQString& msg)
{
- QString filteredMsg = msg;
+ TQString filteredMsg = msg;
//Handle bold, underline and italic messages
filteredMsg.replace( "\033[1m", "<b>" );
@@ -183,12 +183,12 @@ QString YahooAccount::stripMsgColorCodes(const QString& msg)
filteredMsg.remove( "\033[xlm" );
//Remove color codes and other residual formatting
- filteredMsg.remove( QRegExp("\033\\[[^m]*m") );
+ filteredMsg.remove( TQRegExp("\033\\[[^m]*m") );
return filteredMsg;
}
-QColor YahooAccount::getMsgColor(const QString& msg)
+TQColor YahooAccount::getMsgColor(const TQString& msg)
{
/* Yahoo sends a message either with color or without color
* so we have to use this really hacky method to get colors
@@ -209,13 +209,13 @@ QColor YahooAccount::getMsgColor(const QString& msg)
if ( msg.find("\033[32m") != -1 )
return Qt::cyan;
if ( msg.find("\033[37m") != -1 )
- return QColor("#FFAA39");
+ return TQColor("#FFAA39");
if ( msg.find("\033[35m") != -1 )
- return QColor("#FFD8D8");
+ return TQColor("#FFD8D8");
if ( msg.find("\033[#") != -1 )
{
kdDebug(YAHOO_GEN_DEBUG) << "Custom color is " << msg.mid(msg.find("\033[#")+2,7) << endl;
- return QColor(msg.mid(msg.find("\033[#")+2,7));
+ return TQColor(msg.mid(msg.find("\033[#")+2,7));
}
//return a default value just in case
@@ -229,294 +229,294 @@ void YahooAccount::initConnectionSignals( enum SignalConnectionType sct )
if ( sct == MakeConnections )
{
- QObject::connect(m_session, SIGNAL(loggedIn( int, const QString &)),
- this, SLOT(slotLoginResponse(int, const QString &)) );
+ TQObject::connect(m_session, TQT_SIGNAL(loggedIn( int, const TQString &)),
+ this, TQT_SLOT(slotLoginResponse(int, const TQString &)) );
- QObject::connect(m_session, SIGNAL(disconnected()),
- this, SLOT(slotDisconnected()) );
+ TQObject::connect(m_session, TQT_SIGNAL(disconnected()),
+ this, TQT_SLOT(slotDisconnected()) );
- QObject::connect(m_session, SIGNAL(loginFailed()),
- this, SLOT(slotLoginFailed()) );
+ TQObject::connect(m_session, TQT_SIGNAL(loginFailed()),
+ this, TQT_SLOT(slotLoginFailed()) );
- QObject::connect(m_session, SIGNAL(error(int)),
- this, SLOT(slotError(int)));
+ TQObject::connect(m_session, TQT_SIGNAL(error(int)),
+ this, TQT_SLOT(slotError(int)));
- QObject::connect(m_session, SIGNAL(gotBuddy(const QString &, const QString &, const QString &)),
- this, SLOT(slotGotBuddy(const QString &, const QString &, const QString &)));
+ TQObject::connect(m_session, TQT_SIGNAL(gotBuddy(const TQString &, const TQString &, const TQString &)),
+ this, TQT_SLOT(slotGotBuddy(const TQString &, const TQString &, const TQString &)));
- QObject::connect(m_session, SIGNAL(buddyAddResult(const QString &, const QString &, bool)),
- this, SLOT(slotBuddyAddResult(const QString &, const QString &, bool)));
+ TQObject::connect(m_session, TQT_SIGNAL(buddyAddResult(const TQString &, const TQString &, bool)),
+ this, TQT_SLOT(slotBuddyAddResult(const TQString &, const TQString &, bool)));
- QObject::connect(m_session, SIGNAL(buddyRemoveResult(const QString &, const QString &, bool)),
- this, SLOT(slotBuddyRemoveResult(const QString &, const QString &, bool)));
+ TQObject::connect(m_session, TQT_SIGNAL(buddyRemoveResult(const TQString &, const TQString &, bool)),
+ this, TQT_SLOT(slotBuddyRemoveResult(const TQString &, const TQString &, bool)));
- QObject::connect(m_session, SIGNAL(buddyChangeGroupResult(const QString &, const QString &, bool)),
- this, SLOT(slotBuddyChangeGroupResult(const QString &, const QString &, bool)));
+ TQObject::connect(m_session, TQT_SIGNAL(buddyChangeGroupResult(const TQString &, const TQString &, bool)),
+ this, TQT_SLOT(slotBuddyChangeGroupResult(const TQString &, const TQString &, bool)));
- QObject::connect(m_session, SIGNAL(authorizationAccepted( const QString & )),
- this, SLOT(slotAuthorizationAccepted( const QString & )) );
+ TQObject::connect(m_session, TQT_SIGNAL(authorizationAccepted( const TQString & )),
+ this, TQT_SLOT(slotAuthorizationAccepted( const TQString & )) );
- QObject::connect(m_session, SIGNAL(authorizationRejected( const QString &, const QString & )),
- this, SLOT(slotAuthorizationRejected( const QString &, const QString & )) );
+ TQObject::connect(m_session, TQT_SIGNAL(authorizationRejected( const TQString &, const TQString & )),
+ this, TQT_SLOT(slotAuthorizationRejected( const TQString &, const TQString & )) );
- QObject::connect(m_session, SIGNAL(gotAuthorizationRequest( const QString &, const QString &, const QString & )),
- this, SLOT(slotgotAuthorizationRequest( const QString &, const QString &, const QString & )) );
+ TQObject::connect(m_session, TQT_SIGNAL(gotAuthorizationRequest( const TQString &, const TQString &, const TQString & )),
+ this, TQT_SLOT(slotgotAuthorizationRequest( const TQString &, const TQString &, const TQString & )) );
- QObject::connect(m_session, SIGNAL(statusChanged(const QString&,int,const QString&,int,int,int)),
- this, SLOT(slotStatusChanged(const QString&,int,const QString&,int,int,int)));
+ TQObject::connect(m_session, TQT_SIGNAL(statusChanged(const TQString&,int,const TQString&,int,int,int)),
+ this, TQT_SLOT(slotStatusChanged(const TQString&,int,const TQString&,int,int,int)));
- QObject::connect(m_session, SIGNAL(stealthStatusChanged(const QString &, Yahoo::StealthStatus)),
- this, SLOT(slotStealthStatusChanged( const QString &, Yahoo::StealthStatus)) );
+ TQObject::connect(m_session, TQT_SIGNAL(stealthStatusChanged(const TQString &, Yahoo::StealthStatus)),
+ this, TQT_SLOT(slotStealthStatusChanged( const TQString &, Yahoo::StealthStatus)) );
- QObject::connect(m_session, SIGNAL(gotIm(const QString&, const QString&, long, int)),
- this, SLOT(slotGotIm(const QString &, const QString&, long, int)));
+ TQObject::connect(m_session, TQT_SIGNAL(gotIm(const TQString&, const TQString&, long, int)),
+ this, TQT_SLOT(slotGotIm(const TQString &, const TQString&, long, int)));
- QObject::connect(m_session, SIGNAL(gotBuzz(const QString&, long)),
- this, SLOT(slotGotBuzz(const QString &, long)));
+ TQObject::connect(m_session, TQT_SIGNAL(gotBuzz(const TQString&, long)),
+ this, TQT_SLOT(slotGotBuzz(const TQString &, long)));
- QObject::connect(m_session, SIGNAL( gotConferenceInvite( const QString&, const QString&,
- const QString&, const QStringList&) ),
+ TQObject::connect(m_session, TQT_SIGNAL( gotConferenceInvite( const TQString&, const TQString&,
+ const TQString&, const TQStringList&) ),
this,
- SLOT( slotGotConfInvite( const QString&, const QString&,
- const QString&, const QStringList& ) ) );
+ TQT_SLOT( slotGotConfInvite( const TQString&, const TQString&,
+ const TQString&, const TQStringList& ) ) );
- QObject::connect(m_session, SIGNAL(confUserDeclined(const QString&, const QString &, const QString &)),
+ TQObject::connect(m_session, TQT_SIGNAL(confUserDeclined(const TQString&, const TQString &, const TQString &)),
this,
- SLOT(slotConfUserDecline( const QString &, const QString &, const QString &)) );
+ TQT_SLOT(slotConfUserDecline( const TQString &, const TQString &, const TQString &)) );
- QObject::connect(m_session , SIGNAL(confUserJoined( const QString &, const QString &)), this,
- SLOT(slotConfUserJoin( const QString &, const QString &)) );
+ TQObject::connect(m_session , TQT_SIGNAL(confUserJoined( const TQString &, const TQString &)), this,
+ TQT_SLOT(slotConfUserJoin( const TQString &, const TQString &)) );
- QObject::connect(m_session , SIGNAL(confUserLeft( const QString &, const QString &)), this,
- SLOT(slotConfUserLeave( const QString &, const QString &)) );
+ TQObject::connect(m_session , TQT_SIGNAL(confUserLeft( const TQString &, const TQString &)), this,
+ TQT_SLOT(slotConfUserLeave( const TQString &, const TQString &)) );
- QObject::connect(m_session , SIGNAL(gotConferenceMessage( const QString &, const QString &, const QString &)), this,
- SLOT(slotConfMessage( const QString &, const QString &, const QString &)) );
+ TQObject::connect(m_session , TQT_SIGNAL(gotConferenceMessage( const TQString &, const TQString &, const TQString &)), this,
+ TQT_SLOT(slotConfMessage( const TQString &, const TQString &, const TQString &)) );
- QObject::connect(m_session,
- SIGNAL(incomingFileTransfer(const QString &, const QString &, long, const QString &, const QString &, unsigned long, const QPixmap &)),
+ TQObject::connect(m_session,
+ TQT_SIGNAL(incomingFileTransfer(const TQString &, const TQString &, long, const TQString &, const TQString &, unsigned long, const TQPixmap &)),
this,
- SLOT(slotGotFile(const QString&, const QString&, long, const QString&, const QString&, unsigned long, const QPixmap &)));
+ TQT_SLOT(slotGotFile(const TQString&, const TQString&, long, const TQString&, const TQString&, unsigned long, const TQPixmap &)));
- QObject::connect(m_session, SIGNAL(fileTransferComplete(unsigned int)), this,
- SLOT(slotFileTransferComplete(unsigned int)) );
+ TQObject::connect(m_session, TQT_SIGNAL(fileTransferComplete(unsigned int)), this,
+ TQT_SLOT(slotFileTransferComplete(unsigned int)) );
- QObject::connect(m_session, SIGNAL(fileTransferBytesProcessed(unsigned int,unsigned int)), this,
- SLOT(slotFileTransferBytesProcessed(unsigned int,unsigned int)) );
+ TQObject::connect(m_session, TQT_SIGNAL(fileTransferBytesProcessed(unsigned int,unsigned int)), this,
+ TQT_SLOT(slotFileTransferBytesProcessed(unsigned int,unsigned int)) );
- QObject::connect(m_session, SIGNAL(fileTransferError(unsigned int,int,const QString &)), this,
- SLOT(slotFileTransferError(unsigned int,int,const QString &)) );
+ TQObject::connect(m_session, TQT_SIGNAL(fileTransferError(unsigned int,int,const TQString &)), this,
+ TQT_SLOT(slotFileTransferError(unsigned int,int,const TQString &)) );
- QObject::connect(m_session, SIGNAL(typingNotify(const QString &, int)), this ,
- SLOT(slotTypingNotify(const QString &, int)));
+ TQObject::connect(m_session, TQT_SIGNAL(typingNotify(const TQString &, int)), this ,
+ TQT_SLOT(slotTypingNotify(const TQString &, int)));
-// QObject::connect(m_session, SIGNAL(gameNotify(const QString &, int)), this,
-// SLOT(slotGameNotify( const QString &, int)));
+// TQObject::connect(m_session, TQT_SIGNAL(gameNotify(const TQString &, int)), this,
+// TQT_SLOT(slotGameNotify( const TQString &, int)));
- QObject::connect(m_session, SIGNAL(mailNotify(const QString&, const QString&, int)), this,
- SLOT(slotMailNotify(const QString &, const QString&, int)));
+ TQObject::connect(m_session, TQT_SIGNAL(mailNotify(const TQString&, const TQString&, int)), this,
+ TQT_SLOT(slotMailNotify(const TQString &, const TQString&, int)));
- QObject::connect(m_session, SIGNAL(systemMessage(const QString&)), this,
- SLOT(slotSystemMessage(const QString &)));
+ TQObject::connect(m_session, TQT_SIGNAL(systemMessage(const TQString&)), this,
+ TQT_SLOT(slotSystemMessage(const TQString &)));
-// QObject::connect(m_session, SIGNAL(gotIdentities(const QStringList &)), this,
-// SLOT(slotGotIdentities( const QStringList&)));
+// TQObject::connect(m_session, TQT_SIGNAL(gotIdentities(const TQStringList &)), this,
+// TQT_SLOT(slotGotIdentities( const TQStringList&)));
- QObject::connect(m_session, SIGNAL(gotWebcamInvite(const QString&)), this, SLOT(slotGotWebcamInvite(const QString&)));
+ TQObject::connect(m_session, TQT_SIGNAL(gotWebcamInvite(const TQString&)), this, TQT_SLOT(slotGotWebcamInvite(const TQString&)));
- QObject::connect(m_session, SIGNAL(webcamNotAvailable(const QString&)), this, SLOT(slotWebcamNotAvailable(const QString&)));
+ TQObject::connect(m_session, TQT_SIGNAL(webcamNotAvailable(const TQString&)), this, TQT_SLOT(slotWebcamNotAvailable(const TQString&)));
- QObject::connect(m_session, SIGNAL(webcamImageReceived(const QString&, const QPixmap& )), this, SLOT(slotGotWebcamImage(const QString&, const QPixmap& )));
+ TQObject::connect(m_session, TQT_SIGNAL(webcamImageReceived(const TQString&, const TQPixmap& )), this, TQT_SLOT(slotGotWebcamImage(const TQString&, const TQPixmap& )));
- QObject::connect(m_session, SIGNAL(webcamClosed(const QString&, int )), this, SLOT(slotWebcamClosed(const QString&, int )));
+ TQObject::connect(m_session, TQT_SIGNAL(webcamClosed(const TQString&, int )), this, TQT_SLOT(slotWebcamClosed(const TQString&, int )));
- QObject::connect(m_session, SIGNAL(webcamPaused(const QString&)), this, SLOT(slotWebcamPaused(const QString&)));
+ TQObject::connect(m_session, TQT_SIGNAL(webcamPaused(const TQString&)), this, TQT_SLOT(slotWebcamPaused(const TQString&)));
- QObject::connect(m_session, SIGNAL(webcamReadyForTransmission()), this, SLOT(slotWebcamReadyForTransmission()));
+ TQObject::connect(m_session, TQT_SIGNAL(webcamReadyForTransmission()), this, TQT_SLOT(slotWebcamReadyForTransmission()));
- QObject::connect(m_session, SIGNAL(webcamStopTransmission()), this, SLOT(slotWebcamStopTransmission()));
+ TQObject::connect(m_session, TQT_SIGNAL(webcamStopTransmission()), this, TQT_SLOT(slotWebcamStopTransmission()));
- QObject::connect(m_session, SIGNAL(webcamViewerJoined(const QString&)), this, SLOT(slotWebcamViewerJoined(const QString&)));
+ TQObject::connect(m_session, TQT_SIGNAL(webcamViewerJoined(const TQString&)), this, TQT_SLOT(slotWebcamViewerJoined(const TQString&)));
- QObject::connect(m_session, SIGNAL(webcamViewerLeft(const QString&)), this, SLOT(slotWebcamViewerLeft(const QString&)));
+ TQObject::connect(m_session, TQT_SIGNAL(webcamViewerLeft(const TQString&)), this, TQT_SLOT(slotWebcamViewerLeft(const TQString&)));
- QObject::connect(m_session, SIGNAL(webcamViewerRequest(const QString&)), this, SLOT(slotWebcamViewerRequest( const QString&)));
+ TQObject::connect(m_session, TQT_SIGNAL(webcamViewerRequest(const TQString&)), this, TQT_SLOT(slotWebcamViewerRequest( const TQString&)));
- QObject::connect(m_session, SIGNAL(pictureStatusNotify( const QString&, int )), SLOT(slotPictureStatusNotify( const QString&, int)));
+ TQObject::connect(m_session, TQT_SIGNAL(pictureStatusNotify( const TQString&, int )), TQT_SLOT(slotPictureStatusNotify( const TQString&, int)));
- QObject::connect(m_session, SIGNAL(pictureDownloaded(const QString&, const QByteArray &, int)), this, SLOT(slotGotBuddyIcon(const QString&, const QByteArray &, int)) );
+ TQObject::connect(m_session, TQT_SIGNAL(pictureDownloaded(const TQString&, const TQByteArray &, int)), this, TQT_SLOT(slotGotBuddyIcon(const TQString&, const TQByteArray &, int)) );
- QObject::connect(m_session, SIGNAL(pictureInfoNotify(const QString&, KURL, int)), this, SLOT(slotGotBuddyIconInfo(const QString&, KURL, int )));
+ TQObject::connect(m_session, TQT_SIGNAL(pictureInfoNotify(const TQString&, KURL, int)), this, TQT_SLOT(slotGotBuddyIconInfo(const TQString&, KURL, int )));
- QObject::connect(m_session, SIGNAL(pictureChecksumNotify(const QString&, int)), this, SLOT(slotGotBuddyIconChecksum(const QString&, int )));
+ TQObject::connect(m_session, TQT_SIGNAL(pictureChecksumNotify(const TQString&, int)), this, TQT_SLOT(slotGotBuddyIconChecksum(const TQString&, int )));
- QObject::connect(m_session, SIGNAL(pictureRequest(const QString&)), this, SLOT(slotGotBuddyIconRequest(const QString&)) );
+ TQObject::connect(m_session, TQT_SIGNAL(pictureRequest(const TQString&)), this, TQT_SLOT(slotGotBuddyIconRequest(const TQString&)) );
- QObject::connect(m_session, SIGNAL(pictureUploaded( const QString &, int)), this, SLOT(slotBuddyIconChanged(const QString&, int)));
+ TQObject::connect(m_session, TQT_SIGNAL(pictureUploaded( const TQString &, int)), this, TQT_SLOT(slotBuddyIconChanged(const TQString&, int)));
- QObject::connect(m_session, SIGNAL(gotYABEntry( YABEntry * )), this, SLOT(slotGotYABEntry( YABEntry * )));
+ TQObject::connect(m_session, TQT_SIGNAL(gotYABEntry( YABEntry * )), this, TQT_SLOT(slotGotYABEntry( YABEntry * )));
- QObject::connect(m_session, SIGNAL(modifyYABEntryError( YABEntry *, const QString & )), this, SLOT(slotModifyYABEntryError( YABEntry *, const QString & )));
+ TQObject::connect(m_session, TQT_SIGNAL(modifyYABEntryError( YABEntry *, const TQString & )), this, TQT_SLOT(slotModifyYABEntryError( YABEntry *, const TQString & )));
- QObject::connect(m_session, SIGNAL(gotYABRevision( long, bool )), this, SLOT(slotGotYABRevision( long , bool )) );
+ TQObject::connect(m_session, TQT_SIGNAL(gotYABRevision( long, bool )), this, TQT_SLOT(slotGotYABRevision( long , bool )) );
- QObject::connect(m_session, SIGNAL(chatRoomJoined(int,int,QString,QString)), this, SLOT(slotChatJoined(int,int,QString,QString)));
+ TQObject::connect(m_session, TQT_SIGNAL(chatRoomJoined(int,int,TQString,TQString)), this, TQT_SLOT(slotChatJoined(int,int,TQString,TQString)));
- QObject::connect(m_session, SIGNAL(chatBuddyHasJoined(QString,QString,bool)), this, SLOT(slotChatBuddyHasJoined(QString,QString,bool)));
+ TQObject::connect(m_session, TQT_SIGNAL(chatBuddyHasJoined(TQString,TQString,bool)), this, TQT_SLOT(slotChatBuddyHasJoined(TQString,TQString,bool)));
- QObject::connect(m_session, SIGNAL(chatBuddyHasLeft(QString,QString)), this, SLOT(slotChatBuddyHasLeft(QString,QString)));
+ TQObject::connect(m_session, TQT_SIGNAL(chatBuddyHasLeft(TQString,TQString)), this, TQT_SLOT(slotChatBuddyHasLeft(TQString,TQString)));
- QObject::connect(m_session, SIGNAL(chatMessageReceived(QString,QString,QString)), this, SLOT(slotChatMessageReceived(QString,QString,QString)));
+ TQObject::connect(m_session, TQT_SIGNAL(chatMessageReceived(TQString,TQString,TQString)), this, TQT_SLOT(slotChatMessageReceived(TQString,TQString,TQString)));
}
if ( sct == DeleteConnections )
{
- QObject::disconnect(m_session, SIGNAL(loggedIn(int, const QString &)),
- this, SLOT(slotLoginResponse(int, const QString &)) );
+ TQObject::disconnect(m_session, TQT_SIGNAL(loggedIn(int, const TQString &)),
+ this, TQT_SLOT(slotLoginResponse(int, const TQString &)) );
- QObject::disconnect(m_session, SIGNAL(disconnected()),
- this, SLOT(slotDisconnected()) );
+ TQObject::disconnect(m_session, TQT_SIGNAL(disconnected()),
+ this, TQT_SLOT(slotDisconnected()) );
- QObject::disconnect(m_session, SIGNAL(loginFailed()),
- this, SLOT(slotLoginFailed()) );
+ TQObject::disconnect(m_session, TQT_SIGNAL(loginFailed()),
+ this, TQT_SLOT(slotLoginFailed()) );
- QObject::disconnect(m_session, SIGNAL(error(int)),
- this, SLOT(slotError(int)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(error(int)),
+ this, TQT_SLOT(slotError(int)));
- QObject::disconnect(m_session, SIGNAL(gotBuddy(const QString &, const QString &, const QString &)),
- this, SLOT(slotGotBuddy(const QString &, const QString &, const QString &)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(gotBuddy(const TQString &, const TQString &, const TQString &)),
+ this, TQT_SLOT(slotGotBuddy(const TQString &, const TQString &, const TQString &)));
- QObject::disconnect(m_session, SIGNAL(buddyAddResult(const QString &, const QString &, bool)),
- this, SLOT(slotBuddyAddResult(const QString &, const QString &, bool)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(buddyAddResult(const TQString &, const TQString &, bool)),
+ this, TQT_SLOT(slotBuddyAddResult(const TQString &, const TQString &, bool)));
- QObject::disconnect(m_session, SIGNAL(buddyRemoveResult(const QString &, const QString &, bool)),
- this, SLOT(slotBuddyRemoveResult(const QString &, const QString &, bool)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(buddyRemoveResult(const TQString &, const TQString &, bool)),
+ this, TQT_SLOT(slotBuddyRemoveResult(const TQString &, const TQString &, bool)));
- QObject::disconnect(m_session, SIGNAL(buddyChangeGroupResult(const QString &, const QString &, bool)),
- this, SLOT(slotBuddyChangeGroupResult(const QString &, const QString &, bool)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(buddyChangeGroupResult(const TQString &, const TQString &, bool)),
+ this, TQT_SLOT(slotBuddyChangeGroupResult(const TQString &, const TQString &, bool)));
- QObject::disconnect(m_session, SIGNAL(authorizationAccepted( const QString &)),
- this, SLOT(slotAuthorizationAccepted( const QString &)) );
+ TQObject::disconnect(m_session, TQT_SIGNAL(authorizationAccepted( const TQString &)),
+ this, TQT_SLOT(slotAuthorizationAccepted( const TQString &)) );
- QObject::disconnect(m_session, SIGNAL(authorizationRejected( const QString &, const QString &)),
- this, SLOT(slotAuthorizationRejected( const QString &, const QString & )) );
+ TQObject::disconnect(m_session, TQT_SIGNAL(authorizationRejected( const TQString &, const TQString &)),
+ this, TQT_SLOT(slotAuthorizationRejected( const TQString &, const TQString & )) );
- QObject::disconnect(m_session, SIGNAL(gotAuthorizationRequest( const QString &, const QString &, const QString & )),
- this, SLOT(slotgotAuthorizationRequest( const QString &, const QString &, const QString & )) );
+ TQObject::disconnect(m_session, TQT_SIGNAL(gotAuthorizationRequest( const TQString &, const TQString &, const TQString & )),
+ this, TQT_SLOT(slotgotAuthorizationRequest( const TQString &, const TQString &, const TQString & )) );
- QObject::disconnect(m_session, SIGNAL(statusChanged(const QString&,int,const QString&,int,int,int)),
- this, SLOT(slotStatusChanged(const QString&,int,const QString&,int,int,int)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(statusChanged(const TQString&,int,const TQString&,int,int,int)),
+ this, TQT_SLOT(slotStatusChanged(const TQString&,int,const TQString&,int,int,int)));
- QObject::disconnect(m_session, SIGNAL(stealthStatusChanged(const QString &, Yahoo::StealthStatus)),
- this, SLOT(slotStealthStatusChanged( const QString &, Yahoo::StealthStatus)) );
+ TQObject::disconnect(m_session, TQT_SIGNAL(stealthStatusChanged(const TQString &, Yahoo::StealthStatus)),
+ this, TQT_SLOT(slotStealthStatusChanged( const TQString &, Yahoo::StealthStatus)) );
- QObject::disconnect(m_session, SIGNAL(gotIm(const QString&, const QString&, long, int)),
- this, SLOT(slotGotIm(const QString &, const QString&, long, int)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(gotIm(const TQString&, const TQString&, long, int)),
+ this, TQT_SLOT(slotGotIm(const TQString &, const TQString&, long, int)));
- QObject::disconnect(m_session, SIGNAL(gotBuzz(const QString&, long)),
- this, SLOT(slotGotBuzz(const QString &, long)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(gotBuzz(const TQString&, long)),
+ this, TQT_SLOT(slotGotBuzz(const TQString &, long)));
- QObject::disconnect(m_session,
- SIGNAL( gotConferenceInvite( const QString&, const QString&,
- const QString&, const QStringList&) ),
+ TQObject::disconnect(m_session,
+ TQT_SIGNAL( gotConferenceInvite( const TQString&, const TQString&,
+ const TQString&, const TQStringList&) ),
this,
- SLOT( slotGotConfInvite( const QString&, const QString&,
- const QString&, const QStringList&) ) );
+ TQT_SLOT( slotGotConfInvite( const TQString&, const TQString&,
+ const TQString&, const TQStringList&) ) );
- QObject::disconnect(m_session,
- SIGNAL(confUserDeclined(const QString&, const QString &, const QString &)),
+ TQObject::disconnect(m_session,
+ TQT_SIGNAL(confUserDeclined(const TQString&, const TQString &, const TQString &)),
this,
- SLOT(slotConfUserDecline( const QString &, const QString &, const QString& ) ) );
+ TQT_SLOT(slotConfUserDecline( const TQString &, const TQString &, const TQString& ) ) );
- QObject::disconnect(m_session , SIGNAL(confUserJoined( const QString &, const QString &)),
- this, SLOT(slotConfUserJoin( const QString &, const QString &)) );
+ TQObject::disconnect(m_session , TQT_SIGNAL(confUserJoined( const TQString &, const TQString &)),
+ this, TQT_SLOT(slotConfUserJoin( const TQString &, const TQString &)) );
- QObject::disconnect(m_session , SIGNAL(confUserLeft( const QString &, const QString &)),
- this, SLOT(slotConfUserLeave( const QString &, const QString &)) );
+ TQObject::disconnect(m_session , TQT_SIGNAL(confUserLeft( const TQString &, const TQString &)),
+ this, TQT_SLOT(slotConfUserLeave( const TQString &, const TQString &)) );
- QObject::disconnect(m_session , SIGNAL(gotConferenceMessage( const QString &, const QString &, const QString &)), this,
- SLOT(slotConfMessage( const QString &, const QString &, const QString &)) );
+ TQObject::disconnect(m_session , TQT_SIGNAL(gotConferenceMessage( const TQString &, const TQString &, const TQString &)), this,
+ TQT_SLOT(slotConfMessage( const TQString &, const TQString &, const TQString &)) );
- QObject::disconnect(m_session,
- SIGNAL(incomingFileTransfer(const QString &, const QString &,
- long, const QString &, const QString &, unsigned long, const QPixmap &)),
+ TQObject::disconnect(m_session,
+ TQT_SIGNAL(incomingFileTransfer(const TQString &, const TQString &,
+ long, const TQString &, const TQString &, unsigned long, const TQPixmap &)),
this,
- SLOT(slotGotFile(const QString&, const QString&,
- long, const QString&, const QString&, unsigned long, const QPixmap &)));
+ TQT_SLOT(slotGotFile(const TQString&, const TQString&,
+ long, const TQString&, const TQString&, unsigned long, const TQPixmap &)));
- QObject::disconnect(m_session, SIGNAL(fileTransferComplete(unsigned int)), this,
- SLOT(slotFileTransferComplete(unsigned int)) );
+ TQObject::disconnect(m_session, TQT_SIGNAL(fileTransferComplete(unsigned int)), this,
+ TQT_SLOT(slotFileTransferComplete(unsigned int)) );
- QObject::disconnect(m_session, SIGNAL(fileTransferBytesProcessed(unsigned int,unsigned int)), this,
- SLOT(slotFileTransferBytesProcessed(unsigned int,unsigned int)) );
+ TQObject::disconnect(m_session, TQT_SIGNAL(fileTransferBytesProcessed(unsigned int,unsigned int)), this,
+ TQT_SLOT(slotFileTransferBytesProcessed(unsigned int,unsigned int)) );
- QObject::disconnect(m_session, SIGNAL(fileTransferError(unsigned int,int,const QString &)), this,
- SLOT(slotFileTransferError(unsigned int,int,const QString &)) );
+ TQObject::disconnect(m_session, TQT_SIGNAL(fileTransferError(unsigned int,int,const TQString &)), this,
+ TQT_SLOT(slotFileTransferError(unsigned int,int,const TQString &)) );
- QObject::disconnect(m_session, SIGNAL(typingNotify(const QString &, int)), this ,
- SLOT(slotTypingNotify(const QString &, int)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(typingNotify(const TQString &, int)), this ,
+ TQT_SLOT(slotTypingNotify(const TQString &, int)));
-// QObject::disconnect(m_session, SIGNAL(gameNotify(const QString &, int)), this,
-// SLOT(slotGameNotify( const QString &, int)));
+// TQObject::disconnect(m_session, TQT_SIGNAL(gameNotify(const TQString &, int)), this,
+// TQT_SLOT(slotGameNotify( const TQString &, int)));
- QObject::disconnect(m_session, SIGNAL(mailNotify(const QString&, const QString&, int)), this,
- SLOT(slotMailNotify(const QString &, const QString&, int)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(mailNotify(const TQString&, const TQString&, int)), this,
+ TQT_SLOT(slotMailNotify(const TQString &, const TQString&, int)));
- QObject::disconnect(m_session, SIGNAL(systemMessage(const QString&)), this,
- SLOT(slotSystemMessage(const QString &)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(systemMessage(const TQString&)), this,
+ TQT_SLOT(slotSystemMessage(const TQString &)));
-// QObject::disconnect(m_session, SIGNAL(gotIdentities(const QStringList &)), this,
-// SLOT(slotGotIdentities( const QStringList&)));
+// TQObject::disconnect(m_session, TQT_SIGNAL(gotIdentities(const TQStringList &)), this,
+// TQT_SLOT(slotGotIdentities( const TQStringList&)));
- QObject::disconnect(m_session, SIGNAL(gotWebcamInvite(const QString&)), this, SLOT(slotGotWebcamInvite(const QString&)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(gotWebcamInvite(const TQString&)), this, TQT_SLOT(slotGotWebcamInvite(const TQString&)));
- QObject::disconnect(m_session, SIGNAL(webcamNotAvailable(const QString&)), this, SLOT(slotWebcamNotAvailable(const QString&)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(webcamNotAvailable(const TQString&)), this, TQT_SLOT(slotWebcamNotAvailable(const TQString&)));
- QObject::disconnect(m_session, SIGNAL(webcamImageReceived(const QString&, const QPixmap& )), this, SLOT(slotGotWebcamImage(const QString&, const QPixmap& )));
+ TQObject::disconnect(m_session, TQT_SIGNAL(webcamImageReceived(const TQString&, const TQPixmap& )), this, TQT_SLOT(slotGotWebcamImage(const TQString&, const TQPixmap& )));
- QObject::disconnect(m_session, SIGNAL(webcamClosed(const QString&, int )), this, SLOT(slotWebcamClosed(const QString&, int )));
+ TQObject::disconnect(m_session, TQT_SIGNAL(webcamClosed(const TQString&, int )), this, TQT_SLOT(slotWebcamClosed(const TQString&, int )));
- QObject::disconnect(m_session, SIGNAL(webcamPaused(const QString&)), this, SLOT(slotWebcamPaused(const QString&)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(webcamPaused(const TQString&)), this, TQT_SLOT(slotWebcamPaused(const TQString&)));
- QObject::disconnect(m_session, SIGNAL(webcamReadyForTransmission()), this, SLOT(slotWebcamReadyForTransmission()));
+ TQObject::disconnect(m_session, TQT_SIGNAL(webcamReadyForTransmission()), this, TQT_SLOT(slotWebcamReadyForTransmission()));
- QObject::disconnect(m_session, SIGNAL(webcamStopTransmission()), this, SLOT(slotWebcamStopTransmission()));
+ TQObject::disconnect(m_session, TQT_SIGNAL(webcamStopTransmission()), this, TQT_SLOT(slotWebcamStopTransmission()));
- QObject::disconnect(m_session, SIGNAL(webcamViewerJoined(const QString&)), this, SLOT(slotWebcamViewerJoined(const QString&)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(webcamViewerJoined(const TQString&)), this, TQT_SLOT(slotWebcamViewerJoined(const TQString&)));
- QObject::disconnect(m_session, SIGNAL(webcamViewerLeft(const QString&)), this, SLOT(slotWebcamViewerLeft(const QString&)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(webcamViewerLeft(const TQString&)), this, TQT_SLOT(slotWebcamViewerLeft(const TQString&)));
- QObject::disconnect(m_session, SIGNAL(webcamViewerRequest(const QString&)), this, SLOT(slotWebcamViewerRequest( const QString&)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(webcamViewerRequest(const TQString&)), this, TQT_SLOT(slotWebcamViewerRequest( const TQString&)));
- QObject::disconnect(m_session, SIGNAL(pictureDownloaded(const QString&, const QByteArray &, int )), this, SLOT(slotGotBuddyIcon(const QString&, const QByteArray &,int )));
+ TQObject::disconnect(m_session, TQT_SIGNAL(pictureDownloaded(const TQString&, const TQByteArray &, int )), this, TQT_SLOT(slotGotBuddyIcon(const TQString&, const TQByteArray &,int )));
- QObject::disconnect(m_session, SIGNAL(pictureInfoNotify(const QString&, KURL, int)), this, SLOT(slotGotBuddyIconInfo(const QString&, KURL, int )));
+ TQObject::disconnect(m_session, TQT_SIGNAL(pictureInfoNotify(const TQString&, KURL, int)), this, TQT_SLOT(slotGotBuddyIconInfo(const TQString&, KURL, int )));
- QObject::disconnect(m_session, SIGNAL(pictureRequest(const QString&)), this, SLOT(slotGotBuddyIconRequest(const QString&)) );
+ TQObject::disconnect(m_session, TQT_SIGNAL(pictureRequest(const TQString&)), this, TQT_SLOT(slotGotBuddyIconRequest(const TQString&)) );
- QObject::disconnect(m_session, SIGNAL(pictureUploaded( const QString &, int )), this, SLOT(slotBuddyIconChanged(const QString&, int)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(pictureUploaded( const TQString &, int )), this, TQT_SLOT(slotBuddyIconChanged(const TQString&, int)));
- QObject::disconnect(m_session, SIGNAL(pictureStatusNotify( const QString&, int )), this, SLOT(slotPictureStatusNotify( const QString&, int)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(pictureStatusNotify( const TQString&, int )), this, TQT_SLOT(slotPictureStatusNotify( const TQString&, int)));
- QObject::disconnect(m_session, SIGNAL(pictureChecksumNotify(const QString&, int)), this, SLOT(slotGotBuddyIconChecksum(const QString&, int )));
+ TQObject::disconnect(m_session, TQT_SIGNAL(pictureChecksumNotify(const TQString&, int)), this, TQT_SLOT(slotGotBuddyIconChecksum(const TQString&, int )));
- QObject::disconnect(m_session, SIGNAL(gotYABEntry( YABEntry * )), this, SLOT(slotGotYABEntry( YABEntry * )));
+ TQObject::disconnect(m_session, TQT_SIGNAL(gotYABEntry( YABEntry * )), this, TQT_SLOT(slotGotYABEntry( YABEntry * )));
- QObject::disconnect(m_session, SIGNAL(modifyYABEntryError( YABEntry *, const QString & )), this, SLOT(slotModifyYABEntryError( YABEntry *, const QString & )));
+ TQObject::disconnect(m_session, TQT_SIGNAL(modifyYABEntryError( YABEntry *, const TQString & )), this, TQT_SLOT(slotModifyYABEntryError( YABEntry *, const TQString & )));
- QObject::disconnect(m_session, SIGNAL(gotYABRevision( long, bool )), this, SLOT(slotGotYABRevision( long , bool )) );
+ TQObject::disconnect(m_session, TQT_SIGNAL(gotYABRevision( long, bool )), this, TQT_SLOT(slotGotYABRevision( long , bool )) );
- QObject::disconnect(m_session, SIGNAL(chatRoomJoined(int,int,const QString&,const QString&)), this, SLOT(slotChatJoined(int,int,const QString&,const QString&)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(chatRoomJoined(int,int,const TQString&,const TQString&)), this, TQT_SLOT(slotChatJoined(int,int,const TQString&,const TQString&)));
- QObject::disconnect(m_session, SIGNAL(chatBuddyHasJoined(const QString&,const QString&,bool)), this, SLOT(slotChatBuddyHasJoined(const QString&,const QString&,bool)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(chatBuddyHasJoined(const TQString&,const TQString&,bool)), this, TQT_SLOT(slotChatBuddyHasJoined(const TQString&,const TQString&,bool)));
- QObject::disconnect(m_session, SIGNAL(chatBuddyHasLeft(const QString&,const QString&)), this, SLOT(slotChatBuddyHasLeft(const QString&,const QString&)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(chatBuddyHasLeft(const TQString&,const TQString&)), this, TQT_SLOT(slotChatBuddyHasLeft(const TQString&,const TQString&)));
- QObject::disconnect(m_session, SIGNAL(chatMessageReceived(const QString&,const QString&,const QString&)), this, SLOT(slotChatMessageReceived(const QString&,const QString&,const QString&)));
+ TQObject::disconnect(m_session, TQT_SIGNAL(chatMessageReceived(const TQString&,const TQString&,const TQString&)), this, TQT_SLOT(slotChatMessageReceived(const TQString&,const TQString&,const TQString&)));
}
}
-void YahooAccount::connectWithPassword( const QString &passwd )
+void YahooAccount::connectWithPassword( const TQString &passwd )
{
kdDebug(YAHOO_GEN_DEBUG) ;
if ( isAway() )
@@ -539,7 +539,7 @@ void YahooAccount::connectWithPassword( const QString &passwd )
return;
}
- QString server = configGroup()->readEntry( "Server", "scsa.msg.yahoo.com" );
+ TQString server = configGroup()->readEntry( "Server", "scsa.msg.yahoo.com" );
int port = configGroup()->readNumEntry( "Port", 5050 );
initConnectionSignals( MakeConnections );
@@ -567,10 +567,10 @@ void YahooAccount::disconnect()
static_cast<YahooContact *>( myself() )->setOnlineStatus( m_protocol->Offline );
// FIXME: to check
- //QHash<QString,Kopete::Contact*>::ConstIterator it, itEnd = contacts().constEnd();
+ //QHash<TQString,Kopete::Contact*>::ConstIterator it, itEnd = contacts().constEnd();
//for ( it = contacts().constBegin(); it != itEnd; ++it )
// static_cast<YahooContact *>( it.value() )->setOnlineStatus( m_protocol->Offline );
- for ( QDictIterator<Kopete::Contact> i( contacts() ); i.current(); ++i )
+ for ( TQDictIterator<Kopete::Contact> i( contacts() ); i.current(); ++i )
static_cast<YahooContact *>( i.current() )->setOnlineStatus( m_protocol->Offline );
static_cast<YahooContact*>( myself() )->setOnlineStatus( m_protocol->Offline );
@@ -581,10 +581,10 @@ void YahooAccount::disconnect()
m_session->cancelConnect();
// FIXME: to check
- //QHash<QString,Kopete::Contact*>::ConstIterator it, itEnd = contacts().constEnd();
+ //QHash<TQString,Kopete::Contact*>::ConstIterator it, itEnd = contacts().constEnd();
//for ( it = contacts().constBegin(); it != itEnd; ++it )
// static_cast<YahooContact*>( it.value() )->setOnlineStatus( m_protocol->Offline );
- for ( QDictIterator<Kopete::Contact> i(contacts()); i.current(); ++i )
+ for ( TQDictIterator<Kopete::Contact> i(contacts()); i.current(); ++i )
static_cast<YahooContact*>( i.current() )->setOnlineStatus( m_protocol->Offline );
static_cast<YahooContact*>( myself() )->setOnlineStatus( m_protocol->Offline );
@@ -595,14 +595,14 @@ void YahooAccount::disconnect()
theHaveContactList = false;
}
-void YahooAccount::verifyAccount( const QString &word )
+void YahooAccount::verifyAccount( const TQString &word )
{
kdDebug(YAHOO_GEN_DEBUG) << "Word: s" << word << endl;
m_session->setVerificationWord( word );
disconnected( BadPassword );
}
-void YahooAccount::setAway(bool status, const QString &awayMessage)
+void YahooAccount::setAway(bool status, const TQString &awayMessage)
{
kdDebug(YAHOO_GEN_DEBUG) ;
@@ -658,12 +658,12 @@ KActionMenu* YahooAccount::actionMenu()
return theActionMenu;
}
-YahooContact *YahooAccount::contact( const QString &id )
+YahooContact *YahooAccount::contact( const TQString &id )
{
return static_cast<YahooContact *>(contacts()[id]);
}
-bool YahooAccount::createContact(const QString &contactId, Kopete::MetaContact *parentContact )
+bool YahooAccount::createContact(const TQString &contactId, Kopete::MetaContact *parentContact )
{
// kdDebug(YAHOO_GEN_DEBUG) << " contactId: " << contactId;
@@ -683,7 +683,7 @@ bool YahooAccount::createContact(const QString &contactId, Kopete::MetaContact *
return false;
}
-bool YahooAccount::createChatContact(const QString &nick)
+bool YahooAccount::createChatContact(const TQString &nick)
{
Kopete::MetaContact *m = new Kopete::MetaContact;
m->setTemporary( true );
@@ -692,13 +692,13 @@ bool YahooAccount::createChatContact(const QString &nick)
void YahooAccount::sendFile( YahooContact *to, const KURL &url )
{
- QFile file( url.path() );
+ TQFile file( url.path() );
Kopete::Transfer *transfer = Kopete::TransferManager::transferManager()->addTransfer ( to,
url.fileName(), file.size(), to->userId(), Kopete::FileTransferInfo::Outgoing );
- m_session->sendFile( transfer->info().transferId(), to->userId(), QString(), url );
+ m_session->sendFile( transfer->info().transferId(), to->userId(), TQString(), url );
- QObject::connect( transfer, SIGNAL(result( KIO::Job * )), this, SLOT(slotFileTransferResult( KIO::Job * )) );
+ TQObject::connect( transfer, TQT_SIGNAL(result( KIO::Job * )), this, TQT_SLOT(slotFileTransferResult( KIO::Job * )) );
m_fileTransfers.insert( transfer->info().transferId(), transfer );
}
@@ -715,10 +715,10 @@ void YahooAccount::setupActions( bool connected )
* *
***************************************************************************/
-void YahooAccount::slotLoginResponse( int succ , const QString &url )
+void YahooAccount::slotLoginResponse( int succ , const TQString &url )
{
kdDebug(YAHOO_GEN_DEBUG) << succ << ", " << url << ")]" << endl;
- QString errorMsg;
+ TQString errorMsg;
setupActions( succ == Yahoo::LoginOk );
if ( succ == Yahoo::LoginOk || (succ == Yahoo::LoginDupl && m_lastDisconnectCode == 2) )
{
@@ -799,7 +799,7 @@ void YahooAccount::slotDisconnected()
static_cast<YahooContact *>( myself() )->setOnlineStatus( m_protocol->Offline );
disconnected( ConnectionReset ); // may reconnect
- QString message;
+ TQString message;
message = i18n( "%1 has been disconnected.\nError message:\n%2 - %3" )
.arg( accountId() ).arg( m_session->error() ).arg( m_session->errorString() );
KNotification::event( "connection_lost", message, myself()->onlineStatus().protocolIcon() );
@@ -812,7 +812,7 @@ void YahooAccount::slotLoginFailed()
static_cast<YahooContact *>( myself() )->setOnlineStatus( m_protocol->Offline );
disconnected( Manual ); // don't reconnect
- QString message;
+ TQString message;
message = i18n( "There was an error while connecting %1 to the Yahoo server.\nError message:\n%2 - %3" )
.arg( accountId()).arg( m_session->error() ).arg( m_session->errorString() );
KNotification::event( "cannot_connect", message, myself()->onlineStatus().protocolIcon() );
@@ -832,10 +832,10 @@ void YahooAccount::slotError( int level )
.arg( m_session->errorInformation() ).arg( m_session->errorString() ), i18n( "Yahoo Plugin" ) );
}
-void YahooAccount::slotGotBuddy( const QString &userid, const QString &alias, const QString &group )
+void YahooAccount::slotGotBuddy( const TQString &userid, const TQString &alias, const TQString &group )
{
kdDebug(YAHOO_GEN_DEBUG) ;
- IDs[userid] = QPair<QString, QString>(group, alias);
+ IDs[userid] = QPair<TQString, TQString>(group, alias);
// Serverside -> local
if ( !contact( userid ) )
@@ -849,18 +849,18 @@ void YahooAccount::slotGotBuddy( const QString &userid, const QString &alias, co
//kdDebug(YAHOO_GEN_DEBUG) << IDs << endl;
}
-void YahooAccount::slotBuddyAddResult( const QString &userid, const QString &group, bool success )
+void YahooAccount::slotBuddyAddResult( const TQString &userid, const TQString &group, bool success )
{
kdDebug(YAHOO_GEN_DEBUG) << success << endl;
if(success)
- IDs[userid] = QPair<QString, QString>(group, QString());
+ IDs[userid] = QPair<TQString, TQString>(group, TQString());
// FIXME (same)
//kdDebug(YAHOO_GEN_DEBUG) << IDs << endl;
}
-void YahooAccount::slotBuddyRemoveResult( const QString &userid, const QString &group, bool success )
+void YahooAccount::slotBuddyRemoveResult( const TQString &userid, const TQString &group, bool success )
{
kdDebug(YAHOO_GEN_DEBUG);
@@ -873,38 +873,38 @@ void YahooAccount::slotBuddyRemoveResult( const QString &userid, const QString &
// kdDebug(YAHOO_GEN_DEBUG) << IDs << endl;
}
-void YahooAccount::slotBuddyChangeGroupResult(const QString &userid, const QString &group, bool success)
+void YahooAccount::slotBuddyChangeGroupResult(const TQString &userid, const TQString &group, bool success)
{
kdDebug(YAHOO_GEN_DEBUG);
if(success)
- IDs[userid] = QPair<QString, QString>(group, QString());
+ IDs[userid] = QPair<TQString, TQString>(group, TQString());
// FIXME
//kdDebug(YAHOO_GEN_DEBUG) << IDs << endl;
}
-void YahooAccount::slotAuthorizationAccepted( const QString &who )
+void YahooAccount::slotAuthorizationAccepted( const TQString &who )
{
kdDebug(YAHOO_GEN_DEBUG) ;
- QString message;
+ TQString message;
message = i18n( "User %1 has granted your authorization request." ).arg( who );
- KNotification::event( QString::fromLatin1("kopete_authorization"), message );
+ KNotification::event( TQString::fromLatin1("kopete_authorization"), message );
if( contact( who ) )
contact( who )->setOnlineStatus( m_protocol->Online );
}
-void YahooAccount::slotAuthorizationRejected( const QString &who, const QString &msg )
+void YahooAccount::slotAuthorizationRejected( const TQString &who, const TQString &msg )
{
kdDebug(YAHOO_GEN_DEBUG) ;
- QString message;
+ TQString message;
message = i18n( "User %1 has rejected your authorization request.\n%2" )
.arg( who ).arg( msg );
- KNotification::event( QString::fromLatin1("kopete_authorization"), message );
+ KNotification::event( TQString::fromLatin1("kopete_authorization"), message );
}
-void YahooAccount::slotgotAuthorizationRequest( const QString &user, const QString &msg, const QString &name )
+void YahooAccount::slotgotAuthorizationRequest( const TQString &user, const TQString &msg, const TQString &name )
{
kdDebug(YAHOO_GEN_DEBUG) ;
Q_UNUSED( msg );
@@ -921,8 +921,8 @@ void YahooAccount::slotgotAuthorizationRequest( const QString &user, const QStri
// actions |= Kopete::AddedInfoEvent::AddAction;
//Kopete::AddedInfoEvent* event = new Kopete::AddedInfoEvent( user, this );
- //QObject::connect( event, SIGNAL(actionActivated(uint)),
- // this, SLOT(slotAddedInfoEventActionActivated(uint)) );
+ //TQObject::connect( event, TQT_SIGNAL(actionActivated(uint)),
+ // this, TQT_SLOT(slotAddedInfoEventActionActivated(uint)) );
//event->showActions( actions );
//event->sendEvent();
@@ -932,21 +932,21 @@ void YahooAccount::slotgotAuthorizationRequest( const QString &user, const QStri
hideFlags |= Kopete::UI::ContactAddedNotifyDialog::AddCheckBox | Kopete::UI::ContactAddedNotifyDialog::AddGroupBox ;
Kopete::UI::ContactAddedNotifyDialog *dialog=
- new Kopete::UI::ContactAddedNotifyDialog( user,QString::null,this, hideFlags );
- QObject::connect(dialog,SIGNAL(applyClicked(const QString&)),
- this,SLOT(slotContactAddedNotifyDialogClosed(const QString& )));
+ new Kopete::UI::ContactAddedNotifyDialog( user,TQString::null,this, hideFlags );
+ TQObject::connect(dialog,TQT_SIGNAL(applyClicked(const TQString&)),
+ this,TQT_SLOT(slotContactAddedNotifyDialogClosed(const TQString& )));
dialog->show();
}
-void YahooAccount::slotContactAddedNotifyDialogClosed( const QString &user )
+void YahooAccount::slotContactAddedNotifyDialogClosed( const TQString &user )
{
const Kopete::UI::ContactAddedNotifyDialog *dialog =
dynamic_cast<const Kopete::UI::ContactAddedNotifyDialog *>(sender());
if(!dialog || !isConnected())
return;
- m_session->sendAuthReply( user, dialog->authorized(), QString::null );
+ m_session->sendAuthReply( user, dialog->authorized(), TQString::null );
if(dialog->added())
{
@@ -964,10 +964,10 @@ void YahooAccount::slotContactAddedNotifyDialogClosed( const QString &user )
switch ( actionId )
{
case Kopete::AddedInfoEvent::AuthorizeAction:
- m_session->sendAuthReply( event->contactId(), true, QString() );
+ m_session->sendAuthReply( event->contactId(), true, TQString() );
break;
case Kopete::AddedInfoEvent::BlockAction:
- m_session->sendAuthReply( event->contactId(), false, QString() );
+ m_session->sendAuthReply( event->contactId(), false, TQString() );
break;
case Kopete::AddedInfoEvent::AddContactAction:
event->addContact();
@@ -975,17 +975,17 @@ void YahooAccount::slotContactAddedNotifyDialogClosed( const QString &user )
}
}*/
-void YahooAccount::slotGotIgnore( const QStringList & /* igns */ )
+void YahooAccount::slotGotIgnore( const TQStringList & /* igns */ )
{
//kdDebug(YAHOO_GEN_DEBUG) ;
}
-void YahooAccount::slotGotIdentities( const QStringList & /* ids */ )
+void YahooAccount::slotGotIdentities( const TQStringList & /* ids */ )
{
//kdDebug(YAHOO_GEN_DEBUG) ;
}
-void YahooAccount::slotStatusChanged( const QString &who, int stat, const QString &msg, int away, int idle, int pictureChecksum )
+void YahooAccount::slotStatusChanged( const TQString &who, int stat, const TQString &msg, int away, int idle, int pictureChecksum )
{
kdDebug(YAHOO_GEN_DEBUG) << who << " status: " << stat << " msg: " << msg << " away: " << away << " idle: " << idle << endl;
YahooContact *kc = contact( who );
@@ -1032,7 +1032,7 @@ void YahooAccount::slotStatusChanged( const QString &who, int stat, const QStrin
}
}
-void YahooAccount::slotStealthStatusChanged( const QString &who, Yahoo::StealthStatus state )
+void YahooAccount::slotStealthStatusChanged( const TQString &who, Yahoo::StealthStatus state )
{
//kdDebug(YAHOO_GEN_DEBUG) << "Stealth Status of " << who << "changed to " << state;
@@ -1044,16 +1044,16 @@ void YahooAccount::slotStealthStatusChanged( const QString &who, Yahoo::StealthS
kc->setStealthed( state == Yahoo::StealthActive );
}
-QString YahooAccount::prepareIncomingMessage( const QString &messageText )
+TQString YahooAccount::prepareIncomingMessage( const TQString &messageText )
{
- QString newMsgText( messageText );
- QRegExp regExp;
+ TQString newMsgText( messageText );
+ TQRegExp regExp;
int pos = 0;
newMsgText = stripMsgColorCodes( newMsgText );
kdDebug(YAHOO_GEN_DEBUG) << "Message after stripping color codes '" << newMsgText << "'" << endl;
- newMsgText.replace( QString::fromLatin1( "&" ), QString::fromLatin1( "&amp;" ) );
+ newMsgText.replace( TQString::fromLatin1( "&" ), TQString::fromLatin1( "&amp;" ) );
// Replace Font tags
regExp.setMinimal( true );
@@ -1063,7 +1063,7 @@ QString YahooAccount::prepareIncomingMessage( const QString &messageText )
pos = regExp.search( newMsgText, pos );
if ( pos >= 0 ) {
pos += regExp.matchedLength();
- newMsgText.replace( regExp, QString::fromLatin1("<font\\1style=\"font-size:\\2pt\">" ) );
+ newMsgText.replace( regExp, TQString::fromLatin1("<font\\1style=\"font-size:\\2pt\">" ) );
}
}
@@ -1095,7 +1095,7 @@ QString YahooAccount::prepareIncomingMessage( const QString &messageText )
pos = regExp.search( newMsgText, pos );
if ( pos >= 0 ) {
pos += regExp.matchedLength();
- newMsgText.replace( regExp, QString::fromLatin1("&lt;" ) );
+ newMsgText.replace( regExp, TQString::fromLatin1("&lt;" ) );
}
}
regExp.setPattern( "([^\"bui])>" );
@@ -1104,30 +1104,30 @@ QString YahooAccount::prepareIncomingMessage( const QString &messageText )
pos = regExp.search( newMsgText, pos );
if ( pos >= 0 ) {
pos += regExp.matchedLength();
- newMsgText.replace( regExp, QString::fromLatin1("\\1&gt;" ) );
+ newMsgText.replace( regExp, TQString::fromLatin1("\\1&gt;" ) );
}
}
// add closing tags when needed
regExp.setMinimal( false );
regExp.setPattern( "(<b>.*)(?!</b>)" );
- newMsgText.replace( regExp, QString::fromLatin1("\\1</b>" ) );
+ newMsgText.replace( regExp, TQString::fromLatin1("\\1</b>" ) );
regExp.setPattern( "(<i>.*)(?!</i>)" );
- newMsgText.replace( regExp, QString::fromLatin1("\\1</i>" ) );
+ newMsgText.replace( regExp, TQString::fromLatin1("\\1</i>" ) );
regExp.setPattern( "(<u>.*)(?!</u>)" );
- newMsgText.replace( regExp, QString::fromLatin1("\\1</u>" ) );
+ newMsgText.replace( regExp, TQString::fromLatin1("\\1</u>" ) );
regExp.setPattern( "(<font.*)(?!</font>)" );
- newMsgText.replace( regExp, QString::fromLatin1("\\1</font>" ) );
+ newMsgText.replace( regExp, TQString::fromLatin1("\\1</font>" ) );
- newMsgText.replace( QString::fromLatin1( "\r" ), QString::fromLatin1( "<br/>" ) );
+ newMsgText.replace( TQString::fromLatin1( "\r" ), TQString::fromLatin1( "<br/>" ) );
return newMsgText;
}
-void YahooAccount::slotGotIm( const QString &who, const QString &msg, long tm, int /*stat*/)
+void YahooAccount::slotGotIm( const TQString &who, const TQString &msg, long tm, int /*stat*/)
{
- QFont msgFont;
- QDateTime msgDT;
+ TQFont msgFont;
+ TQDateTime msgDT;
Kopete::ContactPtrList justMe;
if( !contact( who ) )
@@ -1139,17 +1139,17 @@ void YahooAccount::slotGotIm( const QString &who, const QString &msg, long tm, i
//Parse the message for it's properties
kdDebug(YAHOO_GEN_DEBUG) << "Original message is '" << msg << "'" << endl;
//kdDebug(YAHOO_GEN_DEBUG) << "Message color is " << getMsgColor(msg);
- QColor fgColor = getMsgColor( msg );
+ TQColor fgColor = getMsgColor( msg );
// FIXME to check
if (tm == 0)
- //msgDT = QDateTime( QDate::currentDate(), QTime::currentTime(), Qt::LocalTime );
+ //msgDT = TQDateTime( TQDate::currentDate(), TQTime::currentTime(), Qt::LocalTime );
msgDT.setTime_t(time(0L));
else
- //msgDT = QDateTime::fromTime_t(tm);
+ //msgDT = TQDateTime::fromTime_t(tm);
msgDT.setTime_t(tm, Qt::LocalTime);
- QString newMsgText = prepareIncomingMessage( msg );
+ TQString newMsgText = prepareIncomingMessage( msg );
kdDebug(YAHOO_GEN_DEBUG) << "Message after fixing font tags '" << newMsgText << "'" << endl;
@@ -1167,10 +1167,10 @@ void YahooAccount::slotGotIm( const QString &who, const QString &msg, long tm, i
mm->appendMessage(kmsg);
}
-void YahooAccount::slotGotBuzz( const QString &who, long tm )
+void YahooAccount::slotGotBuzz( const TQString &who, long tm )
{
- QFont msgFont;
- QDateTime msgDT;
+ TQFont msgFont;
+ TQDateTime msgDT;
Kopete::ContactPtrList justMe;
if( !contact( who ) )
@@ -1181,20 +1181,20 @@ void YahooAccount::slotGotBuzz( const QString &who, long tm )
// FIXME: to check
if (tm == 0)
- //msgDT = QDateTime( QDate::currentDate(), QTime::currentTime(), Qt::LocalTime );
+ //msgDT = TQDateTime( TQDate::currentDate(), TQTime::currentTime(), Qt::LocalTime );
msgDT.setTime_t(time(0L));
else
- //msgDT = QDateTime::fromTime_t(tm);
+ //msgDT = TQDateTime::fromTime_t(tm);
msgDT.setTime_t(tm, Qt::LocalTime);
justMe.append(myself());
- QString buzzMsgText = i18n("This string is shown when the user is buzzed by a contact", "Buzz");
+ TQString buzzMsgText = i18n("This string is shown when the user is buzzed by a contact", "Buzz");
Kopete::Message kmsg(msgDT, contact(who), justMe, buzzMsgText, Kopete::Message::Inbound,
- Kopete::Message::PlainText, QString::null, Kopete::Message::TypeAction);
+ Kopete::Message::PlainText, TQString::null, Kopete::Message::TypeAction);
- QColor fgColor( "gold" );
+ TQColor fgColor( "gold" );
kmsg.setFg( fgColor );
Kopete::ChatSession *mm = contact(who)->manager(Kopete::Contact::CanCreate);
@@ -1203,7 +1203,7 @@ void YahooAccount::slotGotBuzz( const QString &who, long tm )
mm->emitNudgeNotification();
}
-void YahooAccount::slotGotConfInvite( const QString & who, const QString & room, const QString &msg, const QStringList &members )
+void YahooAccount::slotGotConfInvite( const TQString & who, const TQString & room, const TQString &msg, const TQStringList &members )
{
kdDebug(YAHOO_GEN_DEBUG) << who << " has invited you to join the conference \"" << room << "\" : " << msg << endl;
kdDebug(YAHOO_GEN_DEBUG) << "Members: " << members << endl;
@@ -1215,20 +1215,20 @@ void YahooAccount::slotGotConfInvite( const QString & who, const QString & room,
return;
}
- QString m = who;
- QStringList myMembers;
+ TQString m = who;
+ TQStringList myMembers;
myMembers.push_back( who );
- for( QStringList::const_iterator it = ++members.constBegin(); it != members.constEnd(); ++it )
+ for( TQStringList::const_iterator it = ++members.constBegin(); it != members.constEnd(); ++it )
{
if( *it != m_session->userId() )
{
- m.append( QString(", %1").arg( *it ) );
+ m.append( TQString(", %1").arg( *it ) );
myMembers.push_back( *it );
}
}
if( KMessageBox::Yes == KMessageBox::questionYesNo( Kopete::UI::Global::mainWidget(),
i18n("%1 has invited you to join a conference with %2.\n\nHis/her message: %3\n\nAccept?")
- .arg(who).arg(m).arg(msg), QString(), i18n("Accept"), i18n("Ignore") ) )
+ .arg(who).arg(m).arg(msg), TQString(), i18n("Accept"), i18n("Ignore") ) )
{
m_session->joinConference( room, myMembers );
if( !m_conferences[room] )
@@ -1237,9 +1237,9 @@ void YahooAccount::slotGotConfInvite( const QString & who, const QString & room,
YahooConferenceChatSession *session = new YahooConferenceChatSession( room, protocol(), myself(), others );
m_conferences[room] = session;
- QObject::connect( session, SIGNAL(leavingConference( YahooConferenceChatSession * ) ), this, SLOT( slotConfLeave( YahooConferenceChatSession * ) ) );
+ TQObject::connect( session, TQT_SIGNAL(leavingConference( YahooConferenceChatSession * ) ), this, TQT_SLOT( slotConfLeave( YahooConferenceChatSession * ) ) );
- for ( QStringList::ConstIterator it = myMembers.constBegin(); it != myMembers.constEnd(); ++it )
+ for ( TQStringList::ConstIterator it = myMembers.constBegin(); it != myMembers.constEnd(); ++it )
{
YahooContact * c = contact( *it );
if ( !c )
@@ -1254,32 +1254,32 @@ void YahooAccount::slotGotConfInvite( const QString & who, const QString & room,
}
}
else
- m_session->declineConference( room, myMembers, QString() );
+ m_session->declineConference( room, myMembers, TQString() );
m_pendingConfInvites.remove( room );
}
-void YahooAccount::prepareConference( const QString &who )
+void YahooAccount::prepareConference( const TQString &who )
{
- QString room;
+ TQString room;
for( int i = 0; i < 22; i++ )
{
char c = rand()%52;
room += (c > 25) ? c + 71 : c + 65;
}
- room = QString("%1-%2--").arg(accountId()).arg(room);
+ room = TQString("%1-%2--").arg(accountId()).arg(room);
kdDebug(YAHOO_GEN_DEBUG) << "The generated roomname is: " << room << endl;
- QStringList buddies;
+ TQStringList buddies;
// FIXME: to check
- //QHash<QString,Kopete::Contact*>::ConstIterator it, itEnd = contacts().constEnd();
+ //QHash<TQString,Kopete::Contact*>::ConstIterator it, itEnd = contacts().constEnd();
//for( it = contacts().constBegin(); it != itEnd; ++it )
//{
// buddies.push_back( it.value()->contactId() );
//}
- QDictIterator<Kopete::Contact> it( contacts() );
+ TQDictIterator<Kopete::Contact> it( contacts() );
for( ; it.current(); ++it )
{
if( (*it) != myself() )
@@ -1287,15 +1287,15 @@ void YahooAccount::prepareConference( const QString &who )
}
YahooInviteListImpl *dlg = new YahooInviteListImpl( Kopete::UI::Global::mainWidget() );
- QObject::connect( dlg, SIGNAL( readyToInvite( const QString &, const QStringList &, const QStringList &, const QString & ) ),
- this, SLOT( slotInviteConference( const QString &, const QStringList &, const QStringList &, const QString & ) ) );
+ TQObject::connect( dlg, TQT_SIGNAL( readyToInvite( const TQString &, const TQStringList &, const TQStringList &, const TQString & ) ),
+ this, TQT_SLOT( slotInviteConference( const TQString &, const TQStringList &, const TQStringList &, const TQString & ) ) );
dlg->setRoom( room );
dlg->fillFriendList( buddies );
- dlg->addInvitees( QStringList( who ) );
+ dlg->addInvitees( TQStringList( who ) );
dlg->show();
}
-void YahooAccount::slotInviteConference( const QString &room, const QStringList &members, const QStringList &participants, const QString &msg )
+void YahooAccount::slotInviteConference( const TQString &room, const TQStringList &members, const TQStringList &participants, const TQString &msg )
{
Q_UNUSED( participants );
kdDebug(YAHOO_GEN_DEBUG) << "Inviting " << members << " to the conference " << room << ". Message: " << msg << endl;
@@ -1305,19 +1305,19 @@ kdDebug(YAHOO_GEN_DEBUG) << "Inviting " << members << " to the conference " << r
YahooConferenceChatSession *session = new YahooConferenceChatSession( room, protocol(), myself(), others );
m_conferences[room] = session;
- QObject::connect( session, SIGNAL(leavingConference( YahooConferenceChatSession * ) ), this, SLOT( slotConfLeave( YahooConferenceChatSession * ) ) );
+ TQObject::connect( session, TQT_SIGNAL(leavingConference( YahooConferenceChatSession * ) ), this, TQT_SLOT( slotConfLeave( YahooConferenceChatSession * ) ) );
session->joined( static_cast< YahooContact *>(myself()) );
session->view( true )->raise( false );
}
-void YahooAccount::slotAddInviteConference( const QString &room, const QStringList &who, const QStringList &members, const QString &msg )
+void YahooAccount::slotAddInviteConference( const TQString &room, const TQStringList &who, const TQStringList &members, const TQString &msg )
{
kdDebug(YAHOO_GEN_DEBUG) << "Inviting " << who << " to the conference " << room << ". Message: " << msg << endl;
m_session->addInviteConference( room, who, members, msg );
}
-void YahooAccount::slotConfUserDecline( const QString &who, const QString &room, const QString &msg)
+void YahooAccount::slotConfUserDecline( const TQString &who, const TQString &room, const TQString &msg)
{
kdDebug(YAHOO_GEN_DEBUG) ;
@@ -1329,13 +1329,13 @@ void YahooAccount::slotConfUserDecline( const QString &who, const QString &room,
YahooConferenceChatSession *session = m_conferences[room];
- QString body = i18n( "%1 has declined to join the conference: \"%2\"").arg( who ).arg( msg );
+ TQString body = i18n( "%1 has declined to join the conference: \"%2\"").arg( who ).arg( msg );
Kopete::Message message = Kopete::Message( contact( who ), myself(), body, Kopete::Message::Internal, Kopete::Message::PlainText );
session->appendMessage( message );
}
-void YahooAccount::slotConfUserJoin( const QString &who, const QString &room )
+void YahooAccount::slotConfUserJoin( const TQString &who, const TQString &room )
{
kdDebug(YAHOO_GEN_DEBUG) ;
if( !m_conferences.contains( room ) )
@@ -1352,7 +1352,7 @@ void YahooAccount::slotConfUserJoin( const QString &who, const QString &room )
session->joined( contact( who ) );
}
-void YahooAccount::slotConfUserLeave( const QString & who, const QString &room )
+void YahooAccount::slotConfUserLeave( const TQString & who, const TQString &room )
{
kdDebug(YAHOO_GEN_DEBUG) ;
if( !m_conferences.contains( room ) )
@@ -1374,7 +1374,7 @@ void YahooAccount::slotConfLeave( YahooConferenceChatSession *s )
kdDebug(YAHOO_GEN_DEBUG) ;
if( !s )
return;
- QStringList members;
+ TQStringList members;
for( Kopete::ContactPtrList::ConstIterator it = s->members().constBegin(); it != s->members().constEnd(); ++it )
{
if( (*it) == myself() )
@@ -1386,7 +1386,7 @@ void YahooAccount::slotConfLeave( YahooConferenceChatSession *s )
m_conferences.remove( s->room() );
}
-void YahooAccount::slotConfMessage( const QString &who, const QString &room, const QString &msg )
+void YahooAccount::slotConfMessage( const TQString &who, const TQString &room, const TQString &msg )
{
kdDebug(YAHOO_GEN_DEBUG) ;
@@ -1398,8 +1398,8 @@ void YahooAccount::slotConfMessage( const QString &who, const QString &room, con
YahooConferenceChatSession *session = m_conferences[room];
- QFont msgFont;
- QDateTime msgDT;
+ TQFont msgFont;
+ TQDateTime msgDT;
Kopete::ContactPtrList justMe;
if( !contact( who ) )
@@ -1409,10 +1409,10 @@ void YahooAccount::slotConfMessage( const QString &who, const QString &room, con
}
kdDebug(YAHOO_GEN_DEBUG) << "Original message is '" << msg << "'" << endl;
- QColor fgColor = getMsgColor( msg );
+ TQColor fgColor = getMsgColor( msg );
msgDT.setTime_t(time(0L));
- QString newMsgText = prepareIncomingMessage( msg );
+ TQString newMsgText = prepareIncomingMessage( msg );
kdDebug(YAHOO_GEN_DEBUG) << "Message after fixing font tags '" << newMsgText << "'" << endl;
session->receivedTypingMsg(contact(who), false);
@@ -1429,7 +1429,7 @@ void YahooAccount::slotConfMessage( const QString &who, const QString &room, con
void YahooAccount::sendConfMessage( YahooConferenceChatSession *s, const Kopete::Message &message )
{
kdDebug(YAHOO_GEN_DEBUG) ;
- QStringList members;
+ TQStringList members;
for( Kopete::ContactPtrList::ConstIterator it = s->members().constBegin(); it != s->members().constEnd(); ++it )
{
if( (*it) == myself() )
@@ -1478,7 +1478,7 @@ void YahooAccount::slotGotYABEntry( YABEntry *entry )
dlg->setData( *entry );
dlg->setAccountConnected( isConnected() );
dlg->show();
- QObject::connect( dlg, SIGNAL(saveYABEntry( YABEntry & )), this, SLOT(slotSaveYABEntry( YABEntry & )));
+ TQObject::connect( dlg, TQT_SIGNAL(saveYABEntry( YABEntry & )), this, TQT_SLOT(slotSaveYABEntry( YABEntry & )));
delete entry;
}
}
@@ -1493,7 +1493,7 @@ void YahooAccount::slotSaveYABEntry( YABEntry &entry )
m_session->addYABEntry( entry );
}
-void YahooAccount::slotModifyYABEntryError( YABEntry *entry, const QString &msg )
+void YahooAccount::slotModifyYABEntryError( YABEntry *entry, const TQString &msg )
{
YahooContact* kc = contact( entry->yahooId );
if( kc )
@@ -1501,7 +1501,7 @@ void YahooAccount::slotModifyYABEntryError( YABEntry *entry, const QString &msg
KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Sorry, msg, i18n( "Yahoo Plugin" ) );
}
-void YahooAccount::slotGotFile( const QString & who, const QString & url , long /* expires */, const QString & msg , const QString & fname, unsigned long fesize, const QPixmap &preview )
+void YahooAccount::slotGotFile( const TQString & who, const TQString & url , long /* expires */, const TQString & msg , const TQString & fname, unsigned long fesize, const TQPixmap &preview )
{
kdDebug(YAHOO_GEN_DEBUG) << "Received File from " << who << ": " << msg << endl;
kdDebug(YAHOO_GEN_DEBUG) << "Filename :" << fname << " size:" << fesize << endl;
@@ -1511,15 +1511,15 @@ void YahooAccount::slotGotFile( const QString & who, const QString & url , lon
if( m_pendingFileTransfers.empty() )
{
- QObject::connect( Kopete::TransferManager::transferManager(), SIGNAL( accepted( Kopete::Transfer *, const QString& ) ),
- this, SLOT( slotReceiveFileAccepted( Kopete::Transfer *, const QString& ) ) );
- QObject::connect( Kopete::TransferManager::transferManager(), SIGNAL( refused(const Kopete::FileTransferInfo& ) ),
- this, SLOT( slotReceiveFileRefused( const Kopete::FileTransferInfo& ) ) );
+ TQObject::connect( Kopete::TransferManager::transferManager(), TQT_SIGNAL( accepted( Kopete::Transfer *, const TQString& ) ),
+ this, TQT_SLOT( slotReceiveFileAccepted( Kopete::Transfer *, const TQString& ) ) );
+ TQObject::connect( Kopete::TransferManager::transferManager(), TQT_SIGNAL( refused(const Kopete::FileTransferInfo& ) ),
+ this, TQT_SLOT( slotReceiveFileRefused( const Kopete::FileTransferInfo& ) ) );
}
m_pendingFileTransfers.append( url );
}
-void YahooAccount::slotReceiveFileAccepted(Kopete::Transfer *transfer, const QString& fileName)
+void YahooAccount::slotReceiveFileAccepted(Kopete::Transfer *transfer, const TQString& fileName)
{
kdDebug(YAHOO_GEN_DEBUG) ;
if( !m_pendingFileTransfers.contains( transfer->info().internalId() ) )
@@ -1529,8 +1529,8 @@ void YahooAccount::slotReceiveFileAccepted(Kopete::Transfer *transfer, const QSt
// FIXME to check
//Create directory if it doesn't already exist
- QDir dir;
- QString path = QFileInfo( fileName ).dirPath();
+ TQDir dir;
+ TQString path = TQFileInfo( fileName ).dirPath();
for( int i = 1; i <= path.contains('/'); ++i )
{
if( !dir.exists( path.section( '/', 0, i ) ) )
@@ -1541,14 +1541,14 @@ void YahooAccount::slotReceiveFileAccepted(Kopete::Transfer *transfer, const QSt
m_session->receiveFile( transfer->info().transferId(), transfer->info().contact()->contactId(), transfer->info().internalId(), fileName );
m_fileTransfers.insert( transfer->info().transferId(), transfer );
- QObject::connect( transfer, SIGNAL(result( KIO::Job * )), this, SLOT(slotFileTransferResult( KIO::Job * )) );
+ TQObject::connect( transfer, TQT_SIGNAL(result( KIO::Job * )), this, TQT_SLOT(slotFileTransferResult( KIO::Job * )) );
if( m_pendingFileTransfers.empty() )
{
- QObject::disconnect( Kopete::TransferManager::transferManager(), SIGNAL( accepted( Kopete::Transfer *, const QString& ) ),
- this, SLOT( slotReceiveFileAccepted( Kopete::Transfer *, const QString& ) ) );
- QObject::disconnect( Kopete::TransferManager::transferManager(), SIGNAL( refused(const Kopete::FileTransferInfo& ) ),
- this, SLOT( slotReceiveFileRefused( const Kopete::FileTransferInfo& ) ) );
+ TQObject::disconnect( Kopete::TransferManager::transferManager(), TQT_SIGNAL( accepted( Kopete::Transfer *, const TQString& ) ),
+ this, TQT_SLOT( slotReceiveFileAccepted( Kopete::Transfer *, const TQString& ) ) );
+ TQObject::disconnect( Kopete::TransferManager::transferManager(), TQT_SIGNAL( refused(const Kopete::FileTransferInfo& ) ),
+ this, TQT_SLOT( slotReceiveFileRefused( const Kopete::FileTransferInfo& ) ) );
}
}
@@ -1562,10 +1562,10 @@ void YahooAccount::slotReceiveFileRefused( const Kopete::FileTransferInfo& info
if( m_pendingFileTransfers.empty() )
{
- QObject::disconnect( Kopete::TransferManager::transferManager(), SIGNAL( accepted( Kopete::Transfer *, const QString& ) ),
- this, SLOT( slotReceiveFileAccepted( Kopete::Transfer *, const QString& ) ) );
- QObject::disconnect( Kopete::TransferManager::transferManager(), SIGNAL( refused(const Kopete::FileTransferInfo& ) ),
- this, SLOT( slotReceiveFileRefused( const Kopete::FileTransferInfo& ) ) );
+ TQObject::disconnect( Kopete::TransferManager::transferManager(), TQT_SIGNAL( accepted( Kopete::Transfer *, const TQString& ) ),
+ this, TQT_SLOT( slotReceiveFileAccepted( Kopete::Transfer *, const TQString& ) ) );
+ TQObject::disconnect( Kopete::TransferManager::transferManager(), TQT_SIGNAL( refused(const Kopete::FileTransferInfo& ) ),
+ this, TQT_SLOT( slotReceiveFileRefused( const Kopete::FileTransferInfo& ) ) );
}
}
@@ -1590,7 +1590,7 @@ void YahooAccount::slotFileTransferComplete( unsigned int transferId )
m_fileTransfers.remove( transferId );
}
-void YahooAccount::slotFileTransferError( unsigned int transferId, int error, const QString &desc )
+void YahooAccount::slotFileTransferError( unsigned int transferId, int error, const TQString &desc )
{
kdDebug(YAHOO_GEN_DEBUG) ;
Kopete::Transfer *t = m_fileTransfers[transferId];
@@ -1616,49 +1616,49 @@ void YahooAccount::slotFileTransferResult( KIO::Job *job )
}
}
-void YahooAccount::slotContactAdded( const QString & /* myid */, const QString & /* who */, const QString & /* msg */ )
+void YahooAccount::slotContactAdded( const TQString & /* myid */, const TQString & /* who */, const TQString & /* msg */ )
{
// kdDebug(YAHOO_GEN_DEBUG) << myid << " " << who << " " << msg;
}
-void YahooAccount::slotRejected( const QString & /* who */, const QString & /* msg */ )
+void YahooAccount::slotRejected( const TQString & /* who */, const TQString & /* msg */ )
{
// kdDebug(YAHOO_GEN_DEBUG) ;
}
-void YahooAccount::slotTypingNotify( const QString &who, int what )
+void YahooAccount::slotTypingNotify( const TQString &who, int what )
{
emit receivedTypingMsg(who, what);
}
-void YahooAccount::slotGameNotify( const QString & /* who */, int /* stat */ )
+void YahooAccount::slotGameNotify( const TQString & /* who */, int /* stat */ )
{
// kdDebug(YAHOO_GEN_DEBUG) ;
}
-void YahooAccount::slotMailNotify( const QString& from, const QString& subject , int cnt )
+void YahooAccount::slotMailNotify( const TQString& from, const TQString& subject , int cnt )
{
kdDebug(YAHOO_GEN_DEBUG) << "Mail count: " << cnt << endl;
if ( cnt > 0 && from.isEmpty() )
{
- QObject::connect(KNotification::event( QString::fromLatin1("yahoo_mail"), i18n( "You have one unread message in your Yahoo inbox.",
- "You have %n unread messages in your Yahoo inbox.", cnt ), QPixmap() , 0 ),
- SIGNAL(activated(unsigned int ) ) , this, SLOT( slotOpenInbox() ) );
+ TQObject::connect(KNotification::event( TQString::fromLatin1("yahoo_mail"), i18n( "You have one unread message in your Yahoo inbox.",
+ "You have %n unread messages in your Yahoo inbox.", cnt ), TQPixmap() , 0 ),
+ TQT_SIGNAL(activated(unsigned int ) ) , this, TQT_SLOT( slotOpenInbox() ) );
m_currentMailCount = cnt;
}
else if ( cnt > 0 )
{ kdDebug(YAHOO_GEN_DEBUG) << "attempting to trigger event" << endl;
- QObject::connect(KNotification::event( QString::fromLatin1("yahoo_mail"), i18n( "You have a message from %1 in your Yahoo inbox. <br><br>Subject: %2").arg( from ).arg( subject ),
- QPixmap() , 0 ), SIGNAL(activated(unsigned int ) ) , this, SLOT( slotOpenInbox() ) );
+ TQObject::connect(KNotification::event( TQString::fromLatin1("yahoo_mail"), i18n( "You have a message from %1 in your Yahoo inbox. <br><br>Subject: %2").arg( from ).arg( subject ),
+ TQPixmap() , 0 ), TQT_SIGNAL(activated(unsigned int ) ) , this, TQT_SLOT( slotOpenInbox() ) );
m_currentMailCount = cnt;
}
}
-void YahooAccount::slotSystemMessage( const QString & /* msg */ )
+void YahooAccount::slotSystemMessage( const TQString & /* msg */ )
{
// kdDebug(YAHOO_GEN_DEBUG) << msg;
}
@@ -1668,7 +1668,7 @@ void YahooAccount::slotRemoveHandler( int /* fd */ )
// kdDebug(YAHOO_GEN_DEBUG) ;
}
-void YahooAccount::slotGotWebcamInvite( const QString& who )
+void YahooAccount::slotGotWebcamInvite( const TQString& who )
{
YahooContact* kc = contact( who );
if ( kc == NULL ) {
@@ -1682,18 +1682,18 @@ void YahooAccount::slotGotWebcamInvite( const QString& who )
m_pendingWebcamInvites.append( who );
if( KMessageBox::Yes == KMessageBox::questionYesNo( Kopete::UI::Global::mainWidget(), i18n("%1 has invited you to view his/her webcam. Accept?").arg( who ),
- QString(), i18n("Accept"), i18n("Ignore") ) )
+ TQString(), i18n("Accept"), i18n("Ignore") ) )
{
m_pendingWebcamInvites.remove( who );
m_session->requestWebcam( who );
}
}
-void YahooAccount::slotWebcamNotAvailable( const QString &who )
+void YahooAccount::slotWebcamNotAvailable( const TQString &who )
{
KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Sorry, i18n("Webcam for %1 is not available.").arg(who), i18n( "Yahoo Plugin" ) );
}
-void YahooAccount::slotGotWebcamImage( const QString& who, const QPixmap& image )
+void YahooAccount::slotGotWebcamImage( const TQString& who, const TQPixmap& image )
{
YahooContact* kc = contact( who );
if ( kc == NULL ) {
@@ -1703,7 +1703,7 @@ void YahooAccount::slotGotWebcamImage( const QString& who, const QPixmap& image
kc->receivedWebcamImage( image );
}
-void YahooAccount::slotPictureStatusNotify( const QString &who, int status)
+void YahooAccount::slotPictureStatusNotify( const TQString &who, int status)
{
YahooContact *kc = contact( who );
if ( kc == NULL ) {
@@ -1714,7 +1714,7 @@ void YahooAccount::slotPictureStatusNotify( const QString &who, int status)
kdDebug(YAHOO_GEN_DEBUG) << "contact " << who << " changed picture status to" << status << endl;
}
-void YahooAccount::slotGotBuddyIconChecksum(const QString &who, int checksum)
+void YahooAccount::slotGotBuddyIconChecksum(const TQString &who, int checksum)
{
YahooContact *kc = contact( who );
if ( kc == NULL ) {
@@ -1723,7 +1723,7 @@ void YahooAccount::slotGotBuddyIconChecksum(const QString &who, int checksum)
}
if ( checksum == kc->property( YahooProtocol::protocol()->iconCheckSum ).value().toInt() &&
- QFile::exists( locateLocal( "appdata", "yahoopictures/"+ who.lower().replace(QRegExp("[./~]"),"-") +".png" ) ) )
+ TQFile::exists( locateLocal( "appdata", "yahoopictures/"+ who.lower().replace(TQRegExp("[./~]"),"-") +".png" ) ) )
{
kdDebug(YAHOO_GEN_DEBUG) << "Icon already exists. I will not request it again." << endl;
return;
@@ -1731,7 +1731,7 @@ void YahooAccount::slotGotBuddyIconChecksum(const QString &who, int checksum)
m_session->requestPicture( who );
}
-void YahooAccount::slotGotBuddyIconInfo(const QString &who, KURL url, int checksum)
+void YahooAccount::slotGotBuddyIconInfo(const TQString &who, KURL url, int checksum)
{
kdDebug(YAHOO_GEN_DEBUG) ;
YahooContact *kc = contact( who );
@@ -1741,7 +1741,7 @@ void YahooAccount::slotGotBuddyIconInfo(const QString &who, KURL url, int checks
}
if ( checksum == kc->property( YahooProtocol::protocol()->iconCheckSum ).value().toInt() &&
- QFile::exists( locateLocal( "appdata", "yahoopictures/"+ who.lower().replace(QRegExp("[./~]"),"-") +".png" ) ))
+ TQFile::exists( locateLocal( "appdata", "yahoopictures/"+ who.lower().replace(TQRegExp("[./~]"),"-") +".png" ) ))
{
kdDebug(YAHOO_GEN_DEBUG) << "Icon already exists. I will not download it again." << endl;
return;
@@ -1749,7 +1749,7 @@ void YahooAccount::slotGotBuddyIconInfo(const QString &who, KURL url, int checks
m_session->downloadPicture( who, url, checksum );
}
-void YahooAccount::slotGotBuddyIcon( const QString &who, const QByteArray &data, int checksum )
+void YahooAccount::slotGotBuddyIcon( const TQString &who, const TQByteArray &data, int checksum )
{
kdDebug(YAHOO_GEN_DEBUG) << k_funcinfo << endl;
YahooContact *kc = contact( who );
@@ -1759,7 +1759,7 @@ void YahooAccount::slotGotBuddyIcon( const QString &who, const QByteArray &data,
}
kc->setDisplayPicture( data, checksum );
}
-void YahooAccount::slotGotBuddyIconRequest( const QString & who )
+void YahooAccount::slotGotBuddyIconRequest( const TQString & who )
{
kdDebug(YAHOO_GEN_DEBUG) ;
m_session->sendPictureInformation( who, myself()->property( YahooProtocol::protocol()->iconRemoteUrl ).value().toString(),
@@ -1769,7 +1769,7 @@ void YahooAccount::slotGotBuddyIconRequest( const QString & who )
void YahooAccount::setBuddyIcon( const KURL &url )
{
kdDebug(YAHOO_GEN_DEBUG) << "Url: " << url.path() << endl;
- QString s = url.path();
+ TQString s = url.path();
if ( url.path().isEmpty() )
{
myself()->removeProperty( Kopete::Global::Properties::self()->photo() );
@@ -1781,17 +1781,17 @@ void YahooAccount::setBuddyIcon( const KURL &url )
}
else
{
- QImage image( url.path() );
- QString newlocation( locateLocal( "appdata", "yahoopictures/"+ url.fileName().lower() ) ) ;
- QFile iconFile( newlocation );
- QByteArray data;
+ TQImage image( url.path() );
+ TQString newlocation( locateLocal( "appdata", "yahoopictures/"+ url.fileName().lower() ) ) ;
+ TQFile iconFile( newlocation );
+ TQByteArray data;
uint expire = myself()->property( YahooProtocol::protocol()->iconExpire ).value().toInt();
if ( image.isNull() ) {
KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Sorry, i18n( "<qt>The selected buddy icon could not be opened. <br />Please set a new buddy icon.</qt>" ), i18n( "Yahoo Plugin" ) );
return;
}
- image = image.smoothScale( 96, 96, QImage::ScaleMin );
+ image = image.smoothScale( 96, 96, TQImage::ScaleMin );
if(image.width() < image.height())
{
image = image.copy((image.width()-image.height())/2, 0, 96, 96);
@@ -1827,7 +1827,7 @@ void YahooAccount::setBuddyIcon( const KURL &url )
configGroup()->writeEntry( "iconLocalUrl", newlocation );
if ( checksum != static_cast<uint>(myself()->property( YahooProtocol::protocol()->iconCheckSum ).value().toInt()) ||
- QDateTime::currentDateTime().toTime_t() > expire )
+ TQDateTime::currentDateTime().toTime_t() > expire )
{
myself()->setProperty( YahooProtocol::protocol()->iconCheckSum, checksum );
configGroup()->writeEntry( "iconCheckSum", checksum );
@@ -1837,7 +1837,7 @@ void YahooAccount::setBuddyIcon( const KURL &url )
}
}
-void YahooAccount::slotBuddyIconChanged( const QString &url, int expires )
+void YahooAccount::slotBuddyIconChanged( const TQString &url, int expires )
{
kdDebug(YAHOO_GEN_DEBUG) ;
int checksum = myself()->property( YahooProtocol::protocol()->iconCheckSum ).value().toInt();
@@ -1849,7 +1849,7 @@ void YahooAccount::slotBuddyIconChanged( const QString &url, int expires )
configGroup()->writeEntry( "iconRemoteUrl", url );
configGroup()->writeEntry( "iconExpire", expires );
m_session->setPictureStatus( Yahoo::Picture );
- m_session->sendPictureChecksum( QString(), checksum );
+ m_session->sendPictureChecksum( TQString(), checksum );
}
}
@@ -1859,7 +1859,7 @@ void YahooAccount::slotWebcamReadyForTransmission()
if( !m_webcam )
{
m_webcam = new YahooWebcam( this );
- QObject::connect( m_webcam, SIGNAL(webcamClosing()), this, SLOT(slotOutgoingWebcamClosing()) );
+ TQObject::connect( m_webcam, TQT_SIGNAL(webcamClosing()), this, TQT_SLOT(slotOutgoingWebcamClosing()) );
}
m_webcam->startTransmission();
@@ -1882,7 +1882,7 @@ void YahooAccount::slotOutgoingWebcamClosing()
m_webcam = 0L;
}
-void YahooAccount::slotWebcamViewerJoined( const QString &viewer )
+void YahooAccount::slotWebcamViewerJoined( const TQString &viewer )
{
if( m_webcam )
{
@@ -1890,14 +1890,14 @@ void YahooAccount::slotWebcamViewerJoined( const QString &viewer )
}
}
-void YahooAccount::slotWebcamViewerRequest( const QString &viewer )
+void YahooAccount::slotWebcamViewerRequest( const TQString &viewer )
{
if( KMessageBox::Yes == KMessageBox::questionYesNo( Kopete::UI::Global::mainWidget(), i18n("%1 wants to view your webcam. Grant access?")
- .arg(viewer), QString::null, i18n("Accept"), i18n("Ignore") ) )
+ .arg(viewer), TQString::null, i18n("Accept"), i18n("Ignore") ) )
m_session->grantWebcamAccess( viewer );
}
-void YahooAccount::slotWebcamViewerLeft( const QString &viewer )
+void YahooAccount::slotWebcamViewerLeft( const TQString &viewer )
{
if( m_webcam )
{
@@ -1905,7 +1905,7 @@ void YahooAccount::slotWebcamViewerLeft( const QString &viewer )
}
}
-void YahooAccount::slotWebcamClosed( const QString& who, int reason )
+void YahooAccount::slotWebcamClosed( const TQString& who, int reason )
{
YahooContact* kc = contact( who );
if ( kc == NULL ) {
@@ -1915,7 +1915,7 @@ void YahooAccount::slotWebcamClosed( const QString& who, int reason )
kc->webcamClosed( reason );
}
-void YahooAccount::slotWebcamPaused( const QString &who )
+void YahooAccount::slotWebcamPaused( const TQString &who )
{
YahooContact* kc = contact( who );
if ( kc == NULL ) {
@@ -1925,7 +1925,7 @@ void YahooAccount::slotWebcamPaused( const QString &who )
kc->webcamPaused();
}
-void YahooAccount::setOnlineStatus( const Kopete::OnlineStatus &status, const QString &reason)
+void YahooAccount::setOnlineStatus( const Kopete::OnlineStatus &status, const TQString &reason)
{
kdDebug(YAHOO_GEN_DEBUG) ;
if ( myself()->onlineStatus().status() == Kopete::OnlineStatus::Offline &&
@@ -1968,12 +1968,12 @@ void YahooAccount::setStatusMessage(const Kopete::StatusMessage &statusMessage)
void YahooAccount::slotOpenInbox()
{
- KRun::runURL( KURL( QString::fromLatin1("http://mail.yahoo.com/") ) , "text/html" );
+ KRun::runURL( KURL( TQString::fromLatin1("http://mail.yahoo.com/") ) , "text/html" );
}
void YahooAccount::slotOpenYAB()
{
- KRun::runURL( KURL( QString::fromLatin1("http://address.yahoo.com/") ) , "text/html" );
+ KRun::runURL( KURL( TQString::fromLatin1("http://address.yahoo.com/") ) , "text/html" );
}
void YahooAccount::slotEditOwnYABEntry()
@@ -1988,15 +1988,15 @@ void YahooAccount::slotJoinChatRoom()
/*
YahooChatSelectorDialog *chatDialog = new YahooChatSelectorDialog( Kopete::UI::Global::mainWidget() );
- QObject::connect( m_session, SIGNAL(gotYahooChatCategories( const QDomDocument & )), chatDialog,
- SLOT(slotSetChatCategories( const QDomDocument & )) );
- QObject::connect( m_session, SIGNAL(gotYahooChatRooms( const Yahoo::ChatCategory &, const QDomDocument & )),
- chatDialog, SLOT(slotSetChatRooms( const Yahoo::ChatCategory &, const QDomDocument & )) );
- QObject::connect( chatDialog, SIGNAL(chatCategorySelected( const Yahoo::ChatCategory & )),
- this, SLOT(slotChatCategorySelected( const Yahoo::ChatCategory & ) ) );
+ TQObject::connect( m_session, TQT_SIGNAL(gotYahooChatCategories( const TQDomDocument & )), chatDialog,
+ TQT_SLOT(slotSetChatCategories( const TQDomDocument & )) );
+ TQObject::connect( m_session, TQT_SIGNAL(gotYahooChatRooms( const Yahoo::ChatCategory &, const TQDomDocument & )),
+ chatDialog, TQT_SLOT(slotSetChatRooms( const Yahoo::ChatCategory &, const TQDomDocument & )) );
+ TQObject::connect( chatDialog, TQT_SIGNAL(chatCategorySelected( const Yahoo::ChatCategory & )),
+ this, TQT_SLOT(slotChatCategorySelected( const Yahoo::ChatCategory & ) ) );
m_session->getYahooChatCategories();
- if( chatDialog->exec() == QDialog::Accepted )
+ if( chatDialog->exec() == TQDialog::Accepted )
{
kdDebug() << chatDialog->selectedRoom().topic << " " << chatDialog->selectedRoom().topic << " " << chatDialog->selectedRoom().id << endl;
m_session->joinYahooChatRoom( chatDialog->selectedRoom() );
@@ -2018,7 +2018,7 @@ void YahooAccount::slotChatCategorySelected( const Yahoo::ChatCategory &category
}
// FIXME: not ported yet
-void YahooAccount::slotChatJoined( int roomId, int categoryId, const QString &comment, const QString &handle )
+void YahooAccount::slotChatJoined( int roomId, int categoryId, const TQString &comment, const TQString &handle )
{
}
/*
@@ -2028,8 +2028,8 @@ void YahooAccount::slotChatJoined( int roomId, int categoryId, const QString &co
if( !m_chatChatSession )
{
m_chatChatSession = new YahooChatChatSession( protocol(), myself(), others );
- QObject::connect( m_chatChatSession, SIGNAL(closing(Kopete::ChatSession *)), this,
- SLOT(slotLeavChat()) );
+ TQObject::connect( m_chatChatSession, TQT_SIGNAL(closing(Kopete::ChatSession *)), this,
+ TQT_SLOT(slotLeavChat()) );
}
m_chatChatSession->removeAllContacts();
m_chatChatSession->setHandle( handle );
@@ -2046,7 +2046,7 @@ void YahooAccount::slotChatJoined( int roomId, int categoryId, const QString &co
*/
// FIXME: not ported yet
-void YahooAccount::slotChatBuddyHasJoined( const QString &nick, const QString &handle, bool suppressNotification )
+void YahooAccount::slotChatBuddyHasJoined( const TQString &nick, const TQString &handle, bool suppressNotification )
{
}
/*
@@ -2071,7 +2071,7 @@ void YahooAccount::slotChatBuddyHasJoined( const QString &nick, const QString &h
*/
// FIXME: not ported yet
-void YahooAccount::slotChatBuddyHasLeft( const QString &nick, const QString &handle )
+void YahooAccount::slotChatBuddyHasLeft( const TQString &nick, const TQString &handle )
{
}
/*
@@ -2091,7 +2091,7 @@ void YahooAccount::slotChatBuddyHasLeft( const QString &nick, const QString &han
*/
// FIXME: not ported yet
-void YahooAccount::slotChatMessageReceived( const QString &nick, const QString &message, const QString &handle )
+void YahooAccount::slotChatMessageReceived( const TQString &nick, const TQString &message, const TQString &handle )
{
}
/*
@@ -2101,8 +2101,8 @@ void YahooAccount::slotChatMessageReceived( const QString &nick, const QString &
if( !m_chatChatSession->handle().startsWith( handle ) )
return;
- QFont msgFont;
- QDateTime msgDT;
+ TQFont msgFont;
+ TQDateTime msgDT;
Kopete::ContactPtrList justMe;
if( !contact( nick ) )
@@ -2114,10 +2114,10 @@ void YahooAccount::slotChatMessageReceived( const QString &nick, const QString &
}
kdDebug(YAHOO_GEN_DEBUG) << "Original message is '" << message << "'" << endl;
- QColor fgColor = getMsgColor( message );
+ TQColor fgColor = getMsgColor( message );
msgDT.setTime_t(time(0L));
- QString newMsgText = prepareIncomingMessage( message );
+ TQString newMsgText = prepareIncomingMessage( message );
kdDebug(YAHOO_GEN_DEBUG) << "Message after fixing font tags '" << newMsgText << "'" << endl;
@@ -2133,7 +2133,7 @@ void YahooAccount::slotChatMessageReceived( const QString &nick, const QString &
}
*/
-void YahooAccount::sendChatMessage( const Kopete::Message &msg, const QString &handle )
+void YahooAccount::sendChatMessage( const Kopete::Message &msg, const TQString &handle )
{
m_session->sendYahooChatMessage( YahooContact::prepareMessage( msg.escapedBody() ), handle );
}