diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:45 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:45 +0200 |
| commit | 23c5e7d57e1e9216f4da3446656df2dc7202975d (patch) | |
| tree | b387afc4ad6acad4681252df8ce8def5dc8aa54d /user.h | |
| parent | 9dcec1feba68dc5ba38cdc634f5bf113c0f77348 (diff) | |
tagging ychat-0.1ychat-0.1
Diffstat (limited to 'user.h')
| -rw-r--r--[-rwxr-xr-x] | user.h | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -3,7 +3,6 @@ #define USER_H #include "incl.h" -#include "hmap.h" #include "name.h" using namespace std; @@ -27,7 +26,6 @@ private: room* p_room; // pointer to the user's room. pthread_mutex_t mut_b_online; - pthread_mutex_t mut_i_sock; pthread_mutex_t mut_l_time; pthread_mutex_t mut_s_mess; pthread_mutex_t mut_p_room; @@ -40,6 +38,9 @@ public: string get_col1() const { return s_col1; } void set_col1 ( string s_col1 ) { this -> s_col1 = s_col1; } + int get_sock() const { return i_sock; } + void set_sock ( int i_sock ) { this -> i_sock = i_sock; } + rang get_rang ( ) const { return r_rang; } void set_rang ( rang r_rang ) { r_oldr = this -> r_rang; this -> r_rang = r_rang; } @@ -59,18 +60,12 @@ public: virtual void set_online( bool b_online ); virtual room* get_p_room(); virtual void set_p_room( room* p_room ); - virtual int get_sock ( ); - virtual void set_sock ( int i_sock ); - // executes a command. - virtual void command( string &s_command ); + virtual void renew_stamp(); // 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. |
