btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / package / TempfileManager.h
blob3d118b278b6968a63cbf39b566a824d10ae7071d
1 /*
2 * Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _PACKAGE__PRIVATE__TEMPFILE_MANAGER_H_
6 #define _PACKAGE__PRIVATE__TEMPFILE_MANAGER_H_
9 #include <Directory.h>
10 #include <Entry.h>
11 #include <String.h>
12 #include <SupportDefs.h>
15 namespace BPackageKit {
17 namespace BPrivate {
20 class TempfileManager {
21 public:
22 TempfileManager();
23 ~TempfileManager();
25 void SetBaseDirectory(const BDirectory& baseDir);
27 BEntry Create(const BString& baseName = kDefaultName);
29 private:
30 static const BString kDefaultName;
32 private:
33 BDirectory fBaseDirectory;
34 int32 fNextNumber;
38 } // namespace BPrivate
40 } // namespace BPackageKit
43 #endif // _PACKAGE__PRIVATE__TEMPFILE_MANAGER_H_