1 //**************************************************************************************** 2 // 3 // File: DeskbarPulseView.h 4 // 5 // Written by: Daniel Switkin 6 // 7 // Copyright 1999, Be Incorporated 8 // 9 //**************************************************************************************** 10 11 #ifndef DESKBARPULSEVIEW_H 12 #define DESKBARPULSEVIEW_H 13 14 #include "MiniPulseView.h" 15 #include "PrefsWindow.h" 16 #include <app/MessageRunner.h> 17 18 19 class DeskbarPulseView : public MiniPulseView 20 { 21 public: 22 DeskbarPulseView(BRect rect); 23 DeskbarPulseView(BMessage *message); 24 ~DeskbarPulseView(); 25 void MouseDown(BPoint point); 26 void AttachedToWindow(); 27 void Pulse(); 28 29 void MessageReceived(BMessage *message); 30 static DeskbarPulseView *Instantiate(BMessage *data); 31 virtual status_t Archive(BMessage *data, bool deep = true) const; 32 33 private: 34 void Remove(); 35 void SetMode(bool normal); 36 37 Prefs *prefs; 38 BMessageRunner *messagerunner; 39 }; 40 41 #endif 42