diff options
Diffstat (limited to 'src/channel.h')
-rw-r--r-- | src/channel.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/channel.h b/src/channel.h index c094aedc..d9f72c12 100644 --- a/src/channel.h +++ b/src/channel.h @@ -19,8 +19,13 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#ifndef CHANNEL_H +#define CHANNEL_H + #include <string> +#include "gui/widgets/channeltab.h" + class Channel { public: @@ -64,8 +69,17 @@ class Channel void setAnnouncement(const std::string &channelAnnouncement) { mAnnouncement = channelAnnouncement; } + ChannelTab *getTab() { return mTab; } + + protected: + friend class ChannelTab; + void setTab(ChannelTab *tab) { mTab = tab; } + private: unsigned short mId; std::string mName; std::string mAnnouncement; + ChannelTab *mTab; }; + +#endif // CHANNEL_H |