The complete source code of IdealIRC
http://www.idealirc.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
660 B
30 lines
660 B
#ifndef IRCMEMBER_H
|
|
#define IRCMEMBER_H
|
|
|
|
#include "IRCPrefix.h"
|
|
#include <vector>
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
class IRCChannel;
|
|
|
|
class IRCMember
|
|
{
|
|
public:
|
|
explicit IRCMember(const IRCPrefix& prefix);
|
|
explicit IRCMember(const std::string& nickname);
|
|
|
|
const IRCPrefix& prefix() const;
|
|
void setPrefix(const IRCPrefix& prefix);
|
|
const std::vector<std::weak_ptr<IRCChannel>>& channels();
|
|
void addChannel(std::weak_ptr<IRCChannel> channel);
|
|
void delChannel(std::weak_ptr<IRCChannel> channel);
|
|
|
|
void setNickname(const std::string& nickname);
|
|
|
|
private:
|
|
IRCPrefix m_prefix;
|
|
std::vector<std::weak_ptr<IRCChannel>> m_channels;
|
|
};
|
|
|
|
#endif // IRCMEMBER_H
|
|
|