2013-01-11 23:46:01 -05:00
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
#pragma once
|
|
|
|
|
2013-01-11 23:46:01 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
class cGroup;
|
2013-01-11 23:46:01 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
class cGroupManager
|
|
|
|
{
|
|
|
|
public:
|
2014-02-21 08:53:46 -05:00
|
|
|
bool ExistsGroup(const AString & a_Name);
|
2013-01-11 23:46:01 -05:00
|
|
|
cGroup * GetGroup(const AString & a_Name);
|
2014-02-05 12:10:08 -05:00
|
|
|
void LoadGroups(void);
|
2014-02-21 08:53:46 -05:00
|
|
|
void CheckUsers(void);
|
2013-01-11 23:46:01 -05:00
|
|
|
|
2014-02-28 09:31:20 -05:00
|
|
|
/** Writes the default header to the specified ini file, and saves it as "users.ini". */
|
|
|
|
static void GenerateDefaultUsersIni(cIniFile & a_IniFile);
|
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
private:
|
|
|
|
friend class cRoot;
|
|
|
|
cGroupManager();
|
|
|
|
~cGroupManager();
|
|
|
|
|
|
|
|
struct sGroupManagerState;
|
2013-01-11 23:46:01 -05:00
|
|
|
sGroupManagerState * m_pState;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|