Cleanup: No need to check the BMessenger status twice. No need to

keep the BMessageRunner message around.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38234 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2010-08-18 13:50:50 +00:00
parent f072d0a87a
commit c6077ae7ec
2 changed files with 43 additions and 23 deletions
+20 -9
View File
@@ -1,35 +1,46 @@
/*
* Copyright 2004-2010, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _ADD_ON_MONITOR_H
#define _ADD_ON_MONITOR_H
#include <string>
#include <list>
#include <stdio.h>
#include <string>
#include <Looper.h>
#include <MessageRunner.h>
#include <stdio.h>
namespace BPrivate {
namespace Storage {
class AddOnMonitorHandler;
class AddOnMonitor : public BLooper {
private:
typedef BLooper inherited;
typedef BLooper inherited;
public:
AddOnMonitor(AddOnMonitorHandler * handler);
virtual ~AddOnMonitor();
AddOnMonitor(AddOnMonitorHandler* handler);
virtual ~AddOnMonitor();
virtual status_t InitCheck();
virtual status_t InitCheck();
private:
status_t fInitCheck;
BMessage * fPulseMessage;
BMessageRunner * fPulseRunner;
status_t fInitCheck;
BMessageRunner* fPulseRunner;
};
}; // namespace Storage
}; // namespace BPrivate
using namespace BPrivate::Storage;
#endif // _ADD_ON_MONITOR_H