diff options
Diffstat (limited to 'launcher/net/Validator.h')
-rw-r--r-- | launcher/net/Validator.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/launcher/net/Validator.h b/launcher/net/Validator.h new file mode 100644 index 00000000..59b72a0b --- /dev/null +++ b/launcher/net/Validator.h @@ -0,0 +1,18 @@ +#pragma once + +#include "net/NetAction.h" + +namespace Net { +class 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; +}; +} |