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 15class BarberPole; 16class BCardLayout; 17class BMessageRunner; 18class BStatusBar; 19class BStringView; 20 21 22class WorkStatusView : public BView { 23public: 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 33private: 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