diff options
author | Petr Mrázek <peterix@gmail.com> | 2021-11-21 23:21:12 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2021-11-21 23:21:12 +0100 |
commit | 69213b1206e97f7d4db4270a4b3b0af41dc9e6fc (patch) | |
tree | b53ca69422ce22cceee9e648171a678679075c1a /launcher/Env.h | |
parent | c2c56a2f6ceaedb8a3fa88c848b345db0fec7f9c (diff) | |
download | PrismLauncher-69213b1206e97f7d4db4270a4b3b0af41dc9e6fc.tar.gz PrismLauncher-69213b1206e97f7d4db4270a4b3b0af41dc9e6fc.tar.bz2 PrismLauncher-69213b1206e97f7d4db4270a4b3b0af41dc9e6fc.zip |
NOISSUE continue refactoring things to make tests pass
Diffstat (limited to 'launcher/Env.h')
-rw-r--r-- | launcher/Env.h | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/launcher/Env.h b/launcher/Env.h deleted file mode 100644 index cbf31732..00000000 --- a/launcher/Env.h +++ /dev/null @@ -1,63 +0,0 @@ -#pragma once - -#include <memory> -#include "icons/IIconList.h" -#include <QString> -#include <QMap> - -#include "QObjectPtr.h" - -class QNetworkAccessManager; -class HttpMetaCache; -class BaseVersionList; -class BaseVersion; - -namespace Meta -{ -class Index; -} - -#if defined(ENV) - #undef ENV -#endif -#define ENV (Env::getInstance()) - - -class Env -{ - friend class Application; -private: - struct Private; - Env(); - ~Env(); - static void dispose(); -public: - static Env* getInstance(); - - QNetworkAccessManager &network() const; - - shared_qobject_ptr<HttpMetaCache> metacache(); - - std::shared_ptr<IIconList> icons(); - - /// init the cache. FIXME: possible future hook point - void initHttpMetaCache(); - - /// Updates the application proxy settings from the settings object. - void updateProxySettings(QString proxyTypeStr, QString addr, int port, QString user, QString password); - - void registerIconList(std::shared_ptr<IIconList> iconlist); - - shared_qobject_ptr<Meta::Index> metadataIndex(); - - QString getJarsPath(); - void setJarsPath(const QString & path); - - bool isFeatureEnabled(const QString & featureName) const; - void enableFeature(const QString & featureName, bool state = true); - void getEnabledFeatures(QSet<QString> & features) const; - void setEnabledFeatures(const QSet<QString> & features) const; - -protected: - Private * d; -}; |