xref: /haiku/src/servers/registrar/mime/CreateAppMetaMimeThread.cpp (revision 1deede7388b04dbeec5af85cae7164735ea9e70d)
1 /*
2  * Copyright 2002-2013, Haiku, Inc.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Tyler Dauwalder
7  *		Axel Dörfler, axeld@pinc-software.de
8  *		Ingo Weinhold, ingo_weinhold@gmx.de
9  */
10 
11 
12 #include "CreateAppMetaMimeThread.h"
13 
14 
15 namespace BPrivate {
16 namespace Storage {
17 namespace Mime {
18 
19 
20 CreateAppMetaMimeThread::CreateAppMetaMimeThread(const char* name,
21 	int32 priority, Database* database,
22 	MimeEntryProcessor::DatabaseLocker* databaseLocker,
23 	BMessenger managerMessenger, const entry_ref* root, bool recursive,
24 	int32 force, BMessage* replyee)
25 	:
26 	MimeUpdateThread(name, priority, database, managerMessenger, root,
27 		recursive, force, replyee),
28 	fCreator(database, databaseLocker, force)
29 {
30 }
31 
32 
33 status_t
34 CreateAppMetaMimeThread::DoMimeUpdate(const entry_ref* ref, bool* _entryIsDir)
35 {
36 	if (ref == NULL)
37 		return B_BAD_VALUE;
38 
39 	return fCreator.Do(*ref, _entryIsDir);
40 }
41 
42 
43 }	// namespace Mime
44 }	// namespace Storage
45 }	// namespace BPrivate
46 
47