mirror of
https://review.haiku-os.org/haiku
synced 2025-02-02 11:46:25 +01:00
33 lines
685 B
C
33 lines
685 B
C
|
/*
|
||
|
* Copyright 2013, Haiku, Inc. All Rights Reserved.
|
||
|
* Distributed under the terms of the MIT License.
|
||
|
*
|
||
|
* Authors:
|
||
|
* Ingo Weinhold <ingo_weinhold@gmx.de>
|
||
|
*/
|
||
|
#ifndef DATABASE_DIRECTORY_H
|
||
|
#define DATABASE_DIRECTORY_H
|
||
|
|
||
|
|
||
|
#include <MergedDirectory.h>
|
||
|
|
||
|
|
||
|
class DatabaseDirectory : public BMergedDirectory {
|
||
|
public:
|
||
|
DatabaseDirectory();
|
||
|
virtual ~DatabaseDirectory();
|
||
|
|
||
|
status_t Init(const char* superType = NULL);
|
||
|
|
||
|
protected:
|
||
|
virtual bool ShallPreferFirstEntry(const entry_ref& entry1,
|
||
|
int32 index1, const entry_ref& entry2,
|
||
|
int32 index2);
|
||
|
|
||
|
private:
|
||
|
bool _IsValidMimeTypeEntry(const entry_ref& entry);
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif // DATABASE_DIRECTORY_H
|