summaryrefslogtreecommitdiffstats
path: root/api/logic/net/MetaCacheSink.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'api/logic/net/MetaCacheSink.cpp')
-rw-r--r--api/logic/net/MetaCacheSink.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/api/logic/net/MetaCacheSink.cpp b/api/logic/net/MetaCacheSink.cpp
index c9d75310..4fe4f3fb 100644
--- a/api/logic/net/MetaCacheSink.cpp
+++ b/api/logic/net/MetaCacheSink.cpp
@@ -17,11 +17,11 @@ MetaCacheSink::~MetaCacheSink()
// nil
};
-JobStatus MetaCacheSink::initCache(QNetworkRequest& request)
+Task::Status MetaCacheSink::initCache(QNetworkRequest& request)
{
if (!m_entry->isStale())
{
- return Job_Finished;
+ return Task::Status::Finished;
}
// check if file exists, if it does, use its information for the request
QFile current(m_filename);
@@ -36,10 +36,10 @@ JobStatus MetaCacheSink::initCache(QNetworkRequest& request)
request.setRawHeader(QString("If-None-Match").toLatin1(), m_entry->getETag().toLatin1());
}
}
- return Job_InProgress;
+ return Task::Status::InProgress;
}
-JobStatus MetaCacheSink::finalizeCache(QNetworkReply & reply)
+Task::Status MetaCacheSink::finalizeCache(QNetworkReply & reply)
{
QFileInfo output_file_info(m_filename);
if(wroteAnyData)
@@ -54,7 +54,7 @@ JobStatus MetaCacheSink::finalizeCache(QNetworkReply & reply)
m_entry->setLocalChangedTimestamp(output_file_info.lastModified().toUTC().toMSecsSinceEpoch());
m_entry->setStale(false);
ENV.metacache()->updateEntry(m_entry);
- return Job_Finished;
+ return Task::Status::Finished;
}
bool MetaCacheSink::hasLocalData()