summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/msn/msnaccount.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/msn/msnaccount.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/msn/msnaccount.h')
-rw-r--r--kopete/protocols/msn/msnaccount.h82
1 files changed, 41 insertions, 41 deletions
diff --git a/kopete/protocols/msn/msnaccount.h b/kopete/protocols/msn/msnaccount.h
index 7fbee16b..5f7352e3 100644
--- a/kopete/protocols/msn/msnaccount.h
+++ b/kopete/protocols/msn/msnaccount.h
@@ -19,7 +19,7 @@
#ifndef MSNACCOUNT_H
#define MSNACCOUNT_H
-#include <qobject.h>
+#include <tqobject.h>
#include "kopetepasswordedaccount.h"
@@ -42,7 +42,7 @@ class MSNAccount : public Kopete::PasswordedAccount
Q_OBJECT
public:
- MSNAccount( MSNProtocol *parent, const QString &accountID, const char *name = 0L );
+ MSNAccount( MSNProtocol *parent, const TQString &accountID, const char *name = 0L );
/*
* return the menu for this account
@@ -53,13 +53,13 @@ public:
/**
* change the publicName to this new name
*/
- void setPublicName( const QString &name );
- void setPersonalMessage(MSNProtocol::PersonalMessageType type, const QString &personalMessage );
+ void setPublicName( const TQString &name );
+ void setPersonalMessage(MSNProtocol::PersonalMessageType type, const TQString &personalMessage );
/**
* Returns the address of the MSN server
*/
- QString serverName();
+ TQString serverName();
/**
* Returns the address of the MSN server port
@@ -77,17 +77,17 @@ public:
/**
* Return the picture url.
*/
- QString pictureUrl();
+ TQString pictureUrl();
/**
* Set the picture url.
*/
- void setPictureUrl(const QString &url);
+ void setPictureUrl(const TQString &url);
/**
* return the <msnobj> tag of the display picture
*/
- QString pictureObject();
+ TQString pictureObject();
/**
* reset the <msnobj>. This method should be called if the displayimage has changed
@@ -107,25 +107,25 @@ public:
* Return the client ID for the myself contact of this account.
* It is dynamic to see if we really have a webcam or not.
*/
- QString myselfClientId() const;
+ TQString myselfClientId() const;
public slots:
- virtual void connectWithPassword( const QString &password ) ;
+ virtual void connectWithPassword( const TQString &password ) ;
virtual void disconnect() ;
- virtual void setOnlineStatus( const Kopete::OnlineStatus &status , const QString &reason = QString::null);
+ virtual void setOnlineStatus( const Kopete::OnlineStatus &status , const TQString &reason = TQString::null);
/**
* Ask to the account to create a new chat session
*/
- void slotStartChatSession( const QString& handle );
+ void slotStartChatSession( const TQString& handle );
/**
* Single slot to display error message.
*/
- void slotErrorMessageReceived( int type, const QString &msg );
+ void slotErrorMessageReceived( int type, const TQString &msg );
protected:
- virtual bool createContact( const QString &contactId, Kopete::MetaContact *parentContact );
+ virtual bool createContact( const TQString &contactId, Kopete::MetaContact *parentContact );
private slots:
@@ -144,36 +144,36 @@ private slots:
// notifySocket related
void slotStatusChanged( const Kopete::OnlineStatus &status );
void slotNotifySocketClosed();
- void slotPersonalMessageChanged(const QString& personalMessage);
- void slotContactRemoved(const QString& handle, const QString& list, const QString& contactGuid, const QString& groupGuid );
- void slotContactAdded(const QString& handle, const QString& list, const QString& publicName, const QString& contactGuid, const QString &groupGuid );
- void slotContactListed( const QString& handle, const QString& publicName, const QString &contactGuid, uint lists, const QString& groups );
+ void slotPersonalMessageChanged(const TQString& personalMessage);
+ void slotContactRemoved(const TQString& handle, const TQString& list, const TQString& contactGuid, const TQString& groupGuid );
+ void slotContactAdded(const TQString& handle, const TQString& list, const TQString& publicName, const TQString& contactGuid, const TQString &groupGuid );
+ void slotContactListed( const TQString& handle, const TQString& publicName, const TQString &contactGuid, uint lists, const TQString& groups );
void slotNewContactList();
/**
* The group has successful renamed in the server
* groupName: is new new group name
*/
- void slotGroupRenamed(const QString &groupGuid, const QString& groupName );
+ void slotGroupRenamed(const TQString &groupGuid, const TQString& groupName );
/**
* A new group was created on the server (or received durring an LSG command)
*/
- void slotGroupAdded( const QString& groupName, const QString &groupGuid );
+ void slotGroupAdded( const TQString& groupName, const TQString &groupGuid );
/**
* Group was removed from the server
*/
- void slotGroupRemoved( const QString &groupGuid );
+ void slotGroupRemoved( const TQString &groupGuid );
/**
* Incoming RING command: connect to the Switchboard server and send
* the startChat signal
*/
- void slotCreateChat( const QString& sessionID, const QString& address, const QString& auth,
- const QString& handle, const QString& publicName );
+ void slotCreateChat( const TQString& sessionID, const TQString& address, const TQString& auth,
+ const TQString& handle, const TQString& publicName );
/**
* Incoming XFR command: this is an result from
* slotStartChatSession(handle)
* connect to the switchboard server and sen startChat signal
*/
- void slotCreateChat( const QString& address, const QString& auth);
+ void slotCreateChat( const TQString& address, const TQString& auth);
// ui related
@@ -190,17 +190,17 @@ private slots:
/**
* add contact ui
*/
- void slotContactAddedNotifyDialogClosed( const QString &handle);
+ void slotContactAddedNotifyDialogClosed( const TQString &handle);
/**
* When the dispatch server sends us the notification server to use.
*/
- void createNotificationServer( const QString &host, uint port );
+ void createNotificationServer( const TQString &host, uint port );
/**
* When a global identity key get changed.
*/
- void slotGlobalIdentityChanged( const QString &key, const QVariant &value );
+ void slotGlobalIdentityChanged( const TQString &key, const TQVariant &value );
private:
MSNNotifySocket *m_notifySocket;
@@ -211,7 +211,7 @@ private:
// status which will be using for connecting
Kopete::OnlineStatus m_connectstatus;
- QStringList m_msgHandle;
+ TQStringList m_msgHandle;
bool m_newContactList;
@@ -220,35 +220,35 @@ private:
* Add the contact on the server in the given groups.
* this is a helper function called bu createContact and slotStatusChanged
*/
- void addContactServerside(const QString &contactId, QPtrList<Kopete::Group> groupList);
+ void addContactServerside(const TQString &contactId, TQPtrList<Kopete::Group> groupList);
public: //FIXME: should be private
- QMap<QString, Kopete::Group*> m_groupList;
+ TQMap<TQString, Kopete::Group*> m_groupList;
- void addGroup( const QString &groupName, const QString &contactToAdd = QString::null );
+ void addGroup( const TQString &groupName, const TQString &contactToAdd = TQString::null );
/**
* Find and retrive a MSNContact by its contactGuid. (Helper function)
*/
- MSNContact *findContactByGuid(const QString &contactGuid);
+ MSNContact *findContactByGuid(const TQString &contactGuid);
private:
// server data
- QStringList m_allowList;
- QStringList m_blockList;
- QStringList m_reverseList;
+ TQStringList m_allowList;
+ TQStringList m_blockList;
+ TQStringList m_reverseList;
Kopete::MetaContact *m_addWizard_metaContact;
- QMap< QString, QStringList > tmp_addToNewGroup;
- QMap< QString, QStringList > tmp_addNewContactToGroup;
+ TQMap< TQString, TQStringList > tmp_addToNewGroup;
+ TQMap< TQString, TQStringList > tmp_addNewContactToGroup;
- QString m_pictureObj; //a cache of the <msnobj>
- QString m_pictureFilename; // the picture filename.
+ TQString m_pictureObj; //a cache of the <msnobj>
+ TQString m_pictureFilename; // the picture filename.
//this is the translation between old to new groups id when syncing from server.
- QMap<QString, Kopete::Group*> m_oldGroupList;
+ TQMap<TQString, Kopete::Group*> m_oldGroupList;
/**
* I need the password in createNotificationServer.
@@ -256,7 +256,7 @@ private:
* at this place. so i'm forced to keep it here.
* I would like an API to request the password WITHOUT askling it.
*/
- QString m_password;
+ TQString m_password;
/**
* Cliend ID is a bitfield that contains supported features for a MSN contact.