2 * Copyright 2013-2014, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
6 * Ingo Weinhold <ingo_weinhold@gmx.de>
8 #ifndef _ENTRY_OPERATION_ENGINE_BASE_H
9 #define _ENTRY_OPERATION_ENGINE_BASE_H
26 class BEntryOperationEngineBase
{
32 class BEntryOperationEngineBase::Entry
{
34 Entry(const char* path
);
35 Entry(const BDirectory
& directory
,
36 const char* path
= NULL
);
37 Entry(const BEntry
& entry
);
38 Entry(const entry_ref
& entryRef
);
39 Entry(const node_ref
& directoryRef
,
40 const char* path
= NULL
);
43 status_t
GetPath(BPath
& buffer
, const char*& _path
)
47 status_t
GetPathOrName(BString
& _path
) const;
48 // Tries to return some kind of string
49 // representation. Useful only for debugging
50 // and error reporting.
51 BString
PathOrName() const;
54 const BDirectory
* fDirectory
;
57 const entry_ref
* fEntryRef
;
58 const node_ref
* fDirectoryRef
;
62 } // namespace BPrivate
65 #endif // _ENTRY_OPERATION_ENGINE_BASE_H