summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/yahoo/libkyahoo/client.h
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/yahoo/libkyahoo/client.h')
-rw-r--r--kopete/protocols/yahoo/libkyahoo/client.h182
1 files changed, 91 insertions, 91 deletions
diff --git a/kopete/protocols/yahoo/libkyahoo/client.h b/kopete/protocols/yahoo/libkyahoo/client.h
index f4a3fef5..662c81ff 100644
--- a/kopete/protocols/yahoo/libkyahoo/client.h
+++ b/kopete/protocols/yahoo/libkyahoo/client.h
@@ -22,7 +22,7 @@
#ifndef LIBYAHOO_CLIENT_H
#define LIBYAHOO_CLIENT_H
-#include <qobject.h>
+#include <tqobject.h>
#include <kurl.h>
#include "transfer.h"
@@ -52,14 +52,14 @@ Q_OBJECT
enum LogLevel { Debug, Info, Notice, Warning, Error, Critical };
- Client(QObject *parent=0);
+ Client(TQObject *parent=0);
~Client();
/**
* Set the Yahoo Id of the account
* @param username The Yahoo Id
*/
- void setUserId( const QString& userName );
+ void setUserId( const TQString& userName );
/**
* Set the picture checksum
@@ -76,7 +76,7 @@ Q_OBJECT
* @param userId The yahoo ID that will be connected.
* @param pass The password.
*/
- void connect( const QString &host, const uint port, const QString &userId, const QString &pass );
+ void connect( const TQString &host, const uint port, const TQString &userId, const TQString &pass );
/** Cancel active login attemps */
void cancelConnect();
@@ -88,10 +88,10 @@ Q_OBJECT
int error();
/** Returns a description of the error */
- QString errorString();
+ TQString errorString();
/** Returns information about what went wrong */
- QString errorInformation();
+ TQString errorInformation();
/**
* Specifies the status we connect with.
@@ -107,10 +107,10 @@ Q_OBJECT
* will change the status message after the login.
* @param msg the status message to connect with
*/
- void setStatusMessageOnConnect( const QString &msg );
+ void setStatusMessageOnConnect( const TQString &msg );
/** Accessors needed for login */
- QString host();
+ TQString host();
int port();
/**
@@ -118,27 +118,27 @@ Q_OBJECT
* @param to the buddy that should be notified
* @param typing true if there is typing activity, false if not
*/
- void sendTyping( const QString &to, bool typing );
+ void sendTyping( const TQString &to, bool typing );
/**
* Send a Message
* @param to the buddy that should receive the message
* @param msg the message
*/
- void sendMessage( const QString &to, const QString &msg );
+ void sendMessage( const TQString &to, const TQString &msg );
/**
* Register / Unregister a chatsession
* @param to the buddy, the chatsession belongs to
* @param close if true, the chatsession will be closed, if false, it will be opened
*/
- void setChatSessionState( const QString &to, bool close );
+ void setChatSessionState( const TQString &to, bool close );
/**
* Send a Buzz
* @param to the buddy that should receive the buzz
*/
- void sendBuzz( const QString &to );
+ void sendBuzz( const TQString &to );
/**
* Change our status
@@ -146,14 +146,14 @@ Q_OBJECT
* @param message the status message that will be set
* @param type Yahoo::StatusTypeAvailable means that the user is available, Yahoo::StatusTypeAway means that the user is away from the keyboard
*/
- void changeStatus(Yahoo::Status status, const QString &message, Yahoo::StatusType type);
+ void changeStatus(Yahoo::Status status, const TQString &message, Yahoo::StatusType type);
/**
* Set the verification word that is needed for a account verification after
* too many wrong login attempts.
* @param word the verification word
*/
- void setVerificationWord( const QString &word );
+ void setVerificationWord( const TQString &word );
/**
* Add a buddy to the contact list
@@ -161,14 +161,14 @@ Q_OBJECT
* @param group the group where the buddy will be placed
* @param message the message that will be sent to the buddy along the authorization request
*/
- void addBuddy( const QString &userId, const QString &group, const QString &message = QString::fromLatin1("Please add me") );
+ void addBuddy( const TQString &userId, const TQString &group, const TQString &message = TQString::fromLatin1("Please add me") );
/**
* Remove a buddy from the contact list
* @param userId the yahoo ID of the buddy that should be removed
* @param group the group where the buddy belongs to
*/
- void removeBuddy( const QString &userId, const QString &group );
+ void removeBuddy( const TQString &userId, const TQString &group );
/**
* Move a buddy into another group
@@ -176,7 +176,7 @@ Q_OBJECT
* @param oldGroup the group where the buddy belongs to
* @param newGroup the group where the buddy will be placed
*/
- void moveBuddy( const QString &userId, const QString &oldGroup, const QString &newGroup );
+ void moveBuddy( const TQString &userId, const TQString &oldGroup, const TQString &newGroup );
/**
* Change the stealth status of a buddy
@@ -184,13 +184,13 @@ Q_OBJECT
* @param mode defines the Stealth mode that is changed. That can be "Appear Offline", "Appear Online" or "Apper permanently offline"
* @param state the status of the specified Stealth mode. Active, Not Active or Clear
*/
- void stealthContact( QString const &userId, Yahoo::StealthMode mode, Yahoo::StealthStatus state );
+ void stealthContact( TQString const &userId, Yahoo::StealthMode mode, Yahoo::StealthStatus state );
/**
* Request the buddy's picture
* @param userId the yahoo ID of the buddy
*/
- void requestPicture( const QString &userId );
+ void requestPicture( const TQString &userId );
/**
* Download the buddy's picture
@@ -198,7 +198,7 @@ Q_OBJECT
* @param url the url of the picture
* @param checksum the checksum of the picture
*/
- void downloadPicture( const QString &userId, KURL url, int checksum );
+ void downloadPicture( const TQString &userId, KURL url, int checksum );
/**
* Send our picture
@@ -211,7 +211,7 @@ Q_OBJECT
* @param userId the yahoo ID of the buddy. Can be a null string if the picture has changed.
* @param checksum the checksum of the picture
*/
- void sendPictureChecksum( const QString &userId, int checksum );
+ void sendPictureChecksum( const TQString &userId, int checksum );
/**
* Send information about our picture
@@ -219,7 +219,7 @@ Q_OBJECT
* @param url the url of our picture
* @param checksum the checksum of the picture
*/
- void sendPictureInformation( const QString &userId, const QString &url, int checksum );
+ void sendPictureInformation( const TQString &userId, const TQString &url, int checksum );
/**
* Notify the buddies about our new status
@@ -231,25 +231,25 @@ Q_OBJECT
* Send a response to the webcam invite ( Accept / Decline )
* @param userId the yahoo ID of the sender
*/
- void requestWebcam( const QString &userId );
+ void requestWebcam( const TQString &userId );
/**
* Stop receiving of webcam
* @param userId the yahoo ID of the sender
*/
- void closeWebcam( const QString &userId );
+ void closeWebcam( const TQString &userId );
/**
* Invite the user to view your Webcam
* @param userId the yahoo ID of the receiver
*/
- void sendWebcamInvite( const QString &userId );
+ void sendWebcamInvite( const TQString &userId );
/**
* transmit a new image to the watchers
* @param image the image data
*/
- void sendWebcamImage( const QByteArray &image );
+ void sendWebcamImage( const TQByteArray &image );
/** Stop the webcam transmission */
void closeOutgoingWebcam();
@@ -258,7 +258,7 @@ Q_OBJECT
* Allow a buddy to watch the cam
* @param userId the yahoo ID of the receiver
*/
- void grantWebcamAccess( const QString &userId );
+ void grantWebcamAccess( const TQString &userId );
/**
* Invite buddies to a conference
@@ -266,7 +266,7 @@ Q_OBJECT
* @param members a list of members that are invited to the conference
* @param msg the invite message
*/
- void inviteConference( const QString &room, const QStringList &members, const QString &msg );
+ void inviteConference( const TQString &room, const TQStringList &members, const TQString &msg );
/**
* Invite buddies to a already existing conference
@@ -275,14 +275,14 @@ Q_OBJECT
* @param members a list of members that are already in the conference
* @param msg the invite message
*/
- void addInviteConference( const QString &room, const QStringList &who, const QStringList &members, const QString &msg );
+ void addInviteConference( const TQString &room, const TQStringList &who, const TQStringList &members, const TQString &msg );
/**
* Join a conference
* @param room the name of the conference
* @param members a list of members that are already in the conference
*/
- void joinConference( const QString &room, const QStringList &members );
+ void joinConference( const TQString &room, const TQStringList &members );
/**
* Decline to join a conference
@@ -290,14 +290,14 @@ Q_OBJECT
* @param members a list of members that are in the conference
* @param msg the reason why we don't want to join
*/
- void declineConference( const QString &room, const QStringList &members, const QString &msg );
+ void declineConference( const TQString &room, const TQStringList &members, const TQString &msg );
/**
* Leave the conference
* @param room the name of the conference
* @param members a list of members that are in the conference
*/
- void leaveConference( const QString &room, const QStringList &members );
+ void leaveConference( const TQString &room, const TQStringList &members );
/**
* Send a message to the conference
@@ -305,7 +305,7 @@ Q_OBJECT
* @param members a list of members that are in the conference
* @param msg the message
*/
- void sendConferenceMessage( const QString &room, const QStringList &members, const QString &msg );
+ void sendConferenceMessage( const TQString &room, const TQStringList &members, const TQString &msg );
/**
* Send a authorization request response
@@ -313,7 +313,7 @@ Q_OBJECT
* @param accept true, if the user is allowed to see our status, false if not
* @param msg the reason for our decision
*/
- void sendAuthReply( const QString &userId, bool accept, const QString &msg );
+ void sendAuthReply( const TQString &userId, bool accept, const TQString &msg );
/**
* Fetches all entries of the YAB
@@ -347,7 +347,7 @@ Q_OBJECT
* @param msg a description of the file to be sent
* @param url the location of the file to be sent
*/
- void sendFile( unsigned int transferId, const QString &userId, const QString &msg, KURL url );
+ void sendFile( unsigned int transferId, const TQString &userId, const TQString &msg, KURL url );
/**
* Receive a file from a buddy
@@ -356,14 +356,14 @@ Q_OBJECT
* @param remoteURL the url of the file
* @param localURL the location where the file should be stored
*/
- void receiveFile( unsigned int transferId, const QString &userId, KURL remoteURL, KURL localURL );
+ void receiveFile( unsigned int transferId, const TQString &userId, KURL remoteURL, KURL localURL );
/**
* Reject a file offered by a buddy
* @param userId yahoo ID of the sender
* @param remoteURL the url of the file
*/
- void rejectFile( const QString &userId, KURL remoteURL );
+ void rejectFile( const TQString &userId, KURL remoteURL );
/**
* Canceled a filetransfer
@@ -394,7 +394,7 @@ Q_OBJECT
/**
* Send a chat message
*/
- void sendYahooChatMessage( const QString &msg, const QString &handle );
+ void sendYahooChatMessage( const TQString &msg, const TQString &handle );
/*************
INTERNAL (FOR USE BY TASKS) METHODS
@@ -408,13 +408,13 @@ Q_OBJECT
/**
* Print a debug statement
*/
- void debug( const QString &str );
+ void debug( const TQString &str );
/** The current user's user ID */
- QString userId();
+ TQString userId();
/** The current user's password */
- QString password();
+ TQString password();
/** current Session ID */
uint sessionID();
@@ -445,20 +445,20 @@ Q_OBJECT
/**
* Accessors to the cookies
*/
- QString yCookie();
- QString tCookie();
- QString cCookie();
+ TQString yCookie();
+ TQString tCookie();
+ TQString cCookie();
/**
* Error
*/
- void notifyError( const QString &info, const QString &errorString, LogLevel level );
+ void notifyError( const TQString &info, const TQString &errorString, LogLevel level );
signals:
/** CONNECTION EVENTS */
/**
* Notifies that the login process has succeeded.
*/
- void loggedIn( int, const QString& );
+ void loggedIn( int, const TQString& );
/**
* Notifies that the login process has failed
@@ -482,91 +482,91 @@ Q_OBJECT
/**
* Notifies about our buddies and groups
*/
- void gotBuddy( const QString &, const QString &, const QString & );
+ void gotBuddy( const TQString &, const TQString &, const TQString & );
/**
* Notifies about adding buddies
*/
- void buddyAddResult( const QString &, const QString &, bool );
+ void buddyAddResult( const TQString &, const TQString &, bool );
/**
* Notifies about removing buddies
*/
- void buddyRemoveResult( const QString &, const QString &, bool );
+ void buddyRemoveResult( const TQString &, const TQString &, bool );
/**
* Notifies about buddies changing groups
*/
- void buddyChangeGroupResult( const QString &, const QString &, bool );
+ void buddyChangeGroupResult( const TQString &, const TQString &, bool );
/**
* Notifies about the status of online buddies
*/
- void statusChanged( const QString&, int, const QString&, int, int, int );
+ void statusChanged( const TQString&, int, const TQString&, int, int, int );
/**
* Notifies about the stealth status of buddies
*/
- void stealthStatusChanged( const QString &, Yahoo::StealthStatus );
+ void stealthStatusChanged( const TQString &, Yahoo::StealthStatus );
/**
* Notifies about mails
*/
- void mailNotify( const QString&, const QString&, int );
+ void mailNotify( const TQString&, const TQString&, int );
/**
* We got a new message
*/
- void gotIm( const QString&, const QString&, long, int );
+ void gotIm( const TQString&, const TQString&, long, int );
/**
* We got a new system message
*/
- void systemMessage( const QString& );
+ void systemMessage( const TQString& );
/**
* The buddy is typing a message
*/
- void typingNotify( const QString &, int );
+ void typingNotify( const TQString &, int );
/**
* The buddy has invited us to view his webcam
*/
- void gotWebcamInvite(const QString &);
+ void gotWebcamInvite(const TQString &);
/**
* Notifies about a BUZZ notification
*/
- void gotBuzz( const QString &, long );
+ void gotBuzz( const TQString &, long );
/**
* Notifies about a changed picture status
*/
- void pictureStatusNotify( const QString &, int );
+ void pictureStatusNotify( const TQString &, int );
/**
* Notifies about a picture checksum
*/
- void pictureChecksumNotify( const QString &, int );
+ void pictureChecksumNotify( const TQString &, int );
/**
* Notifies about a picture
*/
- void pictureInfoNotify( const QString &, KURL, int );
+ void pictureInfoNotify( const TQString &, KURL, int );
/**
* The iconLoader has successfully downloaded a picutre
*/
- void pictureDownloaded( const QString &, const QByteArray &, int );
+ void pictureDownloaded( const TQString &, const TQByteArray &, int );
/**
* A Buddy asks for our picture
*/
- void pictureRequest( const QString & );
+ void pictureRequest( const TQString & );
/**
* Information about the picture upload
*/
- void pictureUploaded( const QString &, int );
+ void pictureUploaded( const TQString &, int );
/**
* We've received a webcam image from a buddy
*/
- void webcamImageReceived( const QString &, const QPixmap &);
+ void webcamImageReceived( const TQString &, const TQPixmap &);
/**
* The requested Webcam is not available
*/
- void webcamNotAvailable( const QString & );
+ void webcamNotAvailable( const TQString & );
/**
* The connection to the webcam was closed
*/
- void webcamClosed( const QString &, int );
+ void webcamClosed( const TQString &, int );
/**
* The webcamtransmission is paused
*/
- void webcamPaused(const QString&);
+ void webcamPaused(const TQString&);
/**
* The webcam connection is ready for transmission
*/
@@ -578,47 +578,47 @@ Q_OBJECT
/**
* A new buddy watches the cam
*/
- void webcamViewerJoined( const QString & );
+ void webcamViewerJoined( const TQString & );
/**
* A buddy no longer watches the cam
*/
- void webcamViewerLeft( const QString & );
+ void webcamViewerLeft( const TQString & );
/**
* A buddy wants to watch the cam
*/
- void webcamViewerRequest( const QString & );
+ void webcamViewerRequest( const TQString & );
/**
* A buddy invited us to a conference
*/
- void gotConferenceInvite( const QString &, const QString &, const QString &, const QStringList & );
+ void gotConferenceInvite( const TQString &, const TQString &, const TQString &, const TQStringList & );
/**
* A conference message was received
*/
- void gotConferenceMessage( const QString &, const QString &, const QString & );
+ void gotConferenceMessage( const TQString &, const TQString &, const TQString & );
/**
* A buddy joined the conference
*/
- void confUserJoined( const QString &, const QString & );
+ void confUserJoined( const TQString &, const TQString & );
/**
* A buddy left the conference
*/
- void confUserLeft( const QString &, const QString & );
+ void confUserLeft( const TQString &, const TQString & );
/**
* A buddy declined to join the conference
*/
- void confUserDeclined( const QString &, const QString &, const QString & );
+ void confUserDeclined( const TQString &, const TQString &, const TQString & );
/**
* A buddy accepted our authorization request
*/
- void authorizationAccepted( const QString & );
+ void authorizationAccepted( const TQString & );
/**
* A buddy rejected our authorization request
*/
- void authorizationRejected( const QString &, const QString & );
+ void authorizationRejected( const TQString &, const TQString & );
/**
* A buddy requests authorization
*/
- void gotAuthorizationRequest( const QString &, const QString &, const QString & );
+ void gotAuthorizationRequest( const TQString &, const TQString &, const TQString & );
/**
* A revision of the Yahoo Addressbook was received
*/
@@ -630,7 +630,7 @@ Q_OBJECT
/**
* An error occurred while saving a Yahoo Addressbook entry
*/
- void modifyYABEntryError( YABEntry *, const QString & );
+ void modifyYABEntryError( YABEntry *, const TQString & );
/**
* number of Bytes transferred for FileTransfer id
*/
@@ -642,7 +642,7 @@ Q_OBJECT
/**
* An error occurred during the filetransfer
*/
- void fileTransferError( unsigned int, int, const QString & );
+ void fileTransferError( unsigned int, int, const TQString & );
/**
* filetransfer canceled
*/
@@ -650,32 +650,32 @@ Q_OBJECT
/**
* A buddy is trying to send us a file
*/
- void incomingFileTransfer( const QString &, const QString &, long, const QString &,
- const QString &, unsigned long, const QPixmap & );
+ void incomingFileTransfer( const TQString &, const TQString &, long, const TQString &,
+ const TQString &, unsigned long, const TQPixmap & );
/**
* We have received the list of yahoo chat categories
*/
- void gotYahooChatCategories( const QDomDocument & );
+ void gotYahooChatCategories( const TQDomDocument & );
/**
* We have received the list of chatrooms for the categories
*/
- void gotYahooChatRooms( const Yahoo::ChatCategory &, const QDomDocument & );
+ void gotYahooChatRooms( const Yahoo::ChatCategory &, const TQDomDocument & );
/**
* We have joined a chatroom
*/
- void chatRoomJoined( int, int, const QString &, const QString & );
+ void chatRoomJoined( int, int, const TQString &, const TQString & );
/**
* A buddy has joined a chatroom
*/
- void chatBuddyHasJoined( const QString &, const QString &, bool );
+ void chatBuddyHasJoined( const TQString &, const TQString &, bool );
/**
* A buddy has left a chatroom
*/
- void chatBuddyHasLeft( const QString &, const QString & );
+ void chatBuddyHasLeft( const TQString &, const TQString & );
/**
* We have received a message in a chatroom
*/
- void chatMessageReceived( const QString &, const QString &, const QString & );
+ void chatMessageReceived( const TQString &, const TQString &, const TQString & );
protected slots:
// INTERNAL, FOR USE BY TASKS' finished() SIGNALS //
void lt_loginFinished();
@@ -687,7 +687,7 @@ Q_OBJECT
/**
* Used by tasks to identify a response to a login attempt
*/
- void slotLoginResponse( int, const QString& );
+ void slotLoginResponse( int, const TQString& );
/**
* Used by the client stream to notify errors to upper layers.
@@ -726,7 +726,7 @@ Q_OBJECT
ClientPrivate* d;
KNetworkConnector *m_connector;
- QTimer *m_pingTimer;
+ TQTimer *m_pingTimer;
};
#endif