/* * Copyright 2017 Julian Harnath * Copyright 2021 Andrew Lindesay * All rights reserved. Distributed under the terms of the MIT license. */ #ifndef WORK_STATUS_VIEW_H #define WORK_STATUS_VIEW_H #include #include "PackageInfo.h" class BarberPole; class BCardLayout; class BMessageRunner; class BStatusBar; class BStringView; class WorkStatusView : public BView { public: WorkStatusView(const char* name); ~WorkStatusView(); void SetBusy(const BString& text); void SetBusy(); void SetIdle(); void SetProgress(float value); void SetText(const BString& text); private: BStatusBar* fProgressBar; BarberPole* fBarberPole; BCardLayout* fProgressLayout; BView* fProgressView; BStringView* fStatusText; }; #endif // WORK_STATUS_VIEW_H