xref: /haiku/src/apps/showimage/ProgressWindow.h (revision 3c6e2dd68577c34d93e17f19711f6245bf6d0915)
1 /*
2  * Copyright 2007-2009, 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 class ProgressWindow : public BWindow {
17 public:
18 								ProgressWindow(BWindow* referenceWindow,
19 									bool center = false);
20 	virtual						~ProgressWindow();
21 
22 	virtual void 				MessageReceived(BMessage* message);
23 
24 			void				Start();
25 			void				Stop();
26 
27 private:
28 			BStatusBar*			fStatusBar;
29 			BMessageRunner*		fRunner;
30 			bool				fRetrievedUpdate;
31 			bool				fRetrievedShow;
32 };
33 
34 
35 #endif	// PROGRESS_WINDOW_H
36