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 class DeskbarPulseView : public MiniPulseView { 19 public: 20 DeskbarPulseView(BRect rect); 21 DeskbarPulseView(BMessage *message); 22 ~DeskbarPulseView(); 23 void MouseDown(BPoint point); 24 void AttachedToWindow(); 25 void Pulse(); 26 27 void MessageReceived(BMessage *message); 28 static DeskbarPulseView *Instantiate(BMessage *data); 29 virtual status_t Archive(BMessage *data, bool deep = true) const; 30 31 private: 32 void Remove(); 33 void SetMode(bool normal); 34 35 PrefsWindow *prefswindow; 36 Prefs *prefs; 37 BMessageRunner *messagerunner; 38 }; 39 40 #endif 41