From 9249768db5f5b09d67e81370da828e3cb99cc3df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 31 Jan 2015 19:21:47 +0100 Subject: NOISSUE Make tests no longer use the MultiMC object They do not require the application part anymore --- logic/Env.cpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'logic/Env.cpp') diff --git a/logic/Env.cpp b/logic/Env.cpp index de93ded3..daf17d65 100644 --- a/logic/Env.cpp +++ b/logic/Env.cpp @@ -4,11 +4,12 @@ #include #include #include "logger/QsLog.h" -#include "MultiMC.h" + +#include Env::Env() { - // null + m_qnam = std::make_shared(); } void Env::destroy() @@ -23,6 +24,18 @@ Env& Env::Env::getInstance() return instance; } +std::shared_ptr< HttpMetaCache > Env::metacache() +{ + Q_ASSERT(m_metacache != nullptr); + return m_metacache; +} + +std::shared_ptr< QNetworkAccessManager > Env::qnam() +{ + return m_qnam; +} + + void Env::initHttpMetaCache(QString rootPath, QString staticDataPath) { m_metacache.reset(new HttpMetaCache("metacache")); -- cgit v1.2.3