23 #ifndef __IRCCHANNELADAPTER_H__
24 #define __IRCCHANNELADAPTER_H__
26 #include <QStringList>
27 #include "irc/ircchatadapter.h"
73 void banUser(
const QString& nickname,
const QString& reason);
82 bool hasUser(
const QString& nickname);
87 bool isOperator(
const QString& nickname)
const;
98 void kickUser(
const QString& nickname,
const QString& reason);
111 void setHalfOp(
const QString& nickname,
bool bSet);
118 void setOp(
const QString& nickname,
bool bSet);
125 void setVoiced(
const QString& nickname,
bool bSet);
132 void userJoins(
const QString& nickname,
const QString& fullSignature);
133 void userLeaves(
const QString& nickname,
const QString& farewellMessage, IRCQuitType quitType);
139 void userModeChanges(
const QString& nickname,
const QList<char> &addedFlags,
const QList<char> &removedFlags);
164 bool addName(
const QString& name);
Interprets communication between the client and the IRC server.
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 userJoins(const QString &nickname, const QString &fullSignature)
Use this to register the fact that user has joined the chat.
void myNicknameUsed()
Emitted when nickname is used in a message.
void userModeChanges(const QString &nickname, const QList< char > &addedFlags, const QList< char > &removedFlags)
void kickUser(const QString &nickname, const QString &reason)
Kicks user from the channel.
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...
bool amIOperator() const
Checks if this client is an operator on this channel.
Handles chatting through IRC.
void banUser(const QString &nickname, const QString &reason)
Bans and kicks user from the channel.
void userLeaves(const QString &nickname, const QString &farewellMessage, IRCQuitType quitType)
Use this to register the fact that user has left the chat.
void userChangesNickname(const QString &oldNickname, const QString &newNickname)
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.
bool isOperator(const QString &nickname) const
Checks if user is an operator on this channel.
void emitChatMessage(const QString &sender, const QString &content)
Emits message() signal formatting it to present sender's message.
AdapterType adapterType() const
Gets adapter type for this adapter instance.
void appendNameToCachedList(const QString &name)
Appends a single name to the sorted cachedNames list.