Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into refactor/NetActions
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@ -31,8 +31,8 @@ struct HeaderPair {
|
||||
|
||||
class HeaderProxy {
|
||||
public:
|
||||
HeaderProxy(){};
|
||||
virtual ~HeaderProxy(){};
|
||||
HeaderProxy() {}
|
||||
virtual ~HeaderProxy() {}
|
||||
|
||||
public:
|
||||
virtual QList<HeaderPair> headers(const QNetworkRequest& request) const = 0;
|
||||
|
@ -74,7 +74,7 @@ class MetaEntry {
|
||||
auto getMaximumAge() -> qint64 { return m_max_age; }
|
||||
void setMaximumAge(qint64 age) { m_max_age = age; }
|
||||
|
||||
bool isExpired(qint64 offset) { return !m_is_eternal && (m_current_age >= m_max_age - offset); };
|
||||
bool isExpired(qint64 offset) { return !m_is_eternal && (m_current_age >= m_max_age - offset); }
|
||||
|
||||
protected:
|
||||
QString m_baseId;
|
||||
|
@ -47,7 +47,7 @@
|
||||
class NetAction : public Task {
|
||||
Q_OBJECT
|
||||
protected:
|
||||
explicit NetAction() : Task(){};
|
||||
explicit NetAction() : Task() {}
|
||||
|
||||
public:
|
||||
using Ptr = shared_qobject_ptr<NetAction>;
|
||||
@ -76,7 +76,7 @@ class NetAction : public Task {
|
||||
qCritical() << "Certificate in question:\n" << cert.toText();
|
||||
i++;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public slots:
|
||||
void startAction(shared_qobject_ptr<QNetworkAccessManager> network)
|
||||
@ -86,7 +86,7 @@ class NetAction : public Task {
|
||||
}
|
||||
|
||||
protected:
|
||||
void executeTask() override{};
|
||||
void executeTask() override {}
|
||||
|
||||
public:
|
||||
shared_qobject_ptr<QNetworkAccessManager> m_network;
|
||||
|
@ -52,7 +52,7 @@ namespace Net {
|
||||
class NetRequest : public NetAction {
|
||||
Q_OBJECT
|
||||
protected:
|
||||
explicit NetRequest() : NetAction(){};
|
||||
explicit NetRequest() : NetAction() {}
|
||||
|
||||
public:
|
||||
using Ptr = shared_qobject_ptr<class NetRequest>;
|
||||
@ -62,7 +62,7 @@ class NetRequest : public NetAction {
|
||||
public:
|
||||
~NetRequest() override = default;
|
||||
|
||||
void init() override{};
|
||||
void init() override {}
|
||||
|
||||
public:
|
||||
void addValidator(Validator* v);
|
||||
|
@ -39,8 +39,8 @@
|
||||
namespace Net {
|
||||
class Validator {
|
||||
public: /* con/des */
|
||||
Validator(){};
|
||||
virtual ~Validator(){};
|
||||
Validator() {}
|
||||
virtual ~Validator() {}
|
||||
|
||||
public: /* methods */
|
||||
virtual bool init(QNetworkRequest& request) = 0;
|
||||
|
Reference in New Issue
Block a user