Refactored AddOnMonitor to allow an alternative constructor which does not
yet take the AddOnMonitorHandler (and also does not Run() the looper automatically). Added SetHandler() method which allows to set the handler afterward. Does not require updates in existing clients. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39740 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -25,11 +25,16 @@ class AddOnMonitor : public BLooper {
|
||||
private:
|
||||
typedef BLooper inherited;
|
||||
public:
|
||||
AddOnMonitor();
|
||||
// Does not automatically run the looper.
|
||||
AddOnMonitor(AddOnMonitorHandler* handler);
|
||||
// Automatically runs the looper.
|
||||
virtual ~AddOnMonitor();
|
||||
|
||||
virtual status_t InitCheck();
|
||||
|
||||
void SetHandler(AddOnMonitorHandler* handler);
|
||||
|
||||
private:
|
||||
status_t fInitCheck;
|
||||
BMessageRunner* fPulseRunner;
|
||||
|
||||
Reference in New Issue
Block a user