pollymc/launcher/net/MetaCacheSink.h

23 lines
542 B
C
Raw Normal View History

#pragma once
#include "FileSink.h"
#include "ChecksumValidator.h"
#include "net/HttpMetaCache.h"
namespace Net {
class MetaCacheSink : public FileSink
{
public: /* con/des */
2018-07-15 18:21:05 +05:30
MetaCacheSink(MetaEntryPtr entry, ChecksumValidator * md5sum);
virtual ~MetaCacheSink();
bool hasLocalData() override;
protected: /* methods */
2018-07-15 18:21:05 +05:30
JobStatus initCache(QNetworkRequest & request) override;
JobStatus finalizeCache(QNetworkReply & reply) override;
private: /* data */
2018-07-15 18:21:05 +05:30
MetaEntryPtr m_entry;
ChecksumValidator * m_md5Node;
};
}