MultiMC5/launcher/net/Validator.h

19 lines
360 B
C
Raw Normal View History

#pragma once
#include "net/NetAction.h"
namespace Net {
class Validator
{
public: /* con/des */
2018-07-15 12:51:05 +00:00
Validator() {};
virtual ~Validator() {};
public: /* methods */
2018-07-15 12:51:05 +00:00
virtual bool init(QNetworkRequest & request) = 0;
virtual bool write(QByteArray & data) = 0;
virtual bool abort() = 0;
virtual bool validate(QNetworkReply & reply) = 0;
};
}