26 lines
462 B
C++
26 lines
462 B
C++
#ifndef CHANNEL_H
|
|
#define CHANNEL_H
|
|
|
|
#include <string>
|
|
#include "nameable.h"
|
|
#include "ircserver.h"
|
|
|
|
class Channel: public Nameable {
|
|
private:
|
|
std::string channel_name;
|
|
std::string topic;
|
|
|
|
public:
|
|
Channel(IRCServer* server, std::string channel_name);
|
|
~Channel();
|
|
|
|
void send_direct(std::vector<IRCCommand> messages);
|
|
|
|
std::string get_topic();
|
|
bool has_topic();
|
|
void set_topic(std::string topic);
|
|
|
|
NameableType what_are_you() override;
|
|
};
|
|
|
|
#endif |