diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:49 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:49 +0200 |
| commit | 5ecef758a2826bd28dd0676940cd12ef6792126f (patch) | |
| tree | 94454ed763dfbaf902eef267e1dcef0b30a0db4c /chat.h | |
| parent | 5a019f435eb0068b524566d9babf172d58d0e96e (diff) | |
tagging ychat-0.4ychat-0.4
Diffstat (limited to 'chat.h')
| -rwxr-xr-x[-rw-r--r--] | chat.h | 34 |
1 files changed, 17 insertions, 17 deletions
@@ -17,30 +17,30 @@ using namespace std; class chat : public base<room> { private: - bool b_strip_html; + bool b_strip_html; public: + + room* get_room( string &s_name, bool &b_found ) + { + return static_cast<room*>( get_elem( s_name, b_found ) ); + } - room* get_room( string &s_name, bool &b_found ) - { - return static_cast<room*>( get_elem( s_name, b_found ) ); - } + // public methods: + explicit chat(); // a standard constructor. + ~chat(); // destructor. - // public methods: - explicit chat(); // a standard constructor. - ~chat(); // destructor. + // get the object of a specific user. + virtual user* get_user( string &s_nick ); + virtual user* get_user( string &s_nick, bool &b_found ); + static void get_user_( room* room_obj, void *v_arg ); - // get the object of a specific user. - virtual user* get_user( string &s_nick ); - virtual user* get_user( string &s_nick, bool &b_found ); - static void get_user_( room* room_obj, void *v_arg ); + // will be called every time a user tries to login. + virtual void login( map_string &map_params ); - // will be called every time a user tries to login. - virtual void login( map_string &map_params ); - - // will be called if a user posts a message. - virtual void post ( user* u_user, map_string &map_params ); + // will be called if a user posts a message. + virtual void post ( user* u_user, map_string &map_params ); }; #endif |
