2016-05-28 17:54:17 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "net/NetAction.h"
|
|
|
|
|
|
|
|
namespace Net {
|
2021-07-25 17:11:59 +00:00
|
|
|
class Validator
|
2016-05-28 17:54:17 +00:00
|
|
|
{
|
|
|
|
public: /* con/des */
|
2018-07-15 12:51:05 +00:00
|
|
|
Validator() {};
|
|
|
|
virtual ~Validator() {};
|
2016-05-28 17:54:17 +00:00
|
|
|
|
|
|
|
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;
|
2016-05-28 17:54:17 +00:00
|
|
|
};
|
2021-07-25 17:11:59 +00:00
|
|
|
}
|