1 /* 2 * Copyright 2007-2010, Axel Dörfler, axeld@pinc-software.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef PROGRESS_WINDOW_H 6 #define PROGRESS_WINDOW_H 7 8 9 #include <Window.h> 10 11 12 class BMessageRunner; 13 class BStatusBar; 14 15 16 // public message constants 17 enum { 18 kMsgProgressUpdate = 'pwPU' 19 }; 20 21 22 class ProgressWindow : public BWindow { 23 public: 24 ProgressWindow(); 25 virtual ~ProgressWindow(); 26 27 virtual void MessageReceived(BMessage* message); 28 29 void Start(BWindow* referenceWindow, 30 bool center = false); 31 void Stop(); 32 33 private: 34 BStatusBar* fStatusBar; 35 BMessageRunner* fRunner; 36 bool fRetrievedUpdate; 37 bool fRetrievedShow; 38 }; 39 40 41 #endif // PROGRESS_WINDOW_H 42