1*522f702aSshatty #ifndef _ADD_ON_MONITOR_H 2*522f702aSshatty #define _ADD_ON_MONITOR_H 3*522f702aSshatty 4*522f702aSshatty #include <string> 5*522f702aSshatty #include <list> 6*522f702aSshatty #include <Looper.h> 7*522f702aSshatty #include <MessageRunner.h> 8*522f702aSshatty #include <stdio.h> 9*522f702aSshatty 10*522f702aSshatty namespace BPrivate { 11*522f702aSshatty namespace Storage { 12*522f702aSshatty 13*522f702aSshatty class AddOnMonitorHandler; 14*522f702aSshatty 15*522f702aSshatty class AddOnMonitor : public BLooper { 16*522f702aSshatty private: 17*522f702aSshatty typedef BLooper inherited; 18*522f702aSshatty public: 19*522f702aSshatty AddOnMonitor(AddOnMonitorHandler * handler); 20*522f702aSshatty virtual ~AddOnMonitor(); 21*522f702aSshatty 22*522f702aSshatty virtual status_t InitCheck(); 23*522f702aSshatty 24*522f702aSshatty private: 25*522f702aSshatty status_t fInitCheck; 26*522f702aSshatty BMessage * fPulseMessage; 27*522f702aSshatty BMessageRunner * fPulseRunner; 28*522f702aSshatty }; 29*522f702aSshatty 30*522f702aSshatty }; // namespace Storage 31*522f702aSshatty }; // namespace BPrivate 32*522f702aSshatty 33*522f702aSshatty using namespace BPrivate::Storage; 34*522f702aSshatty 35*522f702aSshatty #endif // _ADD_ON_MONITOR_H 36