diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:46 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:46 +0200 |
| commit | 07706f56cd421bf8b101a5c0fe44674d36e161a0 (patch) | |
| tree | bec8b45765788370fbd148d68e05d8b437e60670 /user.h | |
| parent | 56187184e11b085b82584d3b088c62f427aae83c (diff) | |
tagging ychat-0.5.1ychat-0.5.1
Diffstat (limited to 'user.h')
| -rwxr-xr-x | user.h | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -3,8 +3,9 @@ #define USER_H #include "incl.h" +#include "hmap.h" #include "name.h" - +#include "s_lang.h" using namespace std; class room; @@ -19,6 +20,7 @@ private: long l_time; // user's last activity time. rang r_rang; // user's rang ( see enum rang @ globals.h ). rang r_oldr; // user's previous rang. + string s_id; string s_agnt; // user's http user agent. string s_away; // user's last away message. string s_col1; // user's nick color. @@ -37,6 +39,8 @@ public: // small inline methods: string get_col1() const { return s_col1; } + string get_id() const { return s_id; } + void set_id ( string s_id ) { this -> s_id = s_id; } void set_col1 ( string s_col1 ) { this -> s_col1 = s_col1; } rang get_rang ( ) const { return r_rang; } @@ -61,19 +65,20 @@ public: virtual int get_sock ( ); virtual void set_sock ( int i_sock ); - - virtual void renew_stamp(); + // executes a command. + virtual void command( string &s_command ); // gets the message and clears s_mess; virtual string get_mess(); + // actualizes the user's timestamp. + virtual void renew_stamp(); + // Here are starting methods which are mainly needed by the data<type> class. // appends a string to s_mess including br. virtual void msg_post( string *p_msg ); - virtual void get_user_list( string &s_list, string &s_seperator ); - }; #endif |
