summaryrefslogtreecommitdiffstats
path: root/src/GroupManager.h
blob: d42b55c4ad9658b1b4048cf005c3b2ec1c11ed61 (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
25
26
27
28
29
30
31
32
33
34
35
36

#pragma once





class cGroup;





class cGroupManager
{
public:
	bool ExistsGroup(const AString & a_Name);
	cGroup * GetGroup(const AString & a_Name);
	bool LoadGroups();
	bool CheckUsers();
	
	/** Writes the default header to the specified ini file, and saves it as "users.ini". */
	static void GenerateDefaultUsersIni(cIniFile & a_IniFile);
	
private:
	friend class cRoot;
	cGroupManager();
	~cGroupManager();

	struct sGroupManagerState;
	sGroupManagerState * m_pState;
} ;