2016-05-28 18:54:17 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "net/NetAction.h"
|
|
|
|
|
|
|
|
namespace Net {
|
2021-07-25 18:11:59 +01:00
|
|
|
class Validator
|
2016-05-28 18:54:17 +01:00
|
|
|
{
|
|
|
|
public: /* con/des */
|
2018-07-15 13:51:05 +01:00
|
|
|
Validator() {};
|
|
|
|
virtual ~Validator() {};
|
2016-05-28 18:54:17 +01:00
|
|
|
|
|
|
|
public: /* methods */
|
2018-07-15 13:51:05 +01:00
|
|
|
virtual bool init(QNetworkRequest & request) = 0;
|
|
|
|
virtual bool write(QByteArray & data) = 0;
|
|
|
|
virtual bool abort() = 0;
|
|
|
|
virtual bool validate(QNetworkReply & reply) = 0;
|
2016-05-28 18:54:17 +01:00
|
|
|
};
|
2021-07-25 18:11:59 +01:00
|
|
|
}
|