2 * Copyright 2004-2010, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 #ifndef _ADD_ON_MONITOR_H
6 #define _ADD_ON_MONITOR_H
14 #include <MessageRunner.h>
21 class AddOnMonitorHandler
;
24 class AddOnMonitor
: public BLooper
{
26 typedef BLooper inherited
;
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
);
40 BMessageRunner
* fPulseRunner
;
44 }; // namespace Storage
45 }; // namespace BPrivate
48 using namespace BPrivate::Storage
;
51 #endif // _ADD_ON_MONITOR_H