xref: /haiku/src/servers/bluetooth/DeviceManager.h (revision bc3955fea5b07e2e94a27fc05e4bb58fe6f0319b)
1 /*
2 ** Copyright 2004, the Haiku project. All rights reserved.
3 ** Distributed under the terms of the Haiku License.
4 **
5 ** Author : Jérôme Duval
6 ** Original authors: Marcus Overhagen, Axel Dörfler
7 */
8 #ifndef _DEVICE_MANAGER_H
9 #define _DEVICE_MANAGER_H
10 
11 // Manager for devices monitoring
12 
13 #include <Handler.h>
14 #include <Node.h>
15 #include <Looper.h>
16 #include <Locker.h>
17 /*#include <InputServerDevice.h>
18 #include <InputServerFilter.h>
19 #include <InputServerMethod.h>
20 #include "TList.h"
21 */
22 
23 class DeviceManager : public BLooper {
24 	public:
25 		DeviceManager();
26 		~DeviceManager();
27 
28 		void		LoadState();
29 		void		SaveState();
30 
31 		status_t StartMonitoringDevice(const char *device);
32 		status_t StopMonitoringDevice(const char *device);
33 
34 		void MessageReceived(BMessage *msg);
35 
36 	private:
37 		status_t AddDirectory(node_ref *nref);
38 		status_t RemoveDirectory(node_ref *nref);
39 
40 		BLocker fLock;
41 };
42 
43 #endif // _DEVICE_MANAGER_H
44