mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-24 15:43:54 -07:00
events
This commit is contained in:
parent
29bf3d3774
commit
8b3723b871
16 changed files with 274 additions and 77 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include <QStringList>
|
||||
|
||||
class Server_ProtocolHandler;
|
||||
class ChatEvent;
|
||||
|
||||
class Server_ChatChannel : public QObject, public QList<Server_ProtocolHandler *> {
|
||||
Q_OBJECT
|
||||
|
|
@ -15,16 +16,17 @@ private:
|
|||
QString name;
|
||||
QString description;
|
||||
bool autoJoin;
|
||||
QStringList joinMessage;
|
||||
QString joinMessage;
|
||||
public:
|
||||
Server_ChatChannel(const QString &_name, const QString &_description, bool _autoJoin, const QStringList &_joinMessage);
|
||||
Server_ChatChannel(const QString &_name, const QString &_description, bool _autoJoin, const QString &_joinMessage);
|
||||
QString getName() const { return name; }
|
||||
QString getDescription() const { return description; }
|
||||
bool getAutoJoin() const { return autoJoin; }
|
||||
void addClient(Server_ProtocolHandler *client);
|
||||
void removeClient(Server_ProtocolHandler *client);
|
||||
void say(Server_ProtocolHandler *client, const QString &s);
|
||||
QString getChannelListLine() const;
|
||||
|
||||
void sendChatEvent(ChatEvent *event);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue