#include <channel.h>
|
| Channel (short id, const std::string &name, const std::string &announcement=std::string()) |
| Constructor.
|
|
| ~Channel () |
|
int | getId () const |
| Get the id associated witht his channel.
|
|
const std::string & | getName () const |
| Get this channel's name.
|
|
const std::string & | getAnnouncement () const |
| Get the announcement message for this channel.
|
|
void | setName (const std::string &channelName) |
| Sets the name of the channel.
|
|
void | setAnnouncement (const std::string &channelAnnouncement) |
| Sets the announcement string of the channel.
|
|
ChannelTab * | getTab () |
|
Definition at line 28 of file channel.h.
◆ Channel()
Channel::Channel |
( |
short |
id, |
|
|
const std::string & |
name, |
|
|
const std::string & |
announcement = std::string() |
|
) |
| |
Constructor.
- Parameters
-
id | the id associated with the channel. |
name | the name of the channel. |
announcement | a welcome message. |
Definition at line 26 of file channel.cpp.
◆ ~Channel()
◆ getAnnouncement()
const std::string & Channel::getAnnouncement |
( |
| ) |
const |
|
inline |
Get the announcement message for this channel.
Definition at line 58 of file channel.h.
◆ getId()
int Channel::getId |
( |
| ) |
const |
|
inline |
Get the id associated witht his channel.
Definition at line 47 of file channel.h.
◆ getName()
const std::string & Channel::getName |
( |
| ) |
const |
|
inline |
Get this channel's name.
Definition at line 52 of file channel.h.
◆ getTab()
◆ setAnnouncement()
void Channel::setAnnouncement |
( |
const std::string & |
channelAnnouncement | ) |
|
|
inline |
Sets the announcement string of the channel.
Definition at line 70 of file channel.h.
◆ setName()
void Channel::setName |
( |
const std::string & |
channelName | ) |
|
|
inline |
Sets the name of the channel.
Definition at line 64 of file channel.h.
◆ mAnnouncement
std::string Channel::mAnnouncement |
|
private |
◆ mId
unsigned short Channel::mId |
|
private |
◆ mName
std::string Channel::mName |
|
private |
◆ mTab
The documentation for this class was generated from the following files: