summaryrefslogtreecommitdiff
path: root/chat.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:44 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:44 +0200
commitca28c0e618890330d429c0dc12429255b20f0c90 (patch)
treeecc02da0184cf4e8bdba94dcdd831abdd1e51b3c /chat.h
parentb3a99e6e15af3be25394e66d1138bb2682f565c3 (diff)
tagging ychat-0.5.0ychat-0.5.0
Diffstat (limited to 'chat.h')
-rwxr-xr-xchat.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/chat.h b/chat.h
index bd64cb1..60bcf9d 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