2 * Copyright 2017 Julian Harnath <julian.harnath@rwth-aachen.de>
3 * All rights reserved. Distributed under the terms of the MIT license.
5 #ifndef WORK_STATUS_VIEW_H
6 #define WORK_STATUS_VIEW_H
13 #include "PackageInfo.h"
23 class WorkStatusView
: public BView
{
25 WorkStatusView(const char* name
);
28 void SetBusy(const BString
& text
);
31 void SetProgress(float value
);
32 void SetText(const BString
& text
);
34 void PackageStatusChanged(
35 const PackageInfoRef
& package
);
38 void _SetTextPendingDownloads();
39 void _SetTextDownloading(const BString
& title
);
42 BStatusBar
* fProgressBar
;
43 BarberPole
* fBarberPole
;
44 BCardLayout
* fProgressLayout
;
46 BStringView
* fStatusText
;
48 BString fDownloadingPackage
;
49 std::set
<BString
> fPendingPackages
;
53 #endif // WORK_STATUS_VIEW_H