Import upstream 0.7.1
[manu/suphp.git] / src / UserInfo.hpp
index 41e9b2a..cbaabd2 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    suPHP - (c)2002-2005 Sebastian Marsching <sebastian@marsching.com>
+    suPHP - (c)2002-2008 Sebastian Marsching <sebastian@marsching.com>
 
     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;
+        
     };
 };