Restore the "GPL licensing not permitted" in GLUT license headers.
[haiku.git] / headers / os / package / User.h
blob29af4921c96b5ce50ee140f2af39b46882cd5e24
1 /*
2 * Copyright 2013, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _PACKAGE__USER_H_
6 #define _PACKAGE__USER_H_
9 #include <String.h>
10 #include <StringList.h>
13 namespace BPackageKit {
16 namespace BHPKG {
17 struct BUserData;
21 class BUser {
22 public:
23 BUser();
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);
29 ~BUser();
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);
46 private:
47 BString fName;
48 BString fRealName;
49 BString fHome;
50 BString fShell;
51 BStringList fGroups;
55 } // namespace BPackageKit
58 #endif // _PACKAGE__USER_H_