|
The Pedigree Project 0.1
|
#include <User.h>
Collaboration diagram for User:Public Member Functions | |
| User (size_t uid, const String &username, const String &fullName, Group *pGroup, const String &home, const String &shell) | |
| virtual | ~User () |
| void | join (Group *pGroup) |
| void | leave (Group *pGroup) |
| bool | isMember (Group *pGroup) |
| bool | login () |
| size_t | getId () const |
| const String & | getUsername () const |
| const String & | getFullName () const |
| Group * | getDefaultGroup () |
| const String & | getHome () const |
| const String & | getShell () const |
Private Member Functions | |
| User () | |
| User (const User &) | |
| User & | operator= (const User &) |
Private Attributes | |
| size_t | m_Uid |
| String | m_Username |
| String | m_FullName |
| Group * | m_pDefaultGroup |
| String | m_Home |
| String | m_Shell |
| List< Group * > | m_Groups |
|
private |
It doesn't make sense for a User to have a default or copy constructor.
|
inline |
Retrieves the user's default group.
Definition at line 72 of file User.h.
Referenced by UserManager::initialise().
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
Retrieves the user's UID.
Definition at line 60 of file User.h.
Referenced by ProcFs::addProcess().
Here is the caller graph for this function:
|
inline |
|
inline |
Retrieves the user's username.
Definition at line 64 of file User.h.
Referenced by UserManager::getUser().
Here is the caller graph for this function:| bool User::isMember | ( | Group * | pGroup | ) |
Queries a group membership.
Definition at line 55 of file User.cc.
References List< T, nodePoolSize >::begin(), List< T, nodePoolSize >::end(), m_Groups, and m_pDefaultGroup.
| void User::join | ( | Group * | pGroup | ) |
Adds a group membership.
Definition at line 42 of file User.cc.
References m_Groups, and List< T, nodePoolSize >::pushBack().
| void User::leave | ( | Group * | pGroup | ) |
Removes a group membership.
Definition at line 46 of file User.cc.
References List< T, nodePoolSize >::begin(), List< T, nodePoolSize >::end(), List< T, nodePoolSize >::erase(), and m_Groups.
| bool User::login | ( | ) |
Sets this process' identity to this user and its default group.
Definition at line 65 of file User.cc.
References ProcessorBase::information(), m_Groups, and m_pDefaultGroup.
|
private |