25#include "ksharedptr.h"
32template <
class T>
class TQValueList;
68 KUser(UIDMode mode = UseEffectiveUID);
85 KUser(
const TQString& name);
94 KUser(
const char *name);
103 KUser(
struct passwd *p);
122 bool operator ==(
const KUser& user)
const;
128 bool operator !=(
const KUser &user)
const;
135 bool isValid()
const;
156 bool isSuperUser()
const;
162 TQString loginName()
const;
168 TQString fullName()
const;
175 TQString roomNumber()
const;
182 TQString workPhone()
const;
189 TQString homePhone()
const;
196 TQString homeDir()
const;
203 TQString shell()
const;
209 TQValueList<KUserGroup> groups()
const;
215 TQStringList groupNames()
const;
227 static TQValueList<KUser> allUsers();
233 static TQStringList allUserNames();
237 void fillPasswd(
struct passwd* p);
238 void fillName(
const char* name);
241class KUserGroupPrivate;
319 bool operator ==(
const KUserGroup& group)
const;
326 bool operator !=(
const KUserGroup& group)
const;
347 TQString
name()
const;
353 const TQValueList<KUser>&
users()
const;
370 static TQValueList<KUserGroup>
allGroups();
379 void fillGroup(
struct group* g);
380 void fillName(
const char*
name);
Represents a group on your system.
KUserGroup(KUser::UIDMode mode=KUser::UseEffectiveUID)
Create an object from the group of the current user.
const TQValueList< KUser > & users() const
Returns a list of all users of the group.
static TQStringList allGroupNames()
Returns a list of all group names on this system.
TQStringList userNames() const
Returns a list of all user login names of the group.
TQString name() const
The name of the group.
bool isValid() const
Returns wether the group is valid.
long gid() const
Returns the group id of the group.
static TQValueList< KUserGroup > allGroups()
Returns a list of all groups on this system.
Represents a user on your system.
KUser(UIDMode mode=UseEffectiveUID)
Creates an object that contains information about the current user.
@ UseEffectiveUID
Use the effective user id.
@ UseRealUserID
Use the real user id.
Can be used to control the lifetime of an object that has derived TDEShared.