src/irc/*: mark methods const when possible and semantically sensible

parent d6b4dbc8
......@@ -411,7 +411,7 @@ Channel::~Channel()
}
}
bool Channel::rejoinable()
bool Channel::rejoinable() const
{
if (getServer() && getServer()->isConnected())
return !m_joined;
......@@ -747,7 +747,7 @@ void Channel::setAutoJoin(bool autojoin)
QString Channel::getPassword()
QString Channel::getPassword() const
{
QString password;
......@@ -768,7 +768,7 @@ QString Channel::getPassword()
return password;
}
const Konversation::ChannelSettings Channel::channelSettings()
Konversation::ChannelSettings Channel::channelSettings() const
{
Konversation::ChannelSettings channel;
......@@ -871,7 +871,7 @@ void Channel::setNickname(const QString& newNickname)
nicknameCombobox->setCurrentIndex(nicknameCombobox->findText(newNickname));
}
QStringList Channel::getSelectedNickList()
QStringList Channel::getSelectedNickList() const
{
QStringList selectedNicks;
......@@ -1025,7 +1025,7 @@ void Channel::fastAddNickname(ChannelNickPtr channelnick, Nick *nick)
}
/* Determines whether Nick/Part/Join event should be shown or skipped based on user settings. */
bool Channel::shouldShowEvent(ChannelNickPtr channelNick)
bool Channel::shouldShowEvent(ChannelNickPtr channelNick) const
{
if (Preferences::self()->hideUnimportantEvents())
{
......@@ -1363,7 +1363,7 @@ void Channel::emitUpdateInfo()
emit updateInfo(info);
}
QString Channel::getTopic()
QString Channel::getTopic() const
{
return m_topicHistory->currentTopic();
}
......@@ -2761,7 +2761,7 @@ void Channel::nickActive(const QString& nickname) //FIXME reported to crash, can
}
#ifdef HAVE_QCA2
Konversation::Cipher* Channel::getCipher()
Konversation::Cipher* Channel::getCipher() const
{
if(!m_cipher)
m_cipher = new Konversation::Cipher();
......
......@@ -83,23 +83,21 @@ class Channel : public ChatWindow
void appendAction(const QString& nickname, const QString& message, const QHash<QString, QString> &messageTags = QHash<QString, QString>()) override;
void nickActive(const QString& nickname);
#ifdef HAVE_QCA2
Konversation::Cipher* getCipher();
Konversation::Cipher* getCipher() const;
#endif
//General administrative stuff
public:
void setName(const QString& newName) override;
QString getPassword();
const Konversation::ChannelSettings channelSettings();
QString getPassword() const;
Konversation::ChannelSettings channelSettings() const;
void setServer(Server* newServer) override;
void setEncryptedOutput(bool);
bool joined() const { return m_joined; }
bool rejoinable();
bool rejoinable() const;
//Unsure of future placement and/or continued existence of these members
int numberOfNicks() const { return nicks; }
int numberOfOps() const { return ops; }
......@@ -114,7 +112,7 @@ class Channel : public ChatWindow
void fastAddNickname(ChannelNickPtr channelnick, Nick *nick = nullptr);
void setActive(bool active);
void repositionNick(Nick *nick);
bool shouldShowEvent(ChannelNickPtr channelNick);
bool shouldShowEvent(ChannelNickPtr channelNick) const;
public Q_SLOTS:
void setNickname(const QString& newNickname);
......@@ -162,8 +160,8 @@ class Channel : public ChatWindow
void updateChannelNicks(const QString& channel);
//Topic
public:
QString getTopic();
TopicHistoryModel* getTopicHistory() { return m_topicHistory; }
QString getTopic() const;
TopicHistoryModel* getTopicHistory() const { return m_topicHistory; }
void setTopic(const QString& text, const QHash<QString, QString> &messageTags);
void setTopic(const QString& nickname, const QString& text, const QHash<QString, QString> &messageTags);
......@@ -221,12 +219,10 @@ class Channel : public ChatWindow
bool autoJoin();
QStringList getSelectedNickList();
QStringList getSelectedNickList() const;
NickListView* getNickListView() const { return nicknameListView; }
Konversation::ChannelSettings channelSettings() const;
Q_SIGNALS:
void sendFile();
......@@ -353,7 +349,7 @@ class Channel : public ChatWindow
Konversation::ChannelOptionsDialog *m_optionsDialog;
#ifdef HAVE_QCA2
Konversation::Cipher *m_cipher;
mutable Konversation::Cipher *m_cipher;
#endif
};
#endif
......@@ -37,10 +37,10 @@ class ChannelListProxyModel : public QSortFilterProxyModel
public:
explicit ChannelListProxyModel(QObject *parent = nullptr);
int filterMinimumUsers() { return m_minUsers; }
int filterMaximumUsers() { return m_maxUsers; }
bool filterTopic() { return m_filterTopic; }
bool filterChannel() { return m_filterChannel; }
int filterMinimumUsers() const { return m_minUsers; }
int filterMaximumUsers() const { return m_maxUsers; }
bool filterTopic() const { return m_filterTopic; }
bool filterChannel() const { return m_filterChannel; }
public Q_SLOTS:
void setFilterMinimumUsers(int users);
......
......@@ -955,7 +955,7 @@ void InputFilter::parseModes(const QString &sourceNick, const QStringList &param
// # & + and ! are *often*, but not necessarily, Channel identifiers. + and ! are non-RFC,
// so if a server doesn't offer 005 and supports + and ! channels, I think thats broken behaviour
// on their part - not ours. --Argonel
bool InputFilter::isAChannel(const QString &check)
bool InputFilter::isAChannel(const QString &check) const
{
if (check.isEmpty())
return false;
......@@ -964,7 +964,7 @@ bool InputFilter::isAChannel(const QString &check)
return m_server? m_server->isAChannel(check) : bool(QStringLiteral("#&").contains(check.at(0)));
}
bool InputFilter::isIgnore(const QString &sender, Ignore::Type type)
bool InputFilter::isIgnore(const QString &sender, Ignore::Type type) const
{
bool doIgnore = false;
......@@ -1006,18 +1006,18 @@ void InputFilter::setAutomaticRequest(const QString& command, const QString& nam
}
}
int InputFilter::getAutomaticRequest(const QString& command, const QString& name)
int InputFilter::getAutomaticRequest(const QString& command, const QString& name) const
{
return m_automaticRequest[command][name.toLower()];
}
void InputFilter::addWhoRequest(const QString& name) { m_whoRequestList << name.toLower(); }
bool InputFilter::isWhoRequestUnderProcess(const QString& name) { return (m_whoRequestList.contains(name.toLower())>0); }
bool InputFilter::isWhoRequestUnderProcess(const QString& name) const { return (m_whoRequestList.contains(name.toLower())>0); }
void InputFilter::setLagMeasuring(bool state) { m_lagMeasuring=state; }
bool InputFilter::getLagMeasuring() { return m_lagMeasuring; }
bool InputFilter::getLagMeasuring() const { return m_lagMeasuring; }
void InputFilter::parsePrivMsg(const QString& prefix, QStringList& parameterList, const QHash<QString, QString> &messageTags)
{
......
......@@ -38,12 +38,12 @@ class InputFilter : public QObject
// use this when the client does automatics, like userhost for finding hostmasks
void setAutomaticRequest(const QString& command, const QString& name, bool yes);
int getAutomaticRequest(const QString& command, const QString& name);
int getAutomaticRequest(const QString& command, const QString& name) const;
void addWhoRequest(const QString& name); // called from Server::send()
// to avoid duplicate requests
bool isWhoRequestUnderProcess(const QString& name);
bool isWhoRequestUnderProcess(const QString& name) const;
void setLagMeasuring(bool yes);
bool getLagMeasuring();
bool getLagMeasuring() const;
Q_SIGNALS:
void welcome(const QString& ownHost);
......@@ -85,8 +85,8 @@ class InputFilter : public QObject
QHash<QString, QString> parseMessageTags(const QString &line, int *startOfMessage);
bool isAChannel(const QString &check);
bool isIgnore(const QString &pattern, Ignore::Type type);
bool isAChannel(const QString &check) const;
bool isIgnore(const QString &pattern, Ignore::Type type) const;
Server* m_server;
// automaticRequest[command][channel or nick]=count
......
......@@ -46,22 +46,22 @@ namespace Konversation
return m_descriptiveNames;
}
int IRCCharsets::availableEncodingsCount()
int IRCCharsets::availableEncodingsCount() const
{
return m_shortNames.count();
}
QString IRCCharsets::shortNameToDescriptiveName( const QString& shortName )
QString IRCCharsets::shortNameToDescriptiveName(const QString& shortName) const
{
return m_descriptiveNames[ shortNameToIndex( shortName ) ];
}
QString descriptiveNameToShortName( const QString& descriptiveName )
QString IRCCharsets::descriptiveNameToShortName(const QString& descriptiveName) const
{
return KCharsets::charsets()->encodingForName( descriptiveName );
}
QString IRCCharsets::ambiguousNameToShortName( const QString& ambiguousName )
QString IRCCharsets::ambiguousNameToShortName(const QString& ambiguousName) const
{
// simplify ambiguousName
QString simplifiedAmbiguousName( ambiguousName.toLower() );
......@@ -75,10 +75,10 @@ namespace Konversation
return QString();
}
int IRCCharsets::shortNameToIndex( const QString& shortName )
int IRCCharsets::shortNameToIndex(const QString& shortName) const
{
int index = 0;
for ( QStringList::iterator it = m_shortNames.begin() ; it != m_shortNames.end() ; ++it )
for ( QStringList::const_iterator it = m_shortNames.begin() ; it != m_shortNames.end() ; ++it )
{
if ( (*it) == shortName )
return index;
......@@ -87,12 +87,12 @@ namespace Konversation
return -1;
}
bool IRCCharsets::isValidEncoding( const QString& shortName )
bool IRCCharsets::isValidEncoding(const QString& shortName) const
{
return ( m_shortNames.contains( shortName ) > 0 );
}
QString IRCCharsets::encodingForLocale()
QString IRCCharsets::encodingForLocale() const
{
// Special cases
// don't add conditions for the languages for which QTextCodec::codecForLocale() returns a correct codec.
......@@ -101,14 +101,14 @@ namespace Konversation
return QStringLiteral("ISO-2022-JP");
// it's a little hacky..
for (QStringList::iterator it = m_shortNames.begin() ; it != m_shortNames.end() ; ++it)
for (QStringList::const_iterator it = m_shortNames.begin() ; it != m_shortNames.end() ; ++it)
if (QTextCodec::codecForName( (*it).toLatin1() ) == QTextCodec::codecForLocale())
return *it;
return QStringLiteral("UTF-8");
}
QTextCodec* IRCCharsets::codecForName( const QString& shortName )
QTextCodec* IRCCharsets::codecForName(const QString& shortName) const
{
// Qt 5 / KCharsets seem to no longer support jis7 in common builds, but we have
// to assume existing user config.
......
......@@ -44,10 +44,10 @@ namespace Konversation
*/
QStringList availableEncodingDescriptiveNames() const;
int availableEncodingsCount();
int availableEncodingsCount() const;
QString shortNameToDescriptiveName( const QString& shortName );
QString descriptiveNameToShortName( const QString& descriptiveName );
QString shortNameToDescriptiveName(const QString& shortName) const;
QString descriptiveNameToShortName(const QString& descriptiveName) const;
/**
* Converts the ambiguous encoding name to a short encoding name
......@@ -55,28 +55,28 @@ namespace Konversation
* If the ambiguous name is invalid, returns QString:null.
* @return a short encoding name or QString()
*/
QString ambiguousNameToShortName( const QString& ambiguousName );
QString ambiguousNameToShortName(const QString& ambiguousName) const;
/**
* Returns the encoding index in the short names list or the descriptions list.
* If the encoding name is invalid, returns -1.
* @return an index number of the encoding
*/
int shortNameToIndex( const QString& shortName );
int shortNameToIndex(const QString& shortName) const;
/**
* Checks if the encoding name is in the short encoding names.
* @see availableEncodingShortNames()
*/
bool isValidEncoding( const QString& shortName );
bool isValidEncoding(const QString& shortName) const;
/**
* Returns the short name of the most suitable encoding for this locale.
* @return a short encoding name
*/
QString encodingForLocale();
QString encodingForLocale() const;
QTextCodec* codecForName( const QString& shortName );
QTextCodec* codecForName(const QString& shortName) const;
private:
/**
......
......@@ -95,21 +95,21 @@ QString IRCQueue::pop()
return msg.text();
}
int IRCQueue::nextSize()
int IRCQueue::nextSize() const
{
if (m_pending.isEmpty())
return 0;
return m_pending.first().text().length();
}
int IRCQueue::currentWait()
int IRCQueue::currentWait() const
{
if (m_pending.isEmpty())
return 0;
return m_pending.first().age();
}
int IRCQueue::elapsed()
int IRCQueue::elapsed() const
{
if (!m_startedAt.isValid())
return 0;
......
......@@ -84,7 +84,7 @@ public:
int m_rate;
int m_interval;
RateType m_type;
bool isValid() { return m_rate > 0; }
bool isValid() const { return m_rate > 0; }
bool operator==(const EmptyingRate& o) const
{
return (m_rate == o.m_rate && m_interval == o.m_interval && m_type == o.m_type)? true : false;
......@@ -98,21 +98,21 @@ public:
void reset();
EmptyingRate& getRate();// { return &m_rate; }
bool isValid() { return m_rate.isValid(); }
bool isEmpty() { return m_pending.isEmpty(); }
bool isValid() const { return m_rate.isValid(); }
bool isEmpty() const { return m_pending.isEmpty(); }
//WTF? why are there two of these.
//These are decoupled for a reason, what is it?
int currentWait(); ///< Time in ms that the front has been waiting
int elapsed(); ///< How long has the queue been running since it was last started?
int currentWait() const; ///< Time in ms that the front has been waiting
int elapsed() const; ///< How long has the queue been running since it was last started?
int nextSize(); ///< Current size of front
int pendingMessages() { return m_pending.count(); }
int nextSize() const; ///< Current size of front
int pendingMessages() const { return m_pending.count(); }
int linesSent() const; ///< count of lines sent by this queue
int bytesSent() const; ///< count of bytes sent by this queue
///Time in milliseconds that the previous message waited
int lastWait() { return m_lastWait; }
int lastWait() const { return m_lastWait; }
public Q_SLOTS:
void sent(int bytes, int encodedBytes, IRCQueue *); ///< feedback statistics
......
......@@ -87,7 +87,7 @@ QDateTime NickInfo::getOnlineSince() const
return m_onlineSince;
}
uint NickInfo::getNickColor()
uint NickInfo::getNickColor() const
{
// do we already have a color?
if (!m_nickColor) m_nickColor = Konversation::colorForNick(m_nickname) + 1;
......@@ -205,7 +205,7 @@ QString NickInfo::tooltip() const
}
QString NickInfo::getBestAddresseeName()
QString NickInfo::getBestAddresseeName() const
{
if(!getRealName().isEmpty())
{
......@@ -248,7 +248,7 @@ void NickInfo::setPrintedOnline(bool printed)
m_printedOnline=printed;
}
bool NickInfo::getPrintedOnline()
bool NickInfo::getPrintedOnline() const
{
return m_printedOnline;
}
......
......@@ -51,7 +51,7 @@ class NickInfo : public QSharedData
QString getNetServer() const;
QString getNetServerInfo() const;
QDateTime getOnlineSince() const;
uint getNickColor();
uint getNickColor() const;
/** Whether this user is identified with nickserv.
* Found only by doing /whois nick
*/
......@@ -101,10 +101,10 @@ class NickInfo : public QSharedData
*
* @return A string to show the user for the name of this contact
*/
QString getBestAddresseeName();
QString getBestAddresseeName() const;
void setPrintedOnline(bool printed);
bool getPrintedOnline();
bool getPrintedOnline() const;
QString account() const { return m_account; }
void setAccount(const QString &name);
......@@ -136,7 +136,7 @@ class NickInfo : public QSharedData
bool m_printedOnline;
/* The color index for lookup on Preferences::NickColor(index).name()
Internally stored as index-1 to allow checking for 0 */
uint m_nickColor;
mutable uint m_nickColor;
QString m_account;
......
......@@ -141,7 +141,7 @@ bool NicksOnline::eventFilter(QObject*obj, QEvent* event )
return ChatWindow::eventFilter( obj, event );
}
QTreeWidget* NicksOnline::getNickListView()
QTreeWidget* NicksOnline::getNickListView() const
{
return m_nickListView;
}
......@@ -153,7 +153,8 @@ QTreeWidget* NicksOnline::getNickListView()
* @param type The type of entry to be found
* @return Pointer to the child QListViewItem or 0 if not found.
*/
QTreeWidgetItem* NicksOnline::findItemChild(const QTreeWidgetItem* parent, const QString& name, NicksOnlineItem::NickListViewColumn type)
QTreeWidgetItem* NicksOnline::findItemChild(const QTreeWidgetItem* parent, const QString& name,
NicksOnlineItem::NickListViewColumn type) const
{
if (!parent) return nullptr;
for (int i = 0; i < parent->childCount(); ++i)
......@@ -170,7 +171,7 @@ QTreeWidgetItem* NicksOnline::findItemChild(const QTreeWidgetItem* parent, const
* @param type The type of entry to be found
* @return Pointer to the child QListViewItem or 0 if not found.
*/
QTreeWidgetItem* NicksOnline::findItemType(const QTreeWidgetItem* parent, NicksOnlineItem::NickListViewColumn type)
QTreeWidgetItem* NicksOnline::findItemType(const QTreeWidgetItem* parent, NicksOnlineItem::NickListViewColumn type) const
{
if (!parent) return nullptr;
for (int i = 0; i < parent->childCount(); ++i)
......@@ -186,7 +187,7 @@ QTreeWidgetItem* NicksOnline::findItemType(const QTreeWidgetItem* parent, NicksO
* @param name The name of the network.
* @return Pointer to the QListViewItem or 0 if not found.
*/
QTreeWidgetItem* NicksOnline::findNetworkRoot(int serverGroupId)
QTreeWidgetItem* NicksOnline::findNetworkRoot(int serverGroupId) const
{
for (int i = 0; i < m_nickListView->invisibleRootItem()->childCount(); ++i)
{
......@@ -207,7 +208,7 @@ QTreeWidgetItem* NicksOnline::findNetworkRoot(int serverGroupId)
* @return needWhois True if a WHOIS needs to be performed on the nick
* to get additional information.
*/
QString NicksOnline::getNickAdditionalInfo(NickInfoPtr nickInfo, bool& needWhois)
QString NicksOnline::getNickAdditionalInfo(NickInfoPtr nickInfo, bool& needWhois) const
{
Q_UNUSED(needWhois)
......@@ -400,7 +401,7 @@ void NicksOnline::updateServerOnlineList(Server* servr)
* @param nickname Nick name.
* @return NickInfo if nick is online in any server, otherwise 0.
*/
NickInfoPtr NicksOnline::getOnlineNickInfo(QString& networkName, QString& nickname)
NickInfoPtr NicksOnline::getOnlineNickInfo(const QString& networkName, const QString& nickname) const
{
// Get list of pointers to all servers.
Application* konvApp = Application::instance();
......@@ -557,7 +558,7 @@ void NicksOnline::processDoubleClick(QTreeWidgetItem* item, int column)
* @return serverName Name of the server for the nick at the item, or Null if not a nick.
* @return nickname The nickname at the item.
*/
bool NicksOnline::getItemServerAndNick(const QTreeWidgetItem* item, QString& serverName, QString& nickname)
bool NicksOnline::getItemServerAndNick(const QTreeWidgetItem* item, QString& serverName, QString& nickname) const
{
if (!item) return false;
// convert into NicksOnlineItem
......@@ -576,7 +577,7 @@ bool NicksOnline::getItemServerAndNick(const QTreeWidgetItem* item, QString& ser
return true;
}
NickInfoPtr NicksOnline::getNickInfo(const QTreeWidgetItem* item)
NickInfoPtr NicksOnline::getNickInfo(const QTreeWidgetItem* item) const
{
QString serverName;
QString nickname;
......@@ -604,7 +605,7 @@ NickInfoPtr NicksOnline::getNickInfo(const QTreeWidgetItem* item)
* @see getItemServerAndNick
*/
QTreeWidgetItem* NicksOnline::getServerAndNickItem(const QString& serverName,
const QString& nickname)
const QString& nickname) const
{
Server* server = Application::instance()->getConnectionManager()->getServerByName(serverName);
if (!server) return nullptr;
......
......@@ -50,8 +50,8 @@ class NicksOnline : public ChatWindow
~NicksOnline() override;
// These are here for the benefit of NicksOnlineTooltip.
QTreeWidget* getNickListView();
NickInfoPtr getNickInfo(const QTreeWidgetItem* item);
QTreeWidget* getNickListView() const;
NickInfoPtr getNickInfo(const QTreeWidgetItem* item) const;
bool canBeFrontView() override { return true; }
......@@ -115,20 +115,21 @@ class NicksOnline : public ChatWindow
* @param type The type of entry to be found
* @return Pointer to the child QListViewItem or 0 if not found.
*/
QTreeWidgetItem* findItemChild(const QTreeWidgetItem* parent, const QString& name, NicksOnlineItem::NickListViewColumn type);
QTreeWidgetItem* findItemChild(const QTreeWidgetItem* parent, const QString& name,
NicksOnlineItem::NickListViewColumn type) const;
/**
* Returns the first occurrence of a child item of a given type in a NicksOnlineItem
* @param parent Pointer to a NicksOnlineItem.
* @param type The type of entry to be found
* @return Pointer to the child QListViewItem or 0 if not found.
*/
QTreeWidgetItem* findItemType(const QTreeWidgetItem* parent, NicksOnlineItem::NickListViewColumn type);
QTreeWidgetItem* findItemType(const QTreeWidgetItem* parent, NicksOnlineItem::NickListViewColumn type) const;
/**
* Returns a pointer to the network QListViewItem with the given name.
* @param name The name of the network, assumed to be in column 0 of the item.
* @return Pointer to the QListViewItem or 0 if not found.
*/
QTreeWidgetItem* findNetworkRoot(int serverGroupId);
QTreeWidgetItem* findNetworkRoot(int serverGroupId) const;
/**
* Refresh the nicklistview for all servers.
*/
......@@ -146,14 +147,14 @@ class NicksOnline : public ChatWindow
* @return needWhois True if a WHOIS needs to be performed on the nick
* to get additional information.
*/
QString getNickAdditionalInfo(NickInfoPtr nickInfo, bool& needWhois);
QString getNickAdditionalInfo(NickInfoPtr nickInfo, bool& needWhois) const;
/**
* Returns the server name and nickname of the specified nicklistview item.
* @param item The nicklistview item.
* @return serverName Name of the server for the nick at the item, or Null if not a nick.
* @return nickname The nickname at the item.
*/
bool getItemServerAndNick(const QTreeWidgetItem* item, QString& serverName, QString& nickname);
bool getItemServerAndNick(const QTreeWidgetItem* item, QString& serverName, QString& nickname) const;
/**
* Given a server name and nickname, returns the item in the Nick List View displaying
* the nick.
......@@ -163,7 +164,7 @@ class NicksOnline : public ChatWindow
*
* @see getItemServerAndNick
*/
QTreeWidgetItem* getServerAndNickItem(const QString& serverName, const QString& nickname);
QTreeWidgetItem* getServerAndNickItem(const QString& serverName, const QString& nickname) const;
/**
* Perform an command.
* @param id The command id. @ref CommandIDs.
......@@ -192,7 +193,7 @@ class NicksOnline : public ChatWindow
* @param nickname Nick name.
* @return NickInfo if nick is online in any server, otherwise 0.
*/
NickInfoPtr getOnlineNickInfo(QString& networkName, QString& nickname);
NickInfoPtr getOnlineNickInfo(const QString& networkName, const QString& nickname) const;
/**
* Requests a WHOIS for a specified server network and nickname.
* The request is sent to the first server found in the network.
......
......@@ -2062,7 +2062,7 @@ namespace Konversation
// # & + and ! are *often*, but not necessarily, channel identifiers. + and ! are non-RFC,
// so if a server doesn't offer 005 and supports + and ! channels, I think thats broken
// behaviour on their part - not ours.
bool OutputFilter::isAChannel(const QString &check)
bool OutputFilter::isAChannel(const QString &check) const
{
if (check.isEmpty())
return false;
......@@ -2071,7 +2071,7 @@ namespace Konversation
return m_server? m_server->isAChannel(check) : bool(QStringLiteral("#&").contains(check.at(0)));
}
bool OutputFilter::isParameter(const QString& parameter, const QString& string)
bool OutputFilter::isParameter(const QString& parameter, const QString& string) const
{
QRegExp rx(QStringLiteral("^[\\-]{1,2}%1$").arg(parameter), Qt::CaseInsensitive);
......
......@@ -208,8 +208,8 @@ namespace Konversation
OutputFilterResult handleBan(const OutputFilterInput& input, bool kick);
OutputFilterResult changeMode(const QString& parameter, const QString& destination, char mode, char giveTake);
bool isAChannel(const QString& check);
bool isParameter(const QString& parameter, const QString& string);
bool isAChannel(const QString& check) const;
bool isParameter(const QString& parameter, const QString& string) const;
OutputFilterResult usage(const QString& check);
OutputFilterResult info(const QString& check);
OutputFilterResult error(const QString& check);
......
......@@ -383,7 +383,7 @@ void Query::nickInfoChanged()
emitUpdateInfo();
}
NickInfoPtr Query::getNickInfo()
NickInfoPtr Query::getNickInfo() const