23 #ifndef __IRCCHANNELADAPTER_H__ 24 #define __IRCCHANNELADAPTER_H__ 26 #include "irc/ircchatadapter.h" 27 #include <QStringList> 45 return ChannelAdapter;
76 void banUser(
const QString &nickname,
const QString &reason);
83 void emitChatMessage(
const QString &sender,
const QString &content)
override;
85 bool hasUser(
const QString &nickname);
90 bool isOperator(
const QString &nickname)
const;
101 void kickUser(
const QString &nickname,
const QString &reason);
114 void setHalfOp(
const QString &nickname,
bool bSet);
121 void setOp(
const QString &nickname,
bool bSet);
128 void setVoiced(
const QString &nickname,
bool bSet);
135 void userJoins(
const QString &nickname,
const QString &fullSignature)
override;
136 void userLeaves(
const QString &nickname,
const QString &farewellMessage, IRCQuitType quitType)
override;
142 void userModeChanges(
const QString &nickname,
const QList<char> &addedFlags,
const QList<char> &removedFlags)
override;
167 bool addName(
const QString &name);
Interprets communication between the client and the IRC server.
void userLeaves(const QString &nickname, const QString &farewellMessage, IRCQuitType quitType) override
Use this to register the fact that user has left the chat.
Allows to perform operation on a list of users.
void emitCachedNameListUpdated()
Emits cached list of names. This should be called when end of names list message is received for this...
Class type that is used for conversations within a channel.
void myNicknameUsed()
Emitted when nickname is used in a message.
void kickUser(const QString &nickname, const QString &reason)
Kicks user from the channel.
void userJoins(const QString &nickname, const QString &fullSignature) override
Use this to register the fact that user has joined the chat.
void removeNameFromCachedList(const QString &name)
Removes a name from the sortecd cachedNames list.
void setHalfOp(const QString &nickname, bool bSet)
Sets half op mode for given user.
void appendNamesToCachedList(const QStringList &names)
Appends a list of names to cachedNames list. This ensures that no duplicate names are found on the li...
void userChangesNickname(const QString &oldNickname, const QString &newNickname) override
bool amIOperator() const
Checks if this client is an operator on this channel.
Handles chatting through IRC.
AdapterType adapterType() const override
Gets adapter type for this adapter instance.
void banUser(const QString &nickname, const QString &reason)
Bans and kicks user from the channel.
void emitChatMessage(const QString &sender, const QString &content) override
Emits message() signal formatting it to present sender's message.
void setVoiced(const QString &nickname, bool bSet)
Sets voice mode for given user.
AdapterType
Defines all possible types of IRC adapters.
Holds information flags about given nickname.
void setOp(const QString &nickname, bool bSet)
Sets op mode for given user.
void userModeChanges(const QString &nickname, const QList< char > &addedFlags, const QList< char > &removedFlags) override
bool isOperator(const QString &nickname) const
Checks if user is an operator on this channel.
void appendNameToCachedList(const QString &name)
Appends a single name to the sorted cachedNames list.