865ab2816d
* Pull out base class MimeEntryProcessor out of AppMetaMimeCreator. * Pull class MimeInfoUpdater out of UpdateMimeInfoThread and derive it from MimeEntryProcessor. * MimeInfoUpdater: Instead of BMimeType::GuessMimeType(), use Database::GuessMimeType() directly.
37 lines
736 B
C++
37 lines
736 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 _MIME_MIME_ENTRY_PROCESSOR_H
|
|
#define _MIME_MIME_ENTRY_PROCESSOR_H
|
|
|
|
|
|
#include <mime/MimeEntryProcessor.h>
|
|
|
|
|
|
namespace BPrivate {
|
|
namespace Storage {
|
|
namespace Mime {
|
|
|
|
|
|
class AppMetaMimeCreator : public MimeEntryProcessor {
|
|
public:
|
|
AppMetaMimeCreator(Database* database,
|
|
DatabaseLocker* databaseLocker,
|
|
int32 force);
|
|
virtual ~AppMetaMimeCreator();
|
|
|
|
virtual status_t Do(const entry_ref& entry, bool* _entryIsDir);
|
|
};
|
|
|
|
|
|
} // namespace Mime
|
|
} // namespace Storage
|
|
} // namespace BPrivate
|
|
|
|
|
|
#endif // _MIME_MIME_ENTRY_PROCESSOR_H
|