mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-26 18:14:22 +00:00
23 lines
542 B
C++
23 lines
542 B
C++
#pragma once
|
|
#include "FileSink.h"
|
|
#include "ChecksumValidator.h"
|
|
#include "net/HttpMetaCache.h"
|
|
|
|
namespace Net {
|
|
class MetaCacheSink : public FileSink
|
|
{
|
|
public: /* con/des */
|
|
MetaCacheSink(MetaEntryPtr entry, ChecksumValidator * md5sum);
|
|
virtual ~MetaCacheSink();
|
|
bool hasLocalData() override;
|
|
|
|
protected: /* methods */
|
|
JobStatus initCache(QNetworkRequest & request) override;
|
|
JobStatus finalizeCache(QNetworkReply & reply) override;
|
|
|
|
private: /* data */
|
|
MetaEntryPtr m_entry;
|
|
ChecksumValidator * m_md5Node;
|
|
};
|
|
}
|