X-Git-Url: http://git.home-dn.net/?p=manu%2Fsuphp.git;a=blobdiff_plain;f=src%2FUserInfo.hpp;h=cbaabd22b1cc390afbc82d30f906617c6fb85d47;hp=41e9b2a411ec29c1023180982af520369bab9c95;hb=849f4a7977b5780eacae8fad7a078d05f4a615ee;hpb=b0eaa3f1fbf491fdc8a3044cf20754f14254338a diff --git a/src/UserInfo.hpp b/src/UserInfo.hpp index 41e9b2a..cbaabd2 100644 --- a/src/UserInfo.hpp +++ b/src/UserInfo.hpp @@ -1,5 +1,5 @@ /* - suPHP - (c)2002-2005 Sebastian Marsching + suPHP - (c)2002-2008 Sebastian Marsching This file is part of suPHP. @@ -38,49 +38,54 @@ namespace suPHP { */ class UserInfo { private: - int uid; + int uid; public: - /** - * Constructor without arguments. - * Does not create a "valid" object, since it has no well defined UID - */ - UserInfo(); - - /** - * Constructor (takes UID) - */ - UserInfo(int uid); - - /** - * Returns username - */ - std::string getUsername() const throw (LookupException); - - /** - * Returns UID - */ - int getUid() const; + /** + * Constructor without arguments. + * Does not create a "valid" object, since it has no well defined UID + */ + UserInfo(); + + /** + * Constructor (takes UID) + */ + UserInfo(int uid); + + /** + * Returns username + */ + std::string getUsername() const throw (LookupException); + + /** + * Returns UID + */ + int getUid() const; - /** - * Returns primary group - */ - GroupInfo getGroupInfo() const throw (LookupException); - - /** - * Checks wheter user is super-user - */ - bool isSuperUser(); - - /** - * Compares to UserInfo objects for equality (same UID) - */ - bool operator==(const UserInfo& uinfo) const; + /** + * Returns primary group + */ + GroupInfo getGroupInfo() const throw (LookupException); + + /** + * Returns home directory + */ + std::string getHomeDirectory() const throw (LookupException); + + /** + * Checks wheter user is super-user + */ + bool isSuperUser(); + + /** + * Compares to UserInfo objects for equality (same UID) + */ + bool operator==(const UserInfo& uinfo) const; - /** - * Overloaded operator - */ - bool operator!=(const UserInfo& uinfo) const; - + /** + * Overloaded operator + */ + bool operator!=(const UserInfo& uinfo) const; + }; };