2 * Copyright 2014, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef PACKAGE_FILE_MANAGER_H
6 #define PACKAGE_FILE_MANAGER_H
9 #include "PackageFile.h"
17 class PackageFileManager
{
19 PackageFileManager(BLocker
& lock
);
20 ~PackageFileManager();
24 status_t
GetPackageFile(const entry_ref
& entryRef
,
26 // returns a reference
27 status_t
CreatePackage(const entry_ref
& entryRef
,
30 void PackageFileMoved(PackageFile
* file
,
31 const node_ref
& newDirectory
);
33 // conceptually private
34 void RemovePackageFile(PackageFile
* file
);
37 typedef PackageFileEntryRefHashTable EntryRefTable
;
41 EntryRefTable fFilesByEntryRef
;
45 #endif // PACKAGE_FILE_MANAGER_H