xref: /haiku/src/servers/registrar/mime/CreateAppMetaMimeThread.h (revision 268f99dd7dc4bd7474a8bd2742d3f1ec1de6752a)
1f82c11c0SMichael Lotz //----------------------------------------------------------------------
2*2ca13760SColdfirex //  This software is part of the Haiku distribution and is covered
3b6f76ebeSAugustin Cavalier //  by the MIT License.
4f82c11c0SMichael Lotz //---------------------------------------------------------------------
5f82c11c0SMichael Lotz /*!
6f82c11c0SMichael Lotz 	\file CreateAppMetaMimeThread.h
7f82c11c0SMichael Lotz 	CreateAppMetaMimeThread interface declaration
8f82c11c0SMichael Lotz */
9f82c11c0SMichael Lotz 
10f82c11c0SMichael Lotz #ifndef _CREATE_APP_META_MIME_THREAD_H
11f82c11c0SMichael Lotz #define _CREATE_APP_META_MIME_THREAD_H
12f82c11c0SMichael Lotz 
13b6a89f41SIngo Weinhold 
14b6a89f41SIngo Weinhold #include <mime/AppMetaMimeCreator.h>
15b6a89f41SIngo Weinhold 
16f82c11c0SMichael Lotz #include "MimeUpdateThread.h"
17f82c11c0SMichael Lotz 
18b6a89f41SIngo Weinhold 
19f82c11c0SMichael Lotz namespace BPrivate {
20f82c11c0SMichael Lotz namespace Storage {
21f82c11c0SMichael Lotz namespace Mime {
22f82c11c0SMichael Lotz 
23b6a89f41SIngo Weinhold 
24f82c11c0SMichael Lotz class CreateAppMetaMimeThread : public MimeUpdateThread {
25f82c11c0SMichael Lotz public:
26b6a89f41SIngo Weinhold 								CreateAppMetaMimeThread(const char* name,
27b6a89f41SIngo Weinhold 									int32 priority, Database* database,
28865ab281SIngo Weinhold 									MimeEntryProcessor::DatabaseLocker*
29b6a89f41SIngo Weinhold 										databaseLocker,
30b6a89f41SIngo Weinhold 									BMessenger managerMessenger,
31b6a89f41SIngo Weinhold 									const entry_ref* root, bool recursive,
32b6a89f41SIngo Weinhold 									int32 force, BMessage* replyee);
33b6a89f41SIngo Weinhold 
34b6a89f41SIngo Weinhold 	virtual	status_t			DoMimeUpdate(const entry_ref* entry,
35b6a89f41SIngo Weinhold 									bool* _entryIsDir);
36b6a89f41SIngo Weinhold 
37b6a89f41SIngo Weinhold private:
38b6a89f41SIngo Weinhold 			AppMetaMimeCreator	fCreator;
39f82c11c0SMichael Lotz };
40f82c11c0SMichael Lotz 
41b6a89f41SIngo Weinhold 
42f82c11c0SMichael Lotz }	// namespace Mime
43f82c11c0SMichael Lotz }	// namespace Storage
44f82c11c0SMichael Lotz }	// namespace BPrivate
45f82c11c0SMichael Lotz 
46f82c11c0SMichael Lotz #endif	// _CREATE_APP_META_MIME_THREAD_H
47