summaryrefslogtreecommitdiffstats
path: root/api/logic/net/Validator.h
blob: 955412cee751f3cc93a9cc7cfb8e1915bd0c1002 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include "net/NetAction.h"

#include "multimc_logic_export.h"

namespace Net {
class MULTIMC_LOGIC_EXPORT 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;
};
}