blob: 27a6aa272de00b59fecb934aa3752c28123d1095 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#include "UserInfo.hpp"
void UserInfo::SetRoom(ChatRoom *new_master)
{
the_master = new_master;
}
const char *UserInfo::GetName() const
{
return name;
}
void UserInfo::SetName(const char *n_name)
{
strcpy(name, n_name);
}
const char *UserInfo::GetPassword() const
{
return password;
}
void UserInfo::SetPassword(const char *pass)
{
strcpy(password, pass);
}
void UserInfo::SetStatus(const enum_status n_status)
{
state = n_status;
}
void UserInfo::SetUserList(int list)
{
u_list = list;
}
|