vfs: check userland buffers before reading them.
[haiku.git] / src / servers / registrar / MIMEManager.h
blobceae1f66a126b207ef742701c6483905160ad62f
1 // MIMEManager.h
3 #ifndef MIME_MANAGER_H
4 #define MIME_MANAGER_H
6 #include <Looper.h>
8 #include <mime/Database.h>
10 #include "RegistrarThreadManager.h"
13 class MIMEManager : public BLooper,
14 private BPrivate::Storage::Mime::Database::NotificationListener {
15 public:
16 MIMEManager();
17 virtual ~MIMEManager();
19 virtual void MessageReceived(BMessage *message);
21 private:
22 // Database::NotificationListener
23 virtual status_t Notify(BMessage* message, const BMessenger& target);
25 private:
26 class DatabaseLocker;
28 private:
29 void HandleSetParam(BMessage *message);
30 void HandleDeleteParam(BMessage *message);
32 private:
33 BPrivate::Storage::Mime::Database fDatabase;
34 DatabaseLocker* fDatabaseLocker;
35 RegistrarThreadManager fThreadManager;
36 BMessenger fManagerMessenger;
39 #endif // MIME_MANAGER_H