Restore the "GPL licensing not permitted" in GLUT license headers.
[haiku.git] / headers / os / package / GlobalWritableFileInfo.h
blob07553174c71137fafad0c193774b07f94e828de1
1 /*
2 * Copyright 2013, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _PACKAGE__GLOBAL_WRITABLE_FILE_INFO_H_
6 #define _PACKAGE__GLOBAL_WRITABLE_FILE_INFO_H_
9 #include <package/WritableFileUpdateType.h>
10 #include <String.h>
13 namespace BPackageKit {
16 namespace BHPKG {
17 struct BGlobalWritableFileInfoData;
21 class BGlobalWritableFileInfo {
22 public:
23 BGlobalWritableFileInfo();
24 BGlobalWritableFileInfo(
25 const BHPKG::BGlobalWritableFileInfoData&
26 infoData);
27 BGlobalWritableFileInfo(const BString& path,
28 BWritableFileUpdateType updateType,
29 bool isDirectory);
30 ~BGlobalWritableFileInfo();
32 status_t InitCheck() const;
34 const BString& Path() const;
35 bool IsIncluded() const;
36 BWritableFileUpdateType UpdateType() const;
37 bool IsDirectory() const;
39 void SetTo(const BString& path,
40 BWritableFileUpdateType updateType,
41 bool isDirectory);
43 private:
44 BString fPath;
45 BWritableFileUpdateType fUpdateType;
46 bool fIsDirectory;
50 } // namespace BPackageKit
53 #endif // _PACKAGE__GLOBAL_WRITABLE_FILE_INFO_H_