23 #ifndef __IRCUSERLIST_H__ 24 #define __IRCUSERLIST_H__ 27 #include <QStringList> 63 bool changeNick(
const QString &oldNickname,
const QString &newNickname);
67 bool hasUser(
const QString &nickname)
const;
71 return usersArray[index];
81 void setUserModes(
const QString &nickname,
const QList<char> &modes);
85 return this->usersArray.size();
95 const IRCUserInfo *user(
const QString &nickname)
const;
107 QVector<IRCUserInfo *> usersArray;
109 int indexOfName(
const QString &nickname)
const;
Allows to perform operation on a list of users.
bool appendNameToCachedList(const IRCUserInfo &userInfo)
Appends a single name to the users array.
bool changeNick(const QString &oldNickname, const QString &newNickname)
Changes a nickname while preserving user flags.
IRCUserInfo userCopy(const QString &nickname) const
Gets a copy of the IRCUserInfo for user with given name.
bool removeNameFromCachedList(const QString &nickname)
Removes a name from the sortecd cachedNames list.
Holds information flags about given nickname.
QStringList toStringList() const
Returns all prefixed nicknames in a string list.