Make UEFI boot-platform build again
[haiku.git] / headers / private / storage / AddOnMonitor.h
blob1fe3a78e1d038ac9230d188c769378843fa7ff53
1 /*
2 * Copyright 2004-2010, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _ADD_ON_MONITOR_H
6 #define _ADD_ON_MONITOR_H
9 #include <list>
10 #include <stdio.h>
11 #include <string>
13 #include <Looper.h>
14 #include <MessageRunner.h>
17 namespace BPrivate {
18 namespace Storage {
21 class AddOnMonitorHandler;
24 class AddOnMonitor : public BLooper {
25 private:
26 typedef BLooper inherited;
27 public:
28 AddOnMonitor();
29 // Does not automatically run the looper.
30 AddOnMonitor(AddOnMonitorHandler* handler);
31 // Automatically runs the looper.
32 virtual ~AddOnMonitor();
34 virtual status_t InitCheck();
36 void SetHandler(AddOnMonitorHandler* handler);
38 private:
39 status_t fInitCheck;
40 BMessageRunner* fPulseRunner;
44 }; // namespace Storage
45 }; // namespace BPrivate
48 using namespace BPrivate::Storage;
51 #endif // _ADD_ON_MONITOR_H