pollymc/api/logic/net/Validator.h

20 lines
415 B
C
Raw Normal View History

#pragma once
#include "net/NetAction.h"
#include "multimc_logic_export.h"
namespace Net {
class MULTIMC_LOGIC_EXPORT Validator
{
public: /* con/des */
2018-07-15 18:21:05 +05:30
Validator() {};
virtual ~Validator() {};
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;
};
}