diff options
Diffstat (limited to 'konversation/src/server.h')
-rw-r--r-- | konversation/src/server.h | 336 |
1 files changed, 168 insertions, 168 deletions
diff --git a/konversation/src/server.h b/konversation/src/server.h index e2781fb..be6d62c 100644 --- a/konversation/src/server.h +++ b/konversation/src/server.h @@ -26,9 +26,9 @@ #include "servergroupsettings.h" #include "connectionsettings.h" -#include <qtimer.h> -#include <qvaluevector.h> -#include <qguardedptr.h> +#include <tqtimer.h> +#include <tqvaluevector.h> +#include <tqguardedptr.h> #include <ksharedptr.h> #include <kprocess.h> @@ -47,7 +47,7 @@ class RawLog; class ChannelListPanel; class ScriptLauncher; class ServerISON; -class QStrList; +class TQStrList; class ChatWindow; class ViewContainer; @@ -76,7 +76,7 @@ void resetNickSelection(); RegularPriority=StandardPriority }; - Server(QObject* parent, ConnectionSettings& settings); + Server(TQObject* parent, ConnectionSettings& settings); ~Server(); int connectionId() { return m_connectionId; } @@ -84,8 +84,8 @@ void resetNickSelection(); ConnectionSettings& getConnectionSettings() { return m_connectionSettings; } void setConnectionSettings(ConnectionSettings& settings) { m_connectionSettings = settings; } - QString getDisplayName() { return m_connectionSettings.name(); } - QString getServerName() { return m_connectionSettings.server().host(); } + TQString getDisplayName() { return m_connectionSettings.name(); } + TQString getServerName() { return m_connectionSettings.server().host(); } Konversation::ServerGroupSettingsPtr getServerGroup() { return m_connectionSettings.serverGroup(); } IdentityPtr getIdentity() { return m_connectionSettings.identity(); } @@ -96,86 +96,86 @@ void resetNickSelection(); bool isConnecting() { return (m_connectionState == Konversation::SSConnecting); } bool getUseSSL() const; - QString getSSLInfo() const; + TQString getSSLInfo() const; int getPort(); int getLag() const; void updateAutoJoin(Konversation::ChannelSettings channel = Konversation::ChannelSettings()); - void resetNickList(const QString& channelName); - void addPendingNickList(const QString& channelName,const QStringList& nickList); - void addHostmaskToNick(const QString &sourceNick, const QString &sourceHostmask); - Channel* nickJoinsChannel(const QString &channelName, const QString &nickname, const QString &hostmask); - void renameNick(const QString &nickname,const QString &newNick); - Channel* removeNickFromChannel(const QString &channelName, const QString &nickname, const QString &reason, bool quit=false); - void nickWasKickedFromChannel(const QString &channelName, const QString &nickname, const QString &kicker, const QString &reason); - void removeNickFromServer(const QString &nickname, const QString &reason); + void resetNickList(const TQString& channelName); + void addPendingNickList(const TQString& channelName,const TQStringList& nickList); + void addHostmaskToNick(const TQString &sourceNick, const TQString &sourceHostmask); + Channel* nickJoinsChannel(const TQString &channelName, const TQString &nickname, const TQString &hostmask); + void renameNick(const TQString &nickname,const TQString &newNick); + Channel* removeNickFromChannel(const TQString &channelName, const TQString &nickname, const TQString &reason, bool quit=false); + void nickWasKickedFromChannel(const TQString &channelName, const TQString &nickname, const TQString &kicker, const TQString &reason); + void removeNickFromServer(const TQString &nickname, const TQString &reason); - void setChannelTypes(const QString &types); - QString getChannelTypes() const; + void setChannelTypes(const TQString &types); + TQString getChannelTypes() const; // extended user modes support - void setPrefixes(const QString &modes, const QString& prefixes); - void mangleNicknameWithModes(QString &nickname,bool& isAdmin,bool& isOwner,bool &isOp, + void setPrefixes(const TQString &modes, const TQString& prefixes); + void mangleNicknameWithModes(TQString &nickname,bool& isAdmin,bool& isOwner,bool &isOp, bool& isHalfop,bool &hasVoice); - bool isAChannel(const QString &channel) const; - bool isNickname(const QString& compare) const; + bool isAChannel(const TQString &channel) const; + bool isNickname(const TQString& compare) const; - QString getNickname() const; - QString loweredNickname() const; + TQString getNickname() const; + TQString loweredNickname() const; - QString getNextNickname(); + TQString getNextNickname(); InputFilter* getInputFilter() { return &m_inputFilter; } Konversation::OutputFilter* getOutputFilter() { return m_outputFilter; }; - void joinChannel(const QString& name, const QString& hostmask); + void joinChannel(const TQString& name, const TQString& hostmask); void removeChannel(Channel* channel); - void appendServerMessageToChannel(const QString& channel, const QString& type, const QString& message); - void appendCommandMessageToChannel(const QString& channel, const QString& command, const QString& message, bool highlight = true); - void appendStatusMessage(const QString& type,const QString& message); - void appendMessageToFrontmost(const QString& type,const QString& message, bool parseURL = true); + void appendServerMessageToChannel(const TQString& channel, const TQString& type, const TQString& message); + void appendCommandMessageToChannel(const TQString& channel, const TQString& command, const TQString& message, bool highlight = true); + void appendStatusMessage(const TQString& type,const TQString& message); + void appendMessageToFrontmost(const TQString& type,const TQString& message, bool parseURL = true); - int getPreLength(const QString& command, const QString& dest); + int getPreLength(const TQString& command, const TQString& dest); - void dcopRaw(const QString& command); - void dcopSay(const QString& target,const QString& command); - void dcopInfo(const QString& string); - void ctcpReply(const QString& receiver, const QString& text); + void dcopRaw(const TQString& command); + void dcopSay(const TQString& target,const TQString& command); + void dcopInfo(const TQString& string); + void ctcpReply(const TQString& receiver, const TQString& text); - void setChannelTopic(const QString& channel, const QString& topic); + void setChannelTopic(const TQString& channel, const TQString& topic); // Overloaded - void setChannelTopic(const QString& nickname, const QString& channel, const QString& topic); - void updateChannelMode(const QString& nick, const QString& channel, char mode, bool plus, const QString& parameter); - void updateChannelModeWidgets(const QString& channel, char mode, const QString& parameter); + void setChannelTopic(const TQString& nickname, const TQString& channel, const TQString& topic); + void updateChannelMode(const TQString& nick, const TQString& channel, char mode, bool plus, const TQString& parameter); + void updateChannelModeWidgets(const TQString& channel, char mode, const TQString& parameter); - Channel* getChannelByName(const QString& name); - Query* getQueryByName(const QString& name); - QString parseWildcards(const QString& toParse, const QString& nickname, const QString& channelName, const QString &channelKey, const QStringList &nickList, const QString& parameter); - QString parseWildcards(const QString& toParse, const QString& nickname, const QString& channelName, const QString &channelKey, const QString& nick, const QString& parameter); + Channel* getChannelByName(const TQString& name); + Query* getQueryByName(const TQString& name); + TQString parseWildcards(const TQString& toParse, const TQString& nickname, const TQString& channelName, const TQString &channelKey, const TQStringList &nickList, const TQString& parameter); + TQString parseWildcards(const TQString& toParse, const TQString& nickname, const TQString& channelName, const TQString &channelKey, const TQString& nick, const TQString& parameter); void autoCommandsAndChannels(); - void sendURIs(const QStrList& uris, const QString& nick); + void sendURIs(const TQStrList& uris, const TQString& nick); - void notifyAction(const QString& nick); + void notifyAction(const TQString& nick); ChannelListPanel* getChannelListPanel() const; StatusPanel* getStatusView() const { return m_statusView; } virtual bool closeYourself(bool askForConfirmation=true); - QString getOwnIpByNetworkInterface(); - QString getOwnIpByServerMessage(); + TQString getOwnIpByNetworkInterface(); + TQString getOwnIpByServerMessage(); - void requestAway(const QString& reason = ""); + void requestAway(const TQString& reason = ""); void requestUnaway(); bool isAway() { return m_away; } void setAway(bool away); - QString awayTime() const; + TQString awayTime() const; - void setAwayReason(const QString& reason) { m_awayReason = reason; } + void setAwayReason(const TQString& reason) { m_awayReason = reason; } /** * Returns true if the given nickname is known to be online. @@ -185,7 +185,7 @@ void resetNickSelection(); * notify list, and has not initiated a query with you, may well be online, * but server doesn't know if it is or not, in which case False is returned. */ - bool isNickOnline(const QString &nickname); + bool isNickOnline(const TQString &nickname); /** Given a nickname, returns NickInfo object. * @param nickname The desired nickname. Case insensitive. * @return Pointer to the nickinfo for this nickname if one exists. @@ -198,13 +198,13 @@ void resetNickSelection(); * - The nick initiated a query with the user. * A NickInfo is destroyed when it is offline. */ - NickInfoPtr getNickInfo(const QString& nickname); + NickInfoPtr getNickInfo(const TQString& nickname); /** Given a nickname, returns an existing NickInfo object, or creates a new NickInfo object. * Guaranteed to return a nickinfo. * @param nickname The desired nickname. Case sensitive. * @return Pointer to the found or created NickInfo object. */ - NickInfoPtr obtainNickInfo(const QString& nickname); + NickInfoPtr obtainNickInfo(const TQString& nickname); /** Returns a list of all the NickInfos that are online and known to the server. * Caller should not modify the list. * A nick will be known if: @@ -212,7 +212,7 @@ void resetNickSelection(); * - It is on the notify list and is known to be online. * - The nick initiated a query with the user. * - * @return A QMap of KSharedPtrs to NickInfos indexed by lowercase nickname. + * @return A TQMap of KSharedPtrs to NickInfos indexed by lowercase nickname. */ const NickInfoMap* getAllNicks(); /** Returns the list of members for a channel in the joinedChannels list. @@ -223,7 +223,7 @@ void resetNickSelection(); * @return A map of all the nicks in the channel. * 0 if channel is not in the joinedChannels list. */ - const ChannelNickMap *getJoinedChannelMembers(const QString& channelName) const; + const ChannelNickMap *getJoinedChannelMembers(const TQString& channelName) const; /** Returns the list of members for a channel in the unjoinedChannels list. * An unjoinedChannel is a channel you aren't in. As such, this is only going to return * nicks that you know are in that channel because a /whois has been done against them. @@ -233,21 +233,21 @@ void resetNickSelection(); * @return A map of only the nicks that we know that are in the channel. * 0 if channel is not in the unjoinedChannels list. */ - const ChannelNickMap *getUnjoinedChannelMembers(const QString& channelName) const; + const ChannelNickMap *getUnjoinedChannelMembers(const TQString& channelName) const; /** Searches the Joined and Unjoined lists for the given channel and returns the member list. * Code that calls this must not modify the list. * @param channelName Name of desired channel. Case insensitive. * @return A map of nicks in that channel. 0 if channel is not in either list. * - * @see getJoinedChannelMembers(const QString& channelName) - * @see getUnjoinedChannelMembers(const QString& channelName) + * @see getJoinedChannelMembers(const TQString& channelName) + * @see getUnjoinedChannelMembers(const TQString& channelName) */ - const ChannelNickMap *getChannelMembers(const QString& channelName) const; + const ChannelNickMap *getChannelMembers(const TQString& channelName) const; /** Returns a list of all the joined channels that a nick is in. * @param nickname The desired nickname. Case insensitive. * @return A list of joined channels the nick is in. Empty if none. */ - QStringList getNickJoinedChannels(const QString& nickname); + TQStringList getNickJoinedChannels(const TQString& nickname); /** Returns a list of all the channels (joined or unjoined) that a nick is in. * @param nickname The desired nickname. Case insensitive. * @return A list of channels the nick is in. Empty if none. @@ -255,7 +255,7 @@ void resetNickSelection(); * A nick will not appear in the Unjoined channels list unless a WHOIS * has been performed on it. */ - QStringList getNickChannels(const QString& nickname); + TQStringList getNickChannels(const TQString& nickname); /** Returns pointer to the ChannelNick (mode and pointer to NickInfo) for a * given channel and nickname. * @param channelName The desired channel name. Case insensitive. @@ -264,7 +264,7 @@ void resetNickSelection(); * to the NickInfo and the mode of the nick in the channel. * 0 if not found. */ - ChannelNickPtr getChannelNick(const QString& channelName, const QString& nickname); + ChannelNickPtr getChannelNick(const TQString& channelName, const TQString& nickname); /** Updates a nickname in a channel. If not on the joined or unjoined lists, and nick * is in the watch list, adds the channel and nick to the unjoinedChannels list. * If mode != 99, sets the mode for the nick in the channel. @@ -274,19 +274,19 @@ void resetNickSelection(); * @param mode Bit mask containing the modes the nick has in the channel, * or 99 if not known. See channelnick.cpp for bit definitions. */ - ChannelNickPtr setChannelNick(const QString& channelName, const QString& nickname, unsigned int mode = 99); + ChannelNickPtr setChannelNick(const TQString& channelName, const TQString& nickname, unsigned int mode = 99); /** * Given the nickname of nick that is offline (or at least not known to be online), * returns the addressbook entry (if any) for the nick. * @param nickname Desired nickname. Case insensitive. * @return Addressbook entry of the nick or empty if not found. */ - KABC::Addressee getOfflineNickAddressee(QString& nickname); + KABC::Addressee getOfflineNickAddressee(TQString& nickname); /** - * Returns a QPtrList of all channels + * Returns a TQPtrList of all channels */ - const QPtrList<Channel>& getChannelList() const { return m_channelList; } + const TQPtrList<Channel>& getChannelList() const { return m_channelList; } void emitChannelNickChanged(const ChannelNickPtr channelNick); void emitNickInfoChanged(const NickInfoPtr nickInfo); @@ -294,18 +294,18 @@ void resetNickSelection(); /** * Returns a list of all the nicks on the user watch list plus nicks in the addressbook. */ - QStringList getWatchList(); - QString getWatchListString(); + TQStringList getWatchList(); + TQString getWatchListString(); /** * Return true if the given nickname is on the watch list. */ - bool isWatchedNick(const QString& nickname); + bool isWatchedNick(const TQString& nickname); /** * Returns a list of all the nicks on the watch list that are not in joined * channels. ISON command is sent for these nicks. */ - QStringList getISONList(); - QString getISONListString(); + TQStringList getISONList(); + TQString getISONListString(); ViewContainer* getViewContainer() const; @@ -318,27 +318,27 @@ void resetNickSelection(); * @param nickname The nickname. Case sensitive. * @return The NickInfo for the nickname. */ - ChannelNickPtr addNickToJoinedChannelsList(const QString& channelName, const QString& nickname); + ChannelNickPtr addNickToJoinedChannelsList(const TQString& channelName, const TQString& nickname); - void setAllowedChannelModes(const QString& modes) { m_allowedChannelModes = modes; } - QString allowedChannelModes() const { return m_allowedChannelModes; } + void setAllowedChannelModes(const TQString& modes) { m_allowedChannelModes = modes; } + TQString allowedChannelModes() const { return m_allowedChannelModes; } void registerWithServices(); // Blowfish stuff - QCString getKeyForRecipient(const QString& recipient) const; - void setKeyForRecipient(const QString& recipient, const QCString& key); + TQCString getKeyForRecipient(const TQString& recipient) const; + void setKeyForRecipient(const TQString& recipient, const TQCString& key); bool identifyMsg() const { return m_identifyMsg; } ChannelListPanel* addChannelListPanel(); // invoked by DccTransferSend - void dccSendRequest(const QString& recipient,const QString& fileName,const QString& address,const QString& port,unsigned long size); - void dccPassiveSendRequest(const QString& recipient,const QString& fileName,const QString& address,unsigned long size,const QString& token); + void dccSendRequest(const TQString& recipient,const TQString& fileName,const TQString& address,const TQString& port,unsigned long size); + void dccPassiveSendRequest(const TQString& recipient,const TQString& fileName,const TQString& address,unsigned long size,const TQString& token); // invoked by DccTransferRecv - void dccResumeGetRequest(const QString& sender,const QString& fileName,const QString& port,KIO::filesize_t startAt); - void dccReverseSendAck(const QString& partnerNick,const QString& fileName,const QString& ownAddress,const QString& ownPort,unsigned long size,const QString& reverseToken); + void dccResumeGetRequest(const TQString& sender,const TQString& fileName,const TQString& port,KIO::filesize_t startAt); + void dccReverseSendAck(const TQString& partnerNick,const TQString& fileName,const TQString& ownAddress,const TQString& ownPort,unsigned long size,const TQString& reverseToken); // IRCQueueManager bool validQueue(QueuePriority priority); ///< is this queue index valid? @@ -362,13 +362,13 @@ void resetNickSelection(); signals: void destroyed(int connectionId); - void nicknameChanged(const QString&); + void nicknameChanged(const TQString&); void serverLag(Server* server,int msec); /// will be connected to KonversationMainWindow::updateLag() void tooLongLag(Server* server, int msec);/// will be connected to KonversationMainWindow::updateLag() void resetLag(); ///< will be emitted when new 303 came in - void nicksNowOnline(Server* server,const QStringList& list,bool changed); + void nicksNowOnline(Server* server,const TQStringList& list,bool changed); void awayState(bool away); /// will be connected to any user input panel; - void multiServerCommand(const QString& command, const QString& parameter); + void multiServerCommand(const TQString& command, const TQString& parameter); /** * Emitted when the server gains/loses connection. @@ -397,15 +397,15 @@ void resetNickSelection(); /// call getJoinedChannelMembers or getUnjoinedChannelMembers, or just /// getChannelMembers to get a list of all the nicks now in the channel. /// parted indicates whether the nick joined or left the channel. - void channelMembersChanged(Server* server, const QString& channelName, bool joined, bool parted, const QString& nickname); + void channelMembersChanged(Server* server, const TQString& channelName, bool joined, bool parted, const TQString& nickname); /// Fires when a channel is moved to/from the Joinied/Unjoined lists. /// joined indicates which list it is now on. Note that if joined is False, it is /// possible the channel does not exist in any list anymore. - void channelJoinedOrUnjoined(Server* server, const QString& channelName, bool joined); + void channelJoinedOrUnjoined(Server* server, const TQString& channelName, bool joined); /// Fires when a nick on the watch list goes online or offline. - void watchedNickChanged(Server* server, const QString& nickname, bool online); + void watchedNickChanged(Server* server, const TQString& nickname, bool online); ///Fires when the user switches his state to away and has enabled "Insert Remember Line on away" in his identity. void awayInsertRememberLine(Server* server); void sslInitFailure(); @@ -415,58 +415,58 @@ void resetNickSelection(); void showView(ChatWindow* view); void addDccPanel(); - void addDccChat(const QString& myNick,const QString& nick,const QStringList& arguments,bool listen); + void addDccChat(const TQString& myNick,const TQString& nick,const TQStringList& arguments,bool listen); public slots: void connectToIRCServer(); /** Adds line to queue if non-empty. */ - bool queue(const QString& line, QueuePriority priority=StandardPriority); - //TODO this should be an overload, not a separate name. ambiguous cases need QString() around the cstring - bool queueList(const QStringList& buffer, QueuePriority priority=StandardPriority); + bool queue(const TQString& line, QueuePriority priority=StandardPriority); + //TODO this should be an overload, not a separate name. ambiguous cases need TQString() around the cstring + bool queueList(const TQStringList& buffer, QueuePriority priority=StandardPriority); - void setNickname(const QString &newNickname); + void setNickname(const TQString &newNickname); /** This is called when we want to open a new query, or focus an existing one. * @param nickInfo The nickinfo we want to open the query to. Must exist. * @param weinitiated This is whether we initiated this - did we do /query, or somebody else sending us a message. * @return A pointer to a new or already-existing query. Guaranteed to be non-null */ Query *addQuery(const NickInfoPtr & nickInfo, bool weinitiated); - void closeQuery(const QString &name); - void closeChannel(const QString &name); + void closeQuery(const TQString &name); + void closeChannel(const TQString &name); void quitServer(); - void openDccChat(const QString& nickname); - void requestDccChat(const QString& partnerNick, const QString& numericalOwnIp, const QString& ownPort); - void requestBan(const QStringList& users,const QString& channel,const QString& option); - void requestUnban(const QString& mask,const QString& channel); + void openDccChat(const TQString& nickname); + void requestDccChat(const TQString& partnerNick, const TQString& numericalOwnIp, const TQString& ownPort); + void requestBan(const TQStringList& users,const TQString& channel,const TQString& option); + void requestUnban(const TQString& mask,const TQString& channel); - void addDccSend(const QString &recipient,KURL fileURL, const QString &altFileName = QString(), uint fileSize = 0); + void addDccSend(const TQString &recipient,KURL fileURL, const TQString &altFileName = TQString(), uint fileSize = 0); void removeQuery(Query *query); void startNotifyTimer(int msec=0); - void sendJoinCommand(const QString& channelName, const QString& password = QString()); + void sendJoinCommand(const TQString& channelName, const TQString& password = TQString()); void requestChannelList(); - void requestWhois(const QString& nickname); - void requestWho(const QString& channel); - void requestUserhost(const QString& nicks); - void requestTopic(const QString& channel); - void resolveUserhost(const QString& nickname); + void requestWhois(const TQString& nickname); + void requestWho(const TQString& channel); + void requestUserhost(const TQString& nicks); + void requestTopic(const TQString& channel); + void resolveUserhost(const TQString& nickname); void addRawLog(bool show); void closeRawLog(); - void addToChannelList(const QString& channel, int users, const QString& topic); + void addToChannelList(const TQString& channel, int users, const TQString& topic); void closeChannelListPanel(); void updateChannelQuickButtons(); - void sendMultiServerCommand(const QString& command, const QString& parameter); - void executeMultiServerCommand(const QString& command, const QString& parameter); + void sendMultiServerCommand(const TQString& command, const TQString& parameter); + void executeMultiServerCommand(const TQString& command, const TQString& parameter); void reconnect(); void disconnect(); //FIXME is this overriding a qobject method? do we care? void showSSLDialog(); - void sendToAllChannels(const QString& text); + void sendToAllChannels(const TQString& text); void notifyTimeout(); void enableIdentifyMsg(bool enabled); bool identifyMsgEnabled(); - void addBan(const QString &channel, const QString &ban); - void removeBan(const QString &channel, const QString &ban); + void addBan(const TQString &channel, const TQString &ban); + void removeBan(const TQString &channel, const TQString &ban); /// Called when we received a PONG from the server void pongReceived(); @@ -478,37 +478,37 @@ void resetNickSelection(); void startAwayTimer(); void incoming(); void processIncomingData(); - /// Sends the QString to the socket. No longer has any internal concept of queueing - void toServer(QString&, IRCQueue *); + /// Sends the TQString to the socket. No longer has any internal concept of queueing + void toServer(TQString&, IRCQueue *); /// Because KBufferedSocket has no closed(int) signal we use this slot to call broken(0) void closed(); void broken(int state); /** This is connected to the SSLSocket failed. * @param reason The reason why this failed. This is already translated, ready to show the user. */ - void sslError(const QString& reason); - void connectionEstablished(const QString& ownHost); - void notifyResponse(const QString& nicksOnline); + void sslError(const TQString& reason); + void connectionEstablished(const TQString& ownHost); + void notifyResponse(const TQString& nicksOnline); void slotNewDccTransferItemQueued(DccTransfer* transfer); - void startReverseDccSendTransfer(const QString& sourceNick,const QStringList& dccArguments); - void addDccGet(const QString& sourceNick,const QStringList& dccArguments); + void startReverseDccSendTransfer(const TQString& sourceNick,const TQStringList& dccArguments); + void addDccGet(const TQString& sourceNick,const TQStringList& dccArguments); void requestDccSend(); // -> to outputFilter, dccPanel // -> to outputFilter - void requestDccSend(const QString& recipient); + void requestDccSend(const TQString& recipient); // -> to inputFilter - void resumeDccGetTransfer(const QString& sourceNick,const QStringList& dccArguments); + void resumeDccGetTransfer(const TQString& sourceNick,const TQStringList& dccArguments); // -> to inputFilter - void resumeDccSendTransfer(const QString& sourceNick,const QStringList& dccArguments); + void resumeDccSendTransfer(const TQString& sourceNick,const TQStringList& dccArguments); void dccGetDone(DccTransfer* item); void dccSendDone(DccTransfer* item); void dccStatusChanged(DccTransfer* item, int newStatus, int oldStatus); - void scriptNotFound(const QString& name); - void scriptExecutionError(const QString& name); - void userhost(const QString& nick,const QString& hostmask,bool away,bool ircOp); - void setTopicAuthor(const QString& channel,const QString& author, QDateTime t); - void endOfWho(const QString& target); - void invitation(const QString& nick,const QString& channel); - void sendToAllChannelsAndQueries(const QString& text); + void scriptNotFound(const TQString& name); + void scriptExecutionError(const TQString& name); + void userhost(const TQString& nick,const TQString& hostmask,bool away,bool ircOp); + void setTopicAuthor(const TQString& channel,const TQString& author, TQDateTime t); + void endOfWho(const TQString& target); + void invitation(const TQString& nick,const TQString& channel); + void sendToAllChannelsAndQueries(const TQString& text); void gotOwnResolvedHostByWelcome(KResolverResults res); void gotOwnResolvedHostByUserhost(KResolverResults res); @@ -537,7 +537,7 @@ void resetNickSelection(); /// Connect to the signals used in this class. void connectSignals(); - int _send_internal(QString outputline); ///< Guts of old send, isn't a slot. + int _send_internal(TQString outputline); ///< Guts of old send, isn't a slot. /** Adds a nickname to the unjoinedChannels list. * Creates new NickInfo if necessary. @@ -548,7 +548,7 @@ void resetNickSelection(); * @param nickname The nickname. Case sensitive. * @return The NickInfo for the nickname. */ - ChannelNickPtr addNickToUnjoinedChannelsList(const QString& channelName, const QString& nickname); + ChannelNickPtr addNickToUnjoinedChannelsList(const TQString& channelName, const TQString& nickname); /** * If not already online, changes a nick to the online state by creating @@ -557,7 +557,7 @@ void resetNickSelection(); * @param nickname The nickname that is online. * @return Pointer to NickInfo for nick. */ - NickInfoPtr setWatchedNickOnline(const QString& nickname); + NickInfoPtr setWatchedNickOnline(const TQString& nickname); /** * Display offline notification for a certain nickname. The function doesn't change NickInfo objects. @@ -566,7 +566,7 @@ void resetNickSelection(); * @param nickname The nickname that is offline * @param nickInfo Pointer to NickInfo for nick */ - void setWatchedNickOffline(const QString& nickname, const NickInfoPtr nickInfo); + void setWatchedNickOffline(const TQString& nickname, const NickInfoPtr nickInfo); /** * If nickname is no longer on any channel list, or the query list, delete it altogether. @@ -575,7 +575,7 @@ void resetNickSelection(); * @param nickname The nickname to be deleted. Case insensitive. * @return True if the nickname is deleted. */ - bool deleteNickIfUnlisted(const QString &nickname); + bool deleteNickIfUnlisted(const TQString &nickname); /** * If not already offline, changes a nick to the offline state. @@ -588,78 +588,78 @@ void resetNickSelection(); * @param nickname The nickname. Case sensitive. * @return True if the nick was online. */ - bool setNickOffline(const QString& nickname); + bool setNickOffline(const TQString& nickname); /** Remove nickname from a channel (on joined or unjoined lists). * @param channelName The channel name. Case insensitive. * @param nickname The nickname. Case insensitive. */ - void removeChannelNick(const QString& channelName, const QString& nickname); + void removeChannelNick(const TQString& channelName, const TQString& nickname); /** Remove channel from the joined list. * Nicknames in the channel are added to the unjoined list if they are in the watch list. * @param channelName The channel name. Case insensitive. */ - void removeJoinedChannel(const QString& channelName); + void removeJoinedChannel(const TQString& channelName); /** Renames a nickname in all NickInfo lists. * @param nickInfo Pointer to existing NickInfo object. * @param newname New nickname for the nick. Case sensitive. */ - void renameNickInfo(NickInfoPtr nickInfo, const QString& newname); + void renameNickInfo(NickInfoPtr nickInfo, const TQString& newname); bool getAutoJoin() const; void setAutoJoin(bool on); - QStringList getAutoJoinCommands() const { return m_autoJoinCommands; } - void setAutoJoinCommands(const QStringList& commands) { m_autoJoinCommands = commands; } + TQStringList getAutoJoinCommands() const { return m_autoJoinCommands; } + void setAutoJoinCommands(const TQStringList& commands) { m_autoJoinCommands = commands; } unsigned int m_completeQueryPosition; - QValueList<int> m_nickIndices; - QStringList m_referenceNicklist; + TQValueList<int> m_nickIndices; + TQStringList m_referenceNicklist; - // TODO roll these into a QMap. - QString m_serverNickPrefixes; // Prefixes used by the server to indicate a mode - QString m_serverNickPrefixModes; // if supplied: modes related to those prefixes - QString m_channelPrefixes; // prefixes that indicate channel names. defaults to RFC1459 "#&" + // TODO roll these into a TQMap. + TQString m_serverNickPrefixes; // Prefixes used by the server to indicate a mode + TQString m_serverNickPrefixModes; // if supplied: modes related to those prefixes + TQString m_channelPrefixes; // prefixes that indicate channel names. defaults to RFC1459 "#&" bool m_autoJoin; - QStringList m_autoJoinCommands; + TQStringList m_autoJoinCommands; KNetwork::KStreamSocket* m_socket; - QTimer m_reconnectTimer; - QTimer m_incomingTimer; - QTimer m_notifyTimer; - QStringList m_notifyCache; // List of users found with ISON + TQTimer m_reconnectTimer; + TQTimer m_incomingTimer; + TQTimer m_notifyTimer; + TQStringList m_notifyCache; // List of users found with ISON int m_checkTime; // Time elapsed while waiting for server 303 response int m_currentLag; - QCString m_inputBufferIncomplete; - QStringList m_inputBuffer; + TQCString m_inputBufferIncomplete; + TQStringList m_inputBuffer; - QValueVector<IRCQueue *> m_queues; + TQValueVector<IRCQueue *> m_queues; int m_bytesSent, m_encodedBytesSent, m_linesSent, m_bytesReceived; - QString m_nickname; - QString m_loweredNickname; - QString m_ownIpByUserhost; // RPL_USERHOST - QString m_ownIpByWelcome; // RPL_WELCOME + TQString m_nickname; + TQString m_loweredNickname; + TQString m_ownIpByUserhost; // RPL_USERHOST + TQString m_ownIpByWelcome; // RPL_WELCOME - QPtrList<Channel> m_channelList; - QPtrList<Query> m_queryList; + TQPtrList<Channel> m_channelList; + TQPtrList<Query> m_queryList; InputFilter m_inputFilter; Konversation::OutputFilter* m_outputFilter; - QGuardedPtr<StatusPanel> m_statusView; - QGuardedPtr<RawLog> m_rawLog; - QGuardedPtr<ChannelListPanel> m_channelListPanel; + TQGuardedPtr<StatusPanel> m_statusView; + TQGuardedPtr<RawLog> m_rawLog; + TQGuardedPtr<ChannelListPanel> m_channelListPanel; bool m_away; - QString m_awayReason; - QString m_nonAwayNick; + TQString m_awayReason; + TQString m_nonAwayNick; int m_awayTime; Konversation::ConnectionState m_connectionState; @@ -689,10 +689,10 @@ void resetNickSelection(); /// List of nicks in Queries. NickInfoMap m_queryNicks; - QString m_allowedChannelModes; + TQString m_allowedChannelModes; // Blowfish key map - QMap<QString,QCString> m_keyMap; + TQMap<TQString,TQCString> m_keyMap; bool m_identifyMsg; bool m_autoIdentifyLock; @@ -701,12 +701,12 @@ void resetNickSelection(); bool m_processingIncoming; /// Meassures the lag between PING and PONG - QTime m_lagTime; + TQTime m_lagTime; /// Updates the gui when the lag gets too high - QTimer m_pingResponseTimer; + TQTimer m_pingResponseTimer; /// Previous ISON reply of the server, needed for comparison with the next reply - QStringList m_prevISONList; + TQStringList m_prevISONList; ConnectionSettings m_connectionSettings; |