summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/jabber/jabberclient.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/jabber/jabberclient.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/jabber/jabberclient.h')
-rw-r--r--kopete/protocols/jabber/jabberclient.h70
1 files changed, 35 insertions, 35 deletions
diff --git a/kopete/protocols/jabber/jabberclient.h b/kopete/protocols/jabber/jabberclient.h
index 7cd33e02..4db2975f 100644
--- a/kopete/protocols/jabber/jabberclient.h
+++ b/kopete/protocols/jabber/jabberclient.h
@@ -22,7 +22,7 @@
#ifndef JABBERCLIENT_H
#define JABBERCLIENT_H
-#include <qobject.h>
+#include <tqobject.h>
// include these because of namespace reasons
#include <im.h>
@@ -84,7 +84,7 @@ public:
* @param password Password to authenticate with.
* @param auth True if authentication should be done, false if not.
*/
- ErrorCode connect ( const XMPP::Jid &jid, const QString &password, bool auth = true );
+ ErrorCode connect ( const XMPP::Jid &jid, const TQString &password, bool auth = true );
/**
* Disconnect from Jabber server.
@@ -191,7 +191,7 @@ public:
* This only has an effect if the old protocol (@ref useXMPP09)
* has been enabled. Default is false.
*/
- void setOverrideHost ( bool flag, const QString &server = "", int port = 5222 );
+ void setOverrideHost ( bool flag, const TQString &server = "", int port = 5222 );
/**
* Returns if the server name and port are overridden.
*/
@@ -213,12 +213,12 @@ public:
* @param flag Whether to enable file transfers.
* @param localAddress Local address to receive file transfers at. Will be determined automatically if not specified.
*/
- void setFileTransfersEnabled ( bool flag, const QString &localAddress = QString::null );
+ void setFileTransfersEnabled ( bool flag, const TQString &localAddress = TQString::null );
/**
* Returns the address of the local interface.
*/
- QString localAddress () const;
+ TQString localAddress () const;
/**
* Returns if file transfers are enabled.
@@ -228,57 +228,57 @@ public:
/**
* Set client name.
*/
- void setClientName ( const QString &clientName );
+ void setClientName ( const TQString &clientName );
/**
* Return client name.
*/
- QString clientName () const;
+ TQString clientName () const;
/**
* Set client version.
*/
- void setClientVersion ( const QString &clientVersion );
+ void setClientVersion ( const TQString &clientVersion );
/**
* Return client version.
*/
- QString clientVersion () const;
+ TQString clientVersion () const;
/**
* Set operating system name.
*/
- void setOSName ( const QString &osName );
+ void setOSName ( const TQString &osName );
/**
* Return operating system name.
*/
- QString osName () const;
+ TQString osName () const;
/**
* Set the caps(JEP-0115: Entity capabilities) node name.
* @param node Node name.
*/
- void setCapsNode( const QString &capsNode );
+ void setCapsNode( const TQString &capsNode );
/**
* Return the caps node name for this client.
* @return the caps node name.
*/
- QString capsNode() const;
+ TQString capsNode() const;
/**
* Set the caps(JEP-0115: Entity capabilities) node version.
* @param capsVersion the node version.
*/
- void setCapsVersion( const QString &capsVersion );
+ void setCapsVersion( const TQString &capsVersion );
/**
* Return the caps version for this client.
* @return the caps version.
*/
- QString capsVersion() const;
+ TQString capsVersion() const;
/**
* Return the caps extension list for this client.
* @return A string containing all extensions separated by space.
*/
- QString capsExt() const;
+ TQString capsExt() const;
/**
* Set the disco Identity information for this client.
@@ -302,11 +302,11 @@ public:
/**
* Set timezone information. Default is UTC.
*/
- void setTimeZone ( const QString &timeZoneName, int timeZoneOffset );
+ void setTimeZone ( const TQString &timeZoneName, int timeZoneOffset );
/**
* Return timezone name.
*/
- QString timeZoneName () const;
+ TQString timeZoneName () const;
/**
* Return timezone offset.
*/
@@ -357,7 +357,7 @@ public:
* @param room Name of room to join.
* @param nick Nick name you want to join with.
*/
- void joinGroupChat ( const QString &host, const QString &room, const QString &nick );
+ void joinGroupChat ( const TQString &host, const TQString &room, const TQString &nick );
/**
* Join a group chat that require a password.
@@ -366,23 +366,23 @@ public:
* @param nick Nick name you want to join with.
* @param password The password to join the room.
*/
- void joinGroupChat ( const QString &host, const QString &room, const QString &nick, const QString &password );
+ void joinGroupChat ( const TQString &host, const TQString &room, const TQString &nick, const TQString &password );
/**
* Leave a group chat.
* @param host Node to leave room at.
* @param room Name of room to leave.
*/
- void leaveGroupChat ( const QString &host, const QString &room );
+ void leaveGroupChat ( const TQString &host, const TQString &room );
/**
* change the status of a group chat
*/
- void setGroupChatStatus(const QString &host, const QString &room, const XMPP::Status &);
+ void setGroupChatStatus(const TQString &host, const TQString &room, const XMPP::Status &);
/**
* change the nick in a group chat
*/
- void changeGroupChatNick(const QString &host, const QString &room, const QString &nick, const XMPP::Status &status =XMPP::Status());
+ void changeGroupChatNick(const TQString &host, const TQString &room, const TQString &nick, const XMPP::Status &status =XMPP::Status());
/**
* Send a message.
@@ -392,7 +392,7 @@ public:
/**
* Send raw packet to the server.
*/
- void send ( const QString &packet );
+ void send ( const TQString &packet );
/**
* Request the roster from the Jabber server.
@@ -496,19 +496,19 @@ signals:
/**
* An error was encountered joining or processing a group chat.
*/
- void groupChatError ( const XMPP::Jid &jid, int error, const QString &reason );
+ void groupChatError ( const XMPP::Jid &jid, int error, const TQString &reason );
/**
* New subscription request.
*/
- void subscription ( const XMPP::Jid &jid, const QString &type );
+ void subscription ( const XMPP::Jid &jid, const TQString &type );
/**
* Dispatches a debug message. Debug messages
* include incoming and outgoing XML packets
* as well as internal status messages.
*/
- void debugMessage ( const QString &message );
+ void debugMessage ( const TQString &message );
private:
class Private;
@@ -526,11 +526,11 @@ private:
/**
* Add an address that the S5B server should handle.
*/
- void addS5BServerAddress ( const QString &address );
+ void addS5BServerAddress ( const TQString &address );
/**
* Remove an address that the S5B server currently handles.
*/
- void removeS5BServerAddress ( const QString &address );
+ void removeS5BServerAddress ( const TQString &address );
private slots:
/* S5B server object has been destroyed. */
@@ -558,7 +558,7 @@ private slots:
void slotTLSHandshaken ();
/* Called from Psi: roster request finished */
- void slotRosterRequestFinished ( bool success, int statusCode, const QString &statusString );
+ void slotRosterRequestFinished ( bool success, int statusCode, const TQString &statusString );
/* Called from Psi: incoming file transfer */
void slotIncomingFileTransfer ();
@@ -582,18 +582,18 @@ private slots:
void slotReceivedMessage (const Message &);
/* Called from Psi: debug messages from the backend. */
- void slotPsiDebug (const QString & msg);
- void slotIncomingXML (const QString &msg);
- void slotOutgoingXML (const QString &msg);
+ void slotPsiDebug (const TQString & msg);
+ void slotIncomingXML (const TQString &msg);
+ void slotOutgoingXML (const TQString &msg);
/* Slots for handling group chats. */
void slotGroupChatJoined (const Jid & jid);
void slotGroupChatLeft (const Jid & jid);
void slotGroupChatPresence (const Jid & jid, const Status & status);
- void slotGroupChatError (const Jid & jid, int error, const QString & reason);
+ void slotGroupChatError (const Jid & jid, int error, const TQString & reason);
/* Incoming subscription request. */
- void slotSubscription (const Jid & jid, const QString & type);
+ void slotSubscription (const Jid & jid, const TQString & type);
};