aboutsummaryrefslogtreecommitdiff
path: root/week13/Exercise3/User.h
blob: e742181cc19035e2dba6ad4223b543dc9e04edb9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

class User {
	void free();
	void copyFrom(const User& other);

protected:
	char *name;
	char *password;
	bool banned;

public:
	User();
	virtual ~User();
	User(const User& other);
	User& operator=(const User& other);
	User(User&& other);
	User& operator=(User&& other);

	bool IsBanned() const;
	const char* GetUsername() const;

	friend class UserModerator;
};