mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
Update AssetRequest::State enum to use camelcase
This commit is contained in:
parent
6468046c68
commit
b8c1c279c6
3 changed files with 9 additions and 8 deletions
|
@ -33,12 +33,12 @@ void AssetRequest::start() {
|
|||
return;
|
||||
}
|
||||
|
||||
if (_state != NOT_STARTED) {
|
||||
if (_state != NotStarted) {
|
||||
qCWarning(networking) << "AssetRequest already started.";
|
||||
return;
|
||||
}
|
||||
|
||||
_state = WAITING_FOR_INFO;
|
||||
_state = WaitingForInfo;
|
||||
|
||||
auto assetClient = DependencyManager::get<AssetClient>();
|
||||
assetClient->getAssetInfo(_hash, _extension, [this](bool responseReceived, AssetServerError serverError, AssetInfo info) {
|
||||
|
@ -66,7 +66,7 @@ void AssetRequest::start() {
|
|||
return;
|
||||
}
|
||||
|
||||
_state = WAITING_FOR_DATA;
|
||||
_state = WaitingForData;
|
||||
_data.resize(info.size);
|
||||
|
||||
qCDebug(networking) << "Got size of " << _hash << " : " << info.size << " bytes";
|
||||
|
|
|
@ -24,10 +24,10 @@ class AssetRequest : public QObject {
|
|||
Q_OBJECT
|
||||
public:
|
||||
enum State {
|
||||
NOT_STARTED = 0,
|
||||
WAITING_FOR_INFO,
|
||||
WAITING_FOR_DATA,
|
||||
FINISHED
|
||||
NotStarted = 0,
|
||||
WaitingForInfo,
|
||||
WaitingForData,
|
||||
Finished
|
||||
};
|
||||
|
||||
enum Error {
|
||||
|
@ -52,7 +52,7 @@ signals:
|
|||
void progress(qint64 totalReceived, qint64 total);
|
||||
|
||||
private:
|
||||
State _state = NOT_STARTED;
|
||||
State _state = NotStarted;
|
||||
Error _error = NoError;
|
||||
AssetInfo _info;
|
||||
uint64_t _totalReceived { 0 };
|
||||
|
|
|
@ -28,6 +28,7 @@ public:
|
|||
|
||||
enum Error {
|
||||
NoError = 0,
|
||||
NetworkError,
|
||||
Timeout,
|
||||
TooLarge,
|
||||
PermissionDenied,
|
||||
|
|
Loading…
Reference in a new issue