2016-05-28 23:24:17 +05:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "net/NetAction.h"
|
|
|
|
|
|
|
|
namespace Net {
|
2021-07-25 22:41:59 +05:30
|
|
|
class Validator
|
2016-05-28 23:24:17 +05:30
|
|
|
{
|
|
|
|
public: /* con/des */
|
2018-07-15 18:21:05 +05:30
|
|
|
Validator() {};
|
|
|
|
virtual ~Validator() {};
|
2016-05-28 23:24:17 +05:30
|
|
|
|
|
|
|
public: /* methods */
|
2018-07-15 18:21:05 +05:30
|
|
|
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 23:24:17 +05:30
|
|
|
};
|
2021-07-25 22:41:59 +05:30
|
|
|
}
|