2010-08-18 13:50:50 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2004-2010, Haiku, Inc. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2004-02-01 05:50:56 +00:00
|
|
|
#ifndef _ADD_ON_MONITOR_H
|
|
|
|
#define _ADD_ON_MONITOR_H
|
|
|
|
|
2010-08-18 13:50:50 +00:00
|
|
|
|
2004-02-01 05:50:56 +00:00
|
|
|
#include <list>
|
2010-08-18 13:50:50 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <string>
|
|
|
|
|
2004-02-01 05:50:56 +00:00
|
|
|
#include <Looper.h>
|
|
|
|
#include <MessageRunner.h>
|
2010-08-18 13:50:50 +00:00
|
|
|
|
2004-02-01 05:50:56 +00:00
|
|
|
|
|
|
|
namespace BPrivate {
|
|
|
|
namespace Storage {
|
|
|
|
|
2010-08-18 13:50:50 +00:00
|
|
|
|
2004-02-01 05:50:56 +00:00
|
|
|
class AddOnMonitorHandler;
|
|
|
|
|
2010-08-18 13:50:50 +00:00
|
|
|
|
2004-02-01 05:50:56 +00:00
|
|
|
class AddOnMonitor : public BLooper {
|
|
|
|
private:
|
2010-08-18 13:50:50 +00:00
|
|
|
typedef BLooper inherited;
|
2004-02-01 05:50:56 +00:00
|
|
|
public:
|
2010-08-18 13:50:50 +00:00
|
|
|
AddOnMonitor(AddOnMonitorHandler* handler);
|
|
|
|
virtual ~AddOnMonitor();
|
2004-02-01 05:50:56 +00:00
|
|
|
|
2010-08-18 13:50:50 +00:00
|
|
|
virtual status_t InitCheck();
|
2004-02-01 05:50:56 +00:00
|
|
|
|
|
|
|
private:
|
2010-08-18 13:50:50 +00:00
|
|
|
status_t fInitCheck;
|
|
|
|
BMessageRunner* fPulseRunner;
|
2004-02-01 05:50:56 +00:00
|
|
|
};
|
|
|
|
|
2010-08-18 13:50:50 +00:00
|
|
|
|
2004-02-01 05:50:56 +00:00
|
|
|
}; // namespace Storage
|
|
|
|
}; // namespace BPrivate
|
|
|
|
|
2010-08-18 13:50:50 +00:00
|
|
|
|
2004-02-01 05:50:56 +00:00
|
|
|
using namespace BPrivate::Storage;
|
|
|
|
|
2010-08-18 13:50:50 +00:00
|
|
|
|
2004-02-01 05:50:56 +00:00
|
|
|
#endif // _ADD_ON_MONITOR_H
|