2 * Copyright 2013, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
5 #ifndef _PACKAGE__USER_H_
6 #define _PACKAGE__USER_H_
10 #include <StringList.h>
13 namespace BPackageKit
{
24 BUser(const BHPKG::BUserData
& userData
);
25 BUser(const BString
& name
,
26 const BString
& realName
,
27 const BString
& home
, const BString
& shell
,
28 const BStringList
& groups
);
31 status_t
InitCheck() const;
33 const BString
& Name() const;
34 const BString
& RealName() const;
35 const BString
& Home() const;
36 const BString
& Shell() const;
37 const BStringList
& Groups() const;
39 status_t
SetTo(const BString
& name
,
40 const BString
& realName
,
41 const BString
& home
, const BString
& shell
,
42 const BStringList
& groups
);
44 static bool IsValidUserName(const char* name
);
55 } // namespace BPackageKit
58 #endif // _PACKAGE__USER_H_