aboutsummaryrefslogtreecommitdiff
path: root/launcher/net/Validator.h
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-08-04 19:42:36 +0200
committerGitHub <noreply@github.com>2023-08-04 19:42:36 +0200
commitae793f6cf11658c9abc5111e82d5ba7b3e6af127 (patch)
treeed41f30e2c0f02e4be1d42324b3f05fbab75b2cd /launcher/net/Validator.h
parent50c7d39e082f0a7dbd977401e16d5adf534d9770 (diff)
parent1d638e018ac40fbfb35dd117f9a948c0cf35eadd (diff)
downloadPrismLauncher-ae793f6cf11658c9abc5111e82d5ba7b3e6af127.tar.gz
PrismLauncher-ae793f6cf11658c9abc5111e82d5ba7b3e6af127.tar.bz2
PrismLauncher-ae793f6cf11658c9abc5111e82d5ba7b3e6af127.zip
Merge pull request #1459 from Scrumplex/format
Diffstat (limited to 'launcher/net/Validator.h')
-rw-r--r--launcher/net/Validator.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/launcher/net/Validator.h b/launcher/net/Validator.h
index 6b3d4635..33c4cfee 100644
--- a/launcher/net/Validator.h
+++ b/launcher/net/Validator.h
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
/*
- * PolyMC - Minecraft Launcher
+ * Prism Launcher - Minecraft Launcher
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -37,16 +37,15 @@
#include "net/NetAction.h"
namespace Net {
-class Validator
-{
-public: /* con/des */
- Validator() {};
- virtual ~Validator() {};
+class Validator {
+ public: /* con/des */
+ Validator(){};
+ virtual ~Validator(){};
-public: /* methods */
- virtual bool init(QNetworkRequest & request) = 0;
- virtual bool write(QByteArray & data) = 0;
+ public: /* methods */
+ virtual bool init(QNetworkRequest& request) = 0;
+ virtual bool write(QByteArray& data) = 0;
virtual bool abort() = 0;
- virtual bool validate(QNetworkReply & reply) = 0;
+ virtual bool validate(QNetworkReply& reply) = 0;
};
-}
+} // namespace Net