summaryrefslogtreecommitdiff
path: root/chat.h
diff options
context:
space:
mode:
Diffstat (limited to 'chat.h')
-rwxr-xr-x[-rw-r--r--]chat.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/chat.h b/chat.h
index f8a6523..60bcf9d 100644..100755
--- a/chat.h
+++ b/chat.h
@@ -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