BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / apps / showimage / ProgressWindow.h
blob8fce65c167a2a8aff9d1f7a4e07a1b08929ef0a9
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
9 #include <Window.h>
12 class BMessageRunner;
13 class BStatusBar;
16 // public message constants
17 enum {
18 kMsgProgressUpdate = 'pwPU'
22 class ProgressWindow : public BWindow {
23 public:
24 ProgressWindow();
25 virtual ~ProgressWindow();
27 virtual void MessageReceived(BMessage* message);
29 void Start(BWindow* referenceWindow,
30 bool center = false);
31 void Stop();
33 private:
34 BStatusBar* fStatusBar;
35 BMessageRunner* fRunner;
36 bool fRetrievedUpdate;
37 bool fRetrievedShow;
41 #endif // PROGRESS_WINDOW_H