From aff3ee8fcf427c9ff8c554a179222eabec3a95e2 Mon Sep 17 00:00:00 2001
From: isanae <14251494+isanae@users.noreply.github.com>
Date: Mon, 26 Aug 2019 01:07:03 -0400
Subject: moved preferred servers into ServerList
---
src/downloadmanager.h | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
(limited to 'src/downloadmanager.h')
diff --git a/src/downloadmanager.h b/src/downloadmanager.h
index feef0eaa..f739f4f0 100644
--- a/src/downloadmanager.h
+++ b/src/downloadmanager.h
@@ -20,6 +20,7 @@ along with Mod Organizer. If not, see .
#ifndef DOWNLOADMANAGER_H
#define DOWNLOADMANAGER_H
+#include "serverinfo.h"
#include
#include
#include
@@ -174,9 +175,9 @@ public:
QString getOutputDirectory() const { return m_OutputDirectory; }
/**
- * @brief setPreferredServers set the list of preferred servers
+ * @brief sets the list of servers
*/
- void setPreferredServers(const std::map &preferredServers);
+ void setServers(const ServerList& servers);
/**
* @brief set the list of supported extensions
@@ -366,7 +367,9 @@ public:
* @param RHS
* @return
*/
- static bool ServerByPreference(const std::map &preferredServers, const QVariant &LHS, const QVariant &RHS);
+ static bool ServerByPreference(
+ const QList& preferredServers,
+ const QVariant &LHS, const QVariant &RHS);
virtual int startDownloadURLs(const QStringList &urls);
@@ -548,7 +551,7 @@ private:
QVector m_ActiveDownloads;
QString m_OutputDirectory;
- std::map m_PreferredServers;
+ ServerList m_Servers;
QStringList m_SupportedExtensions;
std::set m_RequestIDs;
QVector m_AlphabeticalTranslation;
--
cgit v1.3.1