summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/oscar/liboscar/client.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/protocols/oscar/liboscar/client.h
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/oscar/liboscar/client.h')
-rw-r--r--kopete/protocols/oscar/liboscar/client.h154
1 files changed, 77 insertions, 77 deletions
diff --git a/kopete/protocols/oscar/liboscar/client.h b/kopete/protocols/oscar/liboscar/client.h
index f5dc531e..5c619c33 100644
--- a/kopete/protocols/oscar/liboscar/client.h
+++ b/kopete/protocols/oscar/liboscar/client.h
@@ -23,8 +23,8 @@
#ifndef LIBOSCAR_CLIENT_H
#define LIBOSCAR_CLIENT_H
-#include <qobject.h>
-#include <qstring.h>
+#include <tqobject.h>
+#include <tqstring.h>
#include "kopete_export.h"
#include "rtf2html.h"
#include "transfer.h"
@@ -56,8 +56,8 @@ public:
class CodecProvider {
public:
virtual ~CodecProvider() {}
- virtual QTextCodec* codecForContact( const QString& contactName ) const = 0;
- virtual QTextCodec* codecForAccount() const = 0;
+ virtual TQTextCodec* codecForContact( const TQString& contactName ) const = 0;
+ virtual TQTextCodec* codecForAccount() const = 0;
};
enum ErrorCodes {
@@ -74,7 +74,7 @@ public:
EXTERNAL API
*************/
- Client(QObject *parent=0);
+ Client(TQObject *parent=0);
~Client();
/**
@@ -89,7 +89,7 @@ public:
* @param server the server to connect to - but this is also set on the connector used to construct the clientstream??
* @param auth indicate whether we're connecting to the authorizer or the bos server
*/
- void connectToServer( Connection *c, const QString& server, bool auth = true );
+ void connectToServer( Connection *c, const TQString& server, bool auth = true );
/**
* Start the login process for Oscar
@@ -97,14 +97,14 @@ public:
* @param user The user name to log in as.
* @param pass The password to use when logging in
*/
- void start( const QString &host, const uint port, const QString &userId, const QString &pass );
+ void start( const TQString &host, const uint port, const TQString &userId, const TQString &pass );
/** Logout and disconnect */
void close();
/** Set our status for AIM */
- void setStatus( AIMStatus status, const QString &message = QString::null );
+ void setStatus( AIMStatus status, const TQString &message = TQString::null );
/** Set our status for ICQ */
- void setStatus( DWORD status, const QString &message = QString::null );
+ void setStatus( DWORD status, const TQString &message = TQString::null );
/** Retrieve our user info */
UserDetails ourInfo() const;
@@ -114,35 +114,35 @@ public:
* \param groupName the name of the group to remove
* \return true if the group removal was successful
*/
- void removeGroup( const QString& groupName );
+ void removeGroup( const TQString& groupName );
/**
* Add a group from the contact list
* \param groupName the name of the group to add
* \return true if the group addition was successful
*/
- void addGroup( const QString& groupName );
+ void addGroup( const TQString& groupName );
/**
* Add a contact to the contact list
* \param contactName the screen name of the new contact to add
* \return true if the contact addition was successful
*/
- void addContact( const QString& contactName, const QString& groupName );
+ void addContact( const TQString& contactName, const TQString& groupName );
/**
* Remove a contact from the contact list
* \param contactName the screen name of the contact to remove
* \return true if the contact removal was successful
*/
- void removeContact( const QString &contactName );
+ void removeContact( const TQString &contactName );
/**
* Rename a group on the contact list
* \param oldGroupName the old group name
* \param newGroupName the new group name
*/
- void renameGroup( const QString& oldGroupName, const QString& newGroupName );
+ void renameGroup( const TQString& oldGroupName, const TQString& newGroupName );
/**
* Modify an SSI item on the SSI list
@@ -155,7 +155,7 @@ public:
* \param contact the contact to change
* \param newGroup the new group to move the contact to
*/
- void changeContactGroup( const QString& contact, const QString& newGroupName );
+ void changeContactGroup( const TQString& contact, const TQString& newGroupName );
/**
* Send a message to a contact
@@ -169,7 +169,7 @@ public:
* \param contactid the id of the contact to request auth from
* \param reason the reason for this authorization request
*/
- void requestAuth( const QString& contactid, const QString& reason );
+ void requestAuth( const TQString& contactid, const TQString& reason );
/**
* Grant or decline authorization to a contact
@@ -177,128 +177,128 @@ public:
* \param reason the reason to grant/decline authorization
* \param auth grant or decline authorization
*/
- void sendAuth( const QString& contactid, const QString& reason, bool auth=true );
+ void sendAuth( const TQString& contactid, const TQString& reason, bool auth=true );
/**
* Request full user info from an ICQ contact
* \param contactId the UIN of the contact to get info for
*/
- void requestFullInfo( const QString& contactId );
+ void requestFullInfo( const TQString& contactId );
/**
* Request short info for an ICQ contact
* \param contactId the UIN of the contact to get info for
*/
- void requestShortInfo( const QString& contactId );
+ void requestShortInfo( const TQString& contactId );
/**
* Send a warning to the OSCAR servers about a contact
* \param contact the contact to send the warning to
* \param anon indicate whether to do it anonymously
*/
- void sendWarning( const QString& contact, bool anonymous );
+ void sendWarning( const TQString& contact, bool anonymous );
/**
* Get the general ICQ info for a client
* \param contact the contact to get info for
*/
- ICQGeneralUserInfo getGeneralInfo( const QString& contact );
+ ICQGeneralUserInfo getGeneralInfo( const TQString& contact );
/**
* Get the work info for a contact
* \param contact the contact to get info for
*/
- ICQWorkUserInfo getWorkInfo( const QString& contact );
+ ICQWorkUserInfo getWorkInfo( const TQString& contact );
/**
* Get the email info for a contact
* \param contact the contact to get info for
*/
- ICQEmailInfo getEmailInfo( const QString& contact );
+ ICQEmailInfo getEmailInfo( const TQString& contact );
/**
* Get the additional info available for a contact
* \param contact the contact to get info for
*/
- ICQMoreUserInfo getMoreInfo( const QString& contact );
+ ICQMoreUserInfo getMoreInfo( const TQString& contact );
/**
* Get the interest info available for a contact
* \param contact the contact to get info for
*/
- ICQInterestInfo getInterestInfo( const QString& contact );
+ ICQInterestInfo getInterestInfo( const TQString& contact );
/**
* Get the short info available for an icq contact
* \param contact the contact to get info for
*/
- ICQShortInfo getShortInfo( const QString& contact );
+ ICQShortInfo getShortInfo( const TQString& contact );
/**
* Get the list of chat room exchanges we have
*/
- QValueList<int> chatExchangeList() const;
+ TQValueList<int> chatExchangeList() const;
/**
* Request the aim profile
* \param contact the contact to get info for
*/
- void requestAIMProfile( const QString& contact );
+ void requestAIMProfile( const TQString& contact );
/**
* Request the aim away message
* \param contact the contact to get info for
*/
- void requestAIMAwayMessage( const QString& contact );
+ void requestAIMAwayMessage( const TQString& contact );
/**
* Add the icq away message request to queue
* \param contact the contact to get info for
*/
- void addICQAwayMessageRequest( const QString& contact, ICQStatus contactStatus );
+ void addICQAwayMessageRequest( const TQString& contact, ICQStatus contactStatus );
/**
* Remove the icq away message request from queue
* \param contact the contact to get info for
*/
- void removeICQAwayMessageRequest( const QString& contact );
+ void removeICQAwayMessageRequest( const TQString& contact );
/** Request the extended status info */
- void requestStatusInfo( const QString& contact );
+ void requestStatusInfo( const TQString& contact );
//! Run a whitepages search
void whitePagesSearch( const ICQWPSearchInfo& info );
//! Run a UIN search
- void uinSearch( const QString& uin );
+ void uinSearch( const TQString& uin );
//! Update the user's AIM profile
- void updateProfile( const QString& profile );
+ void updateProfile( const TQString& profile );
//! Get buddy icon information for a person
- void requestBuddyIcon( const QString& user, const QByteArray& hash, BYTE hashType );
+ void requestBuddyIcon( const TQString& user, const TQByteArray& hash, BYTE hashType );
//! Start a server redirect for a different service
- void requestServerRedirect( WORD family, WORD e = 0, QByteArray c = QByteArray(),
- WORD instance = 0, const QString& room = QString::null );
+ void requestServerRedirect( WORD family, WORD e = 0, TQByteArray c = TQByteArray(),
+ WORD instance = 0, const TQString& room = TQString::null );
//! Start uploading a buddy icon
- void sendBuddyIcon( const QByteArray& imageData );
+ void sendBuddyIcon( const TQByteArray& imageData );
- void joinChatRoom( const QString& roomName, int exchange );
+ void joinChatRoom( const TQString& roomName, int exchange );
- void setIgnore( const QString& user, bool ignore );
+ void setIgnore( const TQString& user, bool ignore );
- void setVisibleTo( const QString& user, bool visible );
+ void setVisibleTo( const TQString& user, bool visible );
- void setInvisibleTo( const QString& user, bool invisible );
+ void setInvisibleTo( const TQString& user, bool invisible );
/** Accessors needed for login */
- QString host();
+ TQString host();
int port();
/** Send a typing notification */
- void sendTyping( const QString & contact, bool typing );
+ void sendTyping( const TQString & contact, bool typing );
/** Make a connection to the icon server */
void connectToIconServer();
@@ -306,7 +306,7 @@ public:
bool hasIconConnection() const;
/** We've finished chatting in a chat room, disconnect from it */
- void disconnectChatRoom( WORD exchange, const QString& room );
+ void disconnectChatRoom( WORD exchange, const TQString& room );
/** Set codec provider */
void setCodecProvider( CodecProvider* codecProvider );
@@ -320,7 +320,7 @@ public:
/**
* Print a debug statement
*/
- void debug( const QString &str );
+ void debug( const TQString &str );
/** Have we logged in yet? */
bool isActive() const;
@@ -332,29 +332,29 @@ public:
const Oscar::ClientVersion* version() const;
/** The current user's user ID */
- QString userId() const;
+ TQString userId() const;
/** The current user's password */
- QString password() const;
+ TQString password() const;
/** The current status message (a.k.a. away message) */
- QString statusMessage() const;
+ TQString statusMessage() const;
/** Change the current status message w/o changing status */
- void setStatusMessage( const QString &message );
+ void setStatusMessage( const TQString &message );
/** ICQ Settings */
bool isIcq() const;
void setIsIcq( bool isIcq );
/** Host's IP address */
- QCString ipAddress() const;
+ TQCString ipAddress() const;
/** Notify that a task error was received */
void notifyTaskError( const Oscar::SNAC& s, int errCode, bool fatal );
/** Notify that a socket error has occured */
- void notifySocketError( int errCode, const QString& msg );
+ void notifySocketError( int errCode, const TQString& msg );
signals:
/** CONNECTION EVENTS */
@@ -378,19 +378,19 @@ signals:
void haveSSIList();
/** a user is online. */
- void userIsOnline( const QString& );
+ void userIsOnline( const TQString& );
/** a user is offline. */
- void userIsOffline( const QString& );
+ void userIsOffline( const TQString& );
/** we've received a message */
void messageReceived( const Oscar::Message& );
/** we've received an authorization request */
- void authRequestReceived( const QString& contact, const QString& reason );
+ void authRequestReceived( const TQString& contact, const TQString& reason );
/** we've received an authorization reply */
- void authReplyReceived( const QString& contact, const QString& reason, bool auth );
+ void authReplyReceived( const TQString& contact, const TQString& reason, bool auth );
/**
* we've received an error from a task and need to notify somebody
@@ -400,37 +400,37 @@ signals:
/**
* we've received a socket error and need to notify somebody
*/
- void socketError( int errCode, const QString& msg );
+ void socketError( int errCode, const TQString& msg );
- void receivedIcqShortInfo( const QString& contact );
- void receivedIcqLongInfo( const QString& contact );
+ void receivedIcqShortInfo( const TQString& contact );
+ void receivedIcqLongInfo( const TQString& contact );
- void receivedProfile( const QString& contact, const QString& profile );
- void receivedAwayMessage( const QString& contact, const QString& message );
+ void receivedProfile( const TQString& contact, const TQString& profile );
+ void receivedAwayMessage( const TQString& contact, const TQString& message );
void receivedAwayMessage( const Oscar::Message& message );
- void receivedUserInfo( const QString& contact, const UserDetails& details );
+ void receivedUserInfo( const TQString& contact, const UserDetails& details );
/** We warned a user */
- void userWarned( const QString& contact, Q_UINT16 increase, Q_UINT16 newLevel );
+ void userWarned( const TQString& contact, Q_UINT16 increase, Q_UINT16 newLevel );
/** Search signals */
void gotSearchResults( const ICQSearchResult& );
void endOfSearch( int);
/* Typing signals */
- void userStartedTyping( const QString& contact );
- void userStoppedTyping( const QString& contact );
+ void userStartedTyping( const TQString& contact );
+ void userStoppedTyping( const TQString& contact );
/* Buddy icons */
- void haveIconForContact( const QString&, QByteArray iconData );
+ void haveIconForContact( const TQString&, TQByteArray iconData );
void iconServerConnected();
void iconNeedsUploading();
/* Chat rooms */
void chatNavigationConnected();
- void chatRoomConnected( WORD, const QString& );
- void userJoinedChat( Oscar::WORD, const QString& room, const QString& contact );
- void userLeftChat( Oscar::WORD, const QString& room, const QString& contact );
+ void chatRoomConnected( WORD, const TQString& );
+ void userJoinedChat( Oscar::WORD, const TQString& room, const TQString& contact );
+ void userLeftChat( Oscar::WORD, const TQString& room, const TQString& contact );
/* service redirection */
void redirectionFinished( WORD );
@@ -459,7 +459,7 @@ protected slots:
void serviceSetupFinished();
/** we have icq info for a contact */
- void receivedIcqInfo( const QString& contact, unsigned int type );
+ void receivedIcqInfo( const TQString& contact, unsigned int type );
/** we have normal user info for a contact */
void receivedInfo( Q_UINT16 sequence );
@@ -467,9 +467,9 @@ protected slots:
/** received a message of some kind */
void receivedMessage( const Oscar::Message& msg );
- void offlineUser( const QString&, const UserDetails& );
+ void offlineUser( const TQString&, const UserDetails& );
- void haveServerForRedirect( const QString& host, const QByteArray& cookie, WORD family );
+ void haveServerForRedirect( const TQString& host, const TQByteArray& cookie, WORD family );
void serverRedirectFinished();
void checkRedirectionQueue( WORD );
@@ -477,15 +477,15 @@ protected slots:
/**
* Set the list of chat room exchanges we have
*/
- void setChatExchangeList( const QValueList<int>& exchanges );
+ void setChatExchangeList( const TQValueList<int>& exchanges );
/**
* set up the connection to a chat room
*/
- void setupChatConnection( WORD, QByteArray, WORD, const QString& );
+ void setupChatConnection( WORD, TQByteArray, WORD, const TQString& );
- void determineDisconnection( int, const QString& );
+ void determineDisconnection( int, const TQString& );
void nextICQAwayMessageRequest();
@@ -497,14 +497,14 @@ private:
/** Delete the static tasks */
void deleteStaticTasks();
- Connection* createConnection( const QString& host, const QString& port );
+ Connection* createConnection( const TQString& host, const TQString& port );
/**
* Request the icq away message
* \param contact the contact to get info for
*/
//TODO only made a default for testing w/o frontend
- void requestICQAwayMessage( const QString& contact, ICQStatus contactStatus = ICQAway );
+ void requestICQAwayMessage( const TQString& contact, ICQStatus contactStatus = ICQAway );
private:
class ClientPrivate;