2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef LOCATABLE_DIRECTORY_H
6 #define LOCATABLE_DIRECTORY_H
8 #include "LocatableEntry.h"
11 class LocatableDirectory
: public LocatableEntry
{
13 LocatableDirectory(LocatableEntryOwner
* owner
,
14 LocatableDirectory
* parent
,
16 ~LocatableDirectory();
18 virtual const char* Name() const;
19 const char* Path() const;
20 void GetPath(BString
& _path
) const;
22 // mutable (requires locking)
23 virtual bool GetLocatedPath(BString
& _path
) const;
24 virtual void SetLocatedPath(const BString
& path
,
27 void AddEntry(LocatableEntry
* entry
);
28 void RemoveEntry(LocatableEntry
* entry
);
29 const LocatableEntryList
& Entries() const { return fEntries
; }
34 LocatableEntryList fEntries
;
38 #endif // LOCATABLE_DIRECTORY_H