summaryrefslogtreecommitdiffstats
path: root/konversation/src/nickinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'konversation/src/nickinfo.h')
-rw-r--r--konversation/src/nickinfo.h82
1 files changed, 41 insertions, 41 deletions
diff --git a/konversation/src/nickinfo.h b/konversation/src/nickinfo.h
index f6e9a9b..e62bb08 100644
--- a/konversation/src/nickinfo.h
+++ b/konversation/src/nickinfo.h
@@ -15,15 +15,15 @@
#ifndef NICKINFO_H
#define NICKINFO_H
-#include <qstringlist.h>
-#include <qdatetime.h>
+#include <tqstringlist.h>
+#include <tqdatetime.h>
#include <ksharedptr.h>
#include <kabc/addressbook.h>
class Server;
-class QTimer;
+class TQTimer;
/**
The NickInfo object is a data container for information about a single nickname.
@@ -33,31 +33,31 @@ class QTimer;
Offline (but watched or in addressbook) nicks are stored in the Server object.
*/
-class NickInfo : public QObject, public KShared
+class NickInfo : public TQObject, public KShared
{
Q_OBJECT
public:
- NickInfo(const QString& nick, Server* server);
+ NickInfo(const TQString& nick, Server* server);
~NickInfo();
// Get properties of NickInfo object.
- QString getNickname() const;
- QString loweredNickname() const;
- QString getHostmask() const;
+ TQString getNickname() const;
+ TQString loweredNickname() const;
+ TQString getHostmask() const;
/** Currently return whether the user has set themselves to away with /away.
* May be changed in the future to parse the nick string and see if it contains
* "|away" or "|afk" or something.
*/
bool isAway() const;
- QString getAwayMessage() const;
- QString getIdentdInfo() const;
- QString getVersionInfo() const;
+ TQString getAwayMessage() const;
+ TQString getIdentdInfo() const;
+ TQString getVersionInfo() const;
bool isNotified() const;
- QString getRealName() const;
- QString getNetServer() const;
- QString getNetServerInfo() const;
- QDateTime getOnlineSince() const;
+ TQString getRealName() const;
+ TQString getNetServer() const;
+ TQString getNetServerInfo() const;
+ TQDateTime getOnlineSince() const;
uint getNickColor();
/** Whether this user is identified with nickserv.
* Found only by doing /whois nick
@@ -67,7 +67,7 @@ class NickInfo : public QObject, public KShared
* It will return null if a /whois hasn't been issued yet for this nickinfo
* @return a date-string in the form of "Today, 4:23pm", "Yesterday, 12:32pm" or "Mon 3 Mar 2004, 8:02am"
*/
- QString getPrettyOnlineSince() const;
+ TQString getPrettyOnlineSince() const;
/// Return the Server object that owns this NickInfo object.
Server* getServer() const;
@@ -75,25 +75,25 @@ class NickInfo : public QObject, public KShared
KABC::Addressee getAddressee() const;
/** Set properties of NickInfo object. */
- void setNickname(const QString& newNickname);
+ void setNickname(const TQString& newNickname);
/** Set properties of NickInfo object. Ignores the request is newmask is empty.*/
- void setHostmask(const QString& newMask);
+ void setHostmask(const TQString& newMask);
/** Set properties of NickInfo object. */
void setAway(bool state);
/** Set properties of NickInfo object. */
- void setAwayMessage(const QString& newMessage);
+ void setAwayMessage(const TQString& newMessage);
/** Set properties of NickInfo object. */
- void setIdentdInfo(const QString& newIdentdInfo);
+ void setIdentdInfo(const TQString& newIdentdInfo);
/** Set properties of NickInfo object. */
- void setVersionInfo(const QString& newVersionInfo);
+ void setVersionInfo(const TQString& newVersionInfo);
/** Set properties of NickInfo object. */
void setNotified(bool state);
/** Set properties of NickInfo object. */
- void setRealName(const QString& newRealName);
+ void setRealName(const TQString& newRealName);
/** Set properties of NickInfo object. */
- void setNetServer(const QString& newNetServer);
+ void setNetServer(const TQString& newNetServer);
/** Set properties of NickInfo object. */
- void setNetServerInfo(const QString& newNetServerInfo);
+ void setNetServerInfo(const TQString& newNetServerInfo);
/** Whether this user is identified with nickserv.
* Found only by doing /whois nick
*/
@@ -103,21 +103,21 @@ class NickInfo : public QObject, public KShared
* This function also calculates and sets prettyOnlineSince
* @see getPrettyOnlineSince()
*/
- void setOnlineSince(const QDateTime& datetime);
+ void setOnlineSince(const TQDateTime& datetime);
/** Returns html describing this nickInfo - useful for tooltips when hovering over this nick.
*/
- QString tooltip() const;
+ TQString tooltip() const;
/** Returns just the <tr><td>.. data for a tooltip.
* Used so that channelNick->tooltip() can call this, then append on its own information.
*/
- void tooltipTableData(QTextStream &tooltip) const;
+ void tooltipTableData(TQTextStream &tooltip) const;
/** Returns a full name for this contact. Tries to use the name out of addressbook.
* If that is empty, uses the real name from whois. If that fails, use nickname.
*
* @return A string to show the user for the name of this contact
*/
- QString getBestAddresseeName();
+ TQString getBestAddresseeName();
/** Open this contact up in a "edit addresee association" window
*/
@@ -137,26 +137,26 @@ class NickInfo : public QObject, public KShared
* Used to consolidate changed signals.
*/
void startNickInfoChangedTimer();
- QString m_nickname;
- QString m_loweredNickname;
+ TQString m_nickname;
+ TQString m_loweredNickname;
Server* m_owningServer;
- QString m_hostmask;
+ TQString m_hostmask;
bool m_away;
- QString m_awayMessage;
- QString m_identdInfo;
- QString m_versionInfo;
+ TQString m_awayMessage;
+ TQString m_identdInfo;
+ TQString m_versionInfo;
bool m_notified;
- QString m_realName;
+ TQString m_realName;
/** The server they are connected to. */
- QString m_netServer;
- QString m_netServerInfo;
- QDateTime m_onlineSince;
+ TQString m_netServer;
+ TQString m_netServerInfo;
+ TQDateTime m_onlineSince;
KABC::Addressee m_addressee;
/** Whether this user is identified with nickserv.
* Found only by doing /whois nick
*/
bool m_identified;
- QTimer *m_changedTimer;
+ TQTimer *m_changedTimer;
/* True if "foo is online" message is printed */
bool m_printedOnline;
/* The color index for lookup on Preferences::NickColor(index).name()
@@ -179,7 +179,7 @@ class NickInfo : public QObject, public KShared
typedef KSharedPtr<NickInfo> NickInfoPtr;
/** A NickInfoMap is a list of NickInfo objects, indexed and sorted by lowercase nickname.
*/
-typedef QMap<QString,NickInfoPtr> NickInfoMap;
+typedef TQMap<TQString,NickInfoPtr> NickInfoMap;
-typedef QValueList<NickInfoPtr> NickInfoList;
+typedef TQValueList<NickInfoPtr> NickInfoList;
#endif