2 * Copyright 2013, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
5 #ifndef _PACKAGE__GLOBAL_WRITABLE_FILE_INFO_H_
6 #define _PACKAGE__GLOBAL_WRITABLE_FILE_INFO_H_
9 #include <package/WritableFileUpdateType.h>
13 namespace BPackageKit
{
17 struct BGlobalWritableFileInfoData
;
21 class BGlobalWritableFileInfo
{
23 BGlobalWritableFileInfo();
24 BGlobalWritableFileInfo(
25 const BHPKG::BGlobalWritableFileInfoData
&
27 BGlobalWritableFileInfo(const BString
& path
,
28 BWritableFileUpdateType updateType
,
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
,
45 BWritableFileUpdateType fUpdateType
;
50 } // namespace BPackageKit
53 #endif // _PACKAGE__GLOBAL_WRITABLE_FILE_INFO_H_