Show current and total file size for each download (closes #705)

This commit is contained in:
Alexander Bock
2018-08-28 13:45:42 -04:00
parent 54d243e86f
commit 8acddf74a9
4 changed files with 71 additions and 15 deletions
+10 -2
View File
@@ -81,8 +81,15 @@ public:
Failed
};
struct ProgressInfo {
float progress = 0.f;
int currentSize = -1;
int totalSize = -1;
};
void updateItem(const std::string& itemIdentifier, const std::string& itemName,
ItemStatus newStatus, float newProgress);
ItemStatus newStatus, ProgressInfo progressInfo);
private:
bool _showMessage;
@@ -123,7 +130,8 @@ private:
std::string identifier;
std::string name;
ItemStatus status;
float progress;
ProgressInfo progress;
bool hasLocation;
glm::vec2 ll;