diff options
Diffstat (limited to 'Source/Kernel/UserManager/Group.class.h')
-rw-r--r-- | Source/Kernel/UserManager/Group.class.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Source/Kernel/UserManager/Group.class.h b/Source/Kernel/UserManager/Group.class.h new file mode 100644 index 0000000..e515058 --- /dev/null +++ b/Source/Kernel/UserManager/Group.class.h @@ -0,0 +1,22 @@ +#ifndef DEF_GROUP_CLASS_H +#define DEF_GROUP_CLASS_H + +#include <UserManager/Usr.ns.h> + +class Group { + friend void Usr::load(); + + private: + Group(String name, u32int gid) : m_name(name), m_gid(gid) {} + + String m_name; + u32int m_gid; + + public: + void setName(String wat) { m_name = wat; Usr::save(); } + + String getName() { return m_name; } + u32int getGid() { return m_gid; } +}; + +#endif |