9cda9c9905
* Together with database_{access,support}.cpp it is built into a static library. * Add new interfaces MimeSniffer and Database::NotificationListener for plugging in registrar specific functionality (the sniffer add-on support and the notification mechanism).
43 lines
814 B
C++
43 lines
814 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>
|
|
|
|
|
|
namespace BPrivate {
|
|
namespace Storage {
|
|
namespace Mime {
|
|
|
|
|
|
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);
|
|
};
|
|
|
|
|
|
} // namespace Mime
|
|
} // namespace Storage
|
|
} // namespace BPrivate
|
|
|
|
|
|
#endif // DATABASE_DIRECTORY_H
|