forked from pcgod/libmumbleclient
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuser.h
More file actions
32 lines (25 loc) · 637 Bytes
/
user.h
File metadata and controls
32 lines (25 loc) · 637 Bytes
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
#ifndef USER_H_
#define USER_H_
namespace MumbleClient {
class Channel;
class User {
public:
User(int32_t session_, boost::shared_ptr<Channel> channel_) : session(session_), channel(channel_) { std::cout << "New user" << std::endl; }
~User() { std::cout << "User " << name << " destroyed" << std::endl; }
int32_t session;
int32_t user_id;
boost::weak_ptr<Channel> channel;
bool mute;
bool deaf;
bool suppress;
bool self_mute;
bool self_deaf;
std::string name;
std::string comment;
std::string hash;
private:
User(const User&);
void operator=(const User&);
};
} // end namespace MumbleClient
#endif // USER_H_