xref: /haiku/src/servers/registrar/mime/UpdateMimeInfoThread.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 UpdateMimeInfoThread.h
7f82c11c0SMichael Lotz 	UpdateMimeInfoThread interface declaration
8f82c11c0SMichael Lotz */
9f82c11c0SMichael Lotz 
10f82c11c0SMichael Lotz #ifndef _MIME_UPDATE_MIME_INFO_THREAD_H
11f82c11c0SMichael Lotz #define _MIME_UPDATE_MIME_INFO_THREAD_H
12f82c11c0SMichael Lotz 
13865ab281SIngo Weinhold 
14865ab281SIngo Weinhold #include <mime/MimeInfoUpdater.h>
15865ab281SIngo Weinhold 
16f82c11c0SMichael Lotz #include "MimeUpdateThread.h"
17f82c11c0SMichael Lotz 
18865ab281SIngo Weinhold 
19f82c11c0SMichael Lotz namespace BPrivate {
20f82c11c0SMichael Lotz namespace Storage {
21f82c11c0SMichael Lotz namespace Mime {
22f82c11c0SMichael Lotz 
23865ab281SIngo Weinhold 
24f82c11c0SMichael Lotz class UpdateMimeInfoThread : public MimeUpdateThread {
25f82c11c0SMichael Lotz public:
26865ab281SIngo Weinhold 								UpdateMimeInfoThread(const char* name,
27865ab281SIngo Weinhold 									int32 priority, Database* database,
28865ab281SIngo Weinhold 									MimeEntryProcessor::DatabaseLocker*
29865ab281SIngo Weinhold 										databaseLocker,
30865ab281SIngo Weinhold 									BMessenger managerMessenger,
31865ab281SIngo Weinhold 									const entry_ref* root, bool recursive,
32f82c11c0SMichael Lotz 									int32 force, BMessage* replyee);
33865ab281SIngo Weinhold 
34865ab281SIngo Weinhold 	virtual	status_t			DoMimeUpdate(const entry_ref* entry,
35865ab281SIngo Weinhold 									bool* _entryIsDir);
36865ab281SIngo Weinhold 
37865ab281SIngo Weinhold private:
38865ab281SIngo Weinhold 			MimeInfoUpdater		fUpdater;
39f82c11c0SMichael Lotz };
40f82c11c0SMichael Lotz 
41865ab281SIngo Weinhold 
42f82c11c0SMichael Lotz }	// namespace Mime
43f82c11c0SMichael Lotz }	// namespace Storage
44f82c11c0SMichael Lotz }	// namespace BPrivate
45f82c11c0SMichael Lotz 
46f82c11c0SMichael Lotz #endif	// _MIME_UPDATE_MIME_INFO_THREAD_H
47