summaryrefslogtreecommitdiff
path: root/user.h
diff options
context:
space:
mode:
Diffstat (limited to 'user.h')
-rw-r--r--[-rwxr-xr-x]user.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/user.h b/user.h
index d0c182f..cc7bf91 100755..100644
--- a/user.h
+++ b/user.h
@@ -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.