mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
26 lines
614 B
C++
26 lines
614 B
C++
#ifndef CHATCHANNEL_H
|
|
#define CHATCHANNEL_H
|
|
|
|
#include <QList>
|
|
#include <QObject>
|
|
|
|
class ServerSocket;
|
|
|
|
class ChatChannel : public QObject, public QList<ServerSocket *> {
|
|
Q_OBJECT
|
|
signals:
|
|
void channelInfoChanged();
|
|
private:
|
|
QString name;
|
|
QString description;
|
|
public:
|
|
ChatChannel(const QString &_name, const QString &_description);
|
|
QString getName() const { return name; }
|
|
QString getDescription() const { return description; }
|
|
void addPlayer(ServerSocket *player);
|
|
void removePlayer(ServerSocket *player);
|
|
void say(ServerSocket *player, const QString &s);
|
|
QString getChannelListLine() const;
|
|
};
|
|
|
|
#endif
|