xref: /haiku/src/apps/haikudepot/ui/WorkStatusView.h (revision 4c8e85b316c35a9161f5a1c50ad70bc91c83a76f)
1 /*
2  * Copyright 2017 Julian Harnath <julian.harnath@rwth-aachen.de>
3  * Copyright 2021 Andrew Lindesay <apl@lindesay.co.nz>
4  * All rights reserved. Distributed under the terms of the MIT license.
5  */
6 #ifndef WORK_STATUS_VIEW_H
7 #define WORK_STATUS_VIEW_H
8 
9 
10 #include <View.h>
11 
12 #include "PackageInfo.h"
13 
14 
15 class BarberPole;
16 class BCardLayout;
17 class BMessageRunner;
18 class BStatusBar;
19 class BStringView;
20 
21 
22 class WorkStatusView : public BView {
23 public:
24 								WorkStatusView(const char* name);
25 								~WorkStatusView();
26 
27 			void				SetBusy(const BString& text);
28 			void				SetBusy();
29 			void				SetIdle();
30 			void				SetProgress(float value);
31 			void				SetText(const BString& text);
32 
33 private:
34 			BStatusBar*			fProgressBar;
35 			BarberPole*			fBarberPole;
36 			BCardLayout*		fProgressLayout;
37 			BView*				fProgressView;
38 			BStringView*		fStatusText;
39 };
40 
41 
42 #endif // WORK_STATUS_VIEW_H
43