aboutsummaryrefslogtreecommitdiff
path: root/launcher/net/Validator.h
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-08-05 19:09:10 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-08-05 19:09:10 +0300
commitb2fdd8359405c93d0d93aa8c68971c986a1f68cb (patch)
tree59859119373213ce04b2f5e2d7a95227b57be609 /launcher/net/Validator.h
parent149b6d59cf848a3b3cd50b3aee1c112e9c47e633 (diff)
parentae793f6cf11658c9abc5111e82d5ba7b3e6af127 (diff)
downloadPrismLauncher-b2fdd8359405c93d0d93aa8c68971c986a1f68cb.tar.gz
PrismLauncher-b2fdd8359405c93d0d93aa8c68971c986a1f68cb.tar.bz2
PrismLauncher-b2fdd8359405c93d0d93aa8c68971c986a1f68cb.zip
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into download_threads
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
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