xref: /haiku/src/servers/registrar/mime/UpdateMimeInfoThread.h (revision 4d8811742fa447ec05b4993a16a0931bc29aafab)
1 //----------------------------------------------------------------------
2 //  This software is part of the OpenBeOS distribution and is covered
3 //  by the MIT License.
4 //---------------------------------------------------------------------
5 /*!
6 	\file UpdateMimeInfoThread.h
7 	UpdateMimeInfoThread interface declaration
8 */
9 
10 #ifndef _MIME_UPDATE_MIME_INFO_THREAD_H
11 #define _MIME_UPDATE_MIME_INFO_THREAD_H
12 
13 
14 #include <mime/MimeInfoUpdater.h>
15 
16 #include "MimeUpdateThread.h"
17 
18 
19 namespace BPrivate {
20 namespace Storage {
21 namespace Mime {
22 
23 
24 class UpdateMimeInfoThread : public MimeUpdateThread {
25 public:
26 								UpdateMimeInfoThread(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 			MimeInfoUpdater		fUpdater;
39 };
40 
41 
42 }	// namespace Mime
43 }	// namespace Storage
44 }	// namespace BPrivate
45 
46 #endif	// _MIME_UPDATE_MIME_INFO_THREAD_H
47