Channel Class Reference

#include <channel.h>

Inherits UserList.

Collaboration diagram for Channel:
Collaboration graph
[legend]

Public Types

typedef std::map< wxString,
User * > 
user_map_t
 mapping from nick to user object
typedef user_map_t::iterator user_iter_t
 iterator for user map
typedef user_map_t::const_iterator user_const_iter_t

Public Member Functions

 Channel (Server &serv)
virtual ~Channel ()
ServerGetServer ()
void SetName (const wxString &name)
wxString GetName ()
UserGetMe ()
void CheckBanned (const wxString &name)
bool IsBanned (const wxString &name)
void Say (const wxString &message)
void DoAction (const wxString &action)
void Leave ()
void Rejoin ()
void Said (User &who, const wxString &message)
void DidAction (User &who, const wxString &action)
void Left (User &who, const wxString &reason)
void Joined (User &who)
void OnChannelJoin (User &who)
void SetTopic (const wxString &topic, const wxString &who)
wxString GetTopic ()
wxString GetTopicSetBy ()
bool ExecuteSayCommand (const wxString &in)
wxString GetPassword ()
void SetPassword (const wxString &pw)
UserGetUser (wxString const &nick) const
UserGetUser (user_map_t::size_type index) const
bool UserExists (wxString const &nick) const
user_map_t::size_type GetNumUsers () const
void Nullify ()

Data Fields

UiChannelData uidata

Protected Member Functions

void AddUser (User &user)
void RemoveUser (const wxString &nick)

Protected Attributes

Serverm_serv
std::set< wxStringm_banned_users
bool m_do_ban_regex
wxRegEx m_ban_regex
bool m_do_unban_regex
wxRegEx m_unban_regex
wxString m_ban_regex_msg
wxString m_topic
wxString m_topic_nick
wxString m_name
void * m_userdata
wxString m_password

Detailed Description

Definition at line 20 of file channel.h.


Member Typedef Documentation

typedef user_map_t::const_iterator UserList::user_const_iter_t [inherited]

Definition at line 16 of file userlist.h.

typedef user_map_t::iterator UserList::user_iter_t [inherited]

iterator for user map

Definition at line 15 of file userlist.h.

typedef std::map<wxString, User*> UserList::user_map_t [inherited]

mapping from nick to user object

Definition at line 13 of file userlist.h.


Constructor & Destructor Documentation

Channel::Channel ( Server serv  ) 

Definition at line 17 of file channel.cpp.

Channel::~Channel (  )  [virtual]

Definition at line 24 of file channel.cpp.


Member Function Documentation

void Channel::AddUser ( User user  )  [protected]

Reimplemented from UserList.

Definition at line 124 of file channel.cpp.

void Channel::CheckBanned ( const wxString name  ) 

Definition at line 130 of file channel.cpp.

void Channel::DidAction ( User who,
const wxString action 
)

Definition at line 59 of file channel.cpp.

void Channel::DoAction ( const wxString action  ) 

Definition at line 65 of file channel.cpp.

bool Channel::ExecuteSayCommand ( const wxString in  ) 

this instance is not replaced with GetAppname for sake of help/debug online

Definition at line 159 of file channel.cpp.

User & Channel::GetMe (  ) 

Definition at line 40 of file channel.cpp.

wxString Channel::GetName (  ) 

Definition at line 34 of file channel.cpp.

UserList::user_map_t::size_type UserList::GetNumUsers (  )  const [inherited]

Definition at line 52 of file userlist.cpp.

wxString Channel::GetPassword (  ) 

Definition at line 232 of file channel.cpp.

Server& Channel::GetServer (  )  [inline]

Definition at line 30 of file channel.h.

wxString Channel::GetTopic (  ) 

Definition at line 118 of file channel.cpp.

wxString Channel::GetTopicSetBy (  ) 

Definition at line 112 of file channel.cpp.

User & UserList::GetUser ( user_map_t::size_type  index  )  const [inherited]

Definition at line 36 of file userlist.cpp.

User & UserList::GetUser ( wxString const &  nick  )  const [inherited]

Definition at line 28 of file userlist.cpp.

bool Channel::IsBanned ( const wxString name  ) 

Definition at line 143 of file channel.cpp.

void Channel::Joined ( User who  ) 

Definition at line 90 of file channel.cpp.

void Channel::Leave (  ) 

Definition at line 79 of file channel.cpp.

void Channel::Left ( User who,
const wxString reason 
)

Definition at line 72 of file channel.cpp.

void UserList::Nullify (  )  [inherited]

Definition at line 57 of file userlist.cpp.

void Channel::OnChannelJoin ( User who  ) 

Definition at line 97 of file channel.cpp.

void Channel::Rejoin (  ) 

Definition at line 84 of file channel.cpp.

void Channel::RemoveUser ( const wxString nick  )  [protected]

Reimplemented from UserList.

Definition at line 153 of file channel.cpp.

void Channel::Said ( User who,
const wxString message 
)

Definition at line 46 of file channel.cpp.

void Channel::Say ( const wxString message  ) 

Definition at line 52 of file channel.cpp.

void Channel::SetName ( const wxString name  ) 

Definition at line 28 of file channel.cpp.

void Channel::SetPassword ( const wxString pw  ) 

Definition at line 238 of file channel.cpp.

void Channel::SetTopic ( const wxString topic,
const wxString who 
)

Definition at line 104 of file channel.cpp.

bool UserList::UserExists ( wxString const &  nick  )  const [inherited]

Definition at line 47 of file userlist.cpp.


Field Documentation

wxRegEx Channel::m_ban_regex [protected]

Definition at line 70 of file channel.h.

Definition at line 75 of file channel.h.

std::set<wxString> Channel::m_banned_users [protected]

Definition at line 67 of file channel.h.

bool Channel::m_do_ban_regex [protected]

Definition at line 69 of file channel.h.

bool Channel::m_do_unban_regex [protected]

Definition at line 72 of file channel.h.

Definition at line 79 of file channel.h.

Definition at line 83 of file channel.h.

Server& Channel::m_serv [protected]

Definition at line 65 of file channel.h.

Definition at line 77 of file channel.h.

Definition at line 78 of file channel.h.

wxRegEx Channel::m_unban_regex [protected]

Definition at line 73 of file channel.h.

void* Channel::m_userdata [protected]

Definition at line 81 of file channel.h.

Definition at line 24 of file channel.h.


The documentation for this class was generated from the following files:

Generated on Thu Dec 29 00:11:43 2011 for SpringLobby by doxygen 1.6.3