summaryrefslogtreecommitdiff
path: root/user.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:45 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:45 +0200
commited634bc556af8997b9d2d5bf7334073731936365 (patch)
treeaac5e9767c12f7bf7e98672c125554888fbbe1ac /user.h
parent5f4e214740242513c837c8a005ca23779bab1d0c (diff)
tagging ychat-0.2ychat-0.2
Diffstat (limited to 'user.h')
-rwxr-xr-x[-rw-r--r--]user.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/user.h b/user.h
index cc7bf91..1bdd79e 100644..100755
--- a/user.h
+++ b/user.h
@@ -26,6 +26,7 @@ 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;
@@ -38,9 +39,6 @@ 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; }
@@ -60,6 +58,9 @@ 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 );
+
virtual void renew_stamp();