mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-25 15:16:02 +00:00
19 lines
360 B
C++
19 lines
360 B
C++
#pragma once
|
|
|
|
#include "net/NetAction.h"
|
|
|
|
namespace Net {
|
|
class Validator
|
|
{
|
|
public: /* con/des */
|
|
Validator() {};
|
|
virtual ~Validator() {};
|
|
|
|
public: /* methods */
|
|
virtual bool init(QNetworkRequest & request) = 0;
|
|
virtual bool write(QByteArray & data) = 0;
|
|
virtual bool abort() = 0;
|
|
virtual bool validate(QNetworkReply & reply) = 0;
|
|
};
|
|
}
|