xref: /haiku/src/servers/registrar/mime/CreateAppMetaMimeThread.h (revision b6a89f410eb68626663104bd9687830504634cb9)
1f82c11c0SMichael Lotz //----------------------------------------------------------------------
2f82c11c0SMichael Lotz //  This software is part of the OpenBeOS distribution and is covered
3f82c11c0SMichael Lotz //  by the OpenBeOS 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 
13*b6a89f41SIngo Weinhold 
14*b6a89f41SIngo Weinhold #include <mime/AppMetaMimeCreator.h>
15*b6a89f41SIngo Weinhold 
16f82c11c0SMichael Lotz #include "MimeUpdateThread.h"
17f82c11c0SMichael Lotz 
18*b6a89f41SIngo Weinhold 
19f82c11c0SMichael Lotz namespace BPrivate {
20f82c11c0SMichael Lotz namespace Storage {
21f82c11c0SMichael Lotz namespace Mime {
22f82c11c0SMichael Lotz 
23*b6a89f41SIngo Weinhold 
24f82c11c0SMichael Lotz class CreateAppMetaMimeThread : public MimeUpdateThread {
25f82c11c0SMichael Lotz public:
26*b6a89f41SIngo Weinhold 								CreateAppMetaMimeThread(const char* name,
27*b6a89f41SIngo Weinhold 									int32 priority, Database* database,
28*b6a89f41SIngo Weinhold 									AppMetaMimeCreator::DatabaseLocker*
29*b6a89f41SIngo Weinhold 										databaseLocker,
30*b6a89f41SIngo Weinhold 									BMessenger managerMessenger,
31*b6a89f41SIngo Weinhold 									const entry_ref* root, bool recursive,
32*b6a89f41SIngo Weinhold 									int32 force, BMessage* replyee);
33*b6a89f41SIngo Weinhold 
34*b6a89f41SIngo Weinhold 	virtual	status_t			DoMimeUpdate(const entry_ref* entry,
35*b6a89f41SIngo Weinhold 									bool* _entryIsDir);
36*b6a89f41SIngo Weinhold 
37*b6a89f41SIngo Weinhold private:
38*b6a89f41SIngo Weinhold 			AppMetaMimeCreator	fCreator;
39f82c11c0SMichael Lotz };
40f82c11c0SMichael Lotz 
41*b6a89f41SIngo 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