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