sneedmc/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 12:51:05 +00:00
MetaCacheSink(MetaEntryPtr entry, ChecksumValidator * md5sum);
virtual ~MetaCacheSink();
bool hasLocalData() override;
protected: /* methods */
2018-07-15 12:51:05 +00:00
JobStatus initCache(QNetworkRequest & request) override;
JobStatus finalizeCache(QNetworkReply & reply) override;
private: /* data */
2018-07-15 12:51:05 +00:00
MetaEntryPtr m_entry;
ChecksumValidator * m_md5Node;
};
}