diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-08-26 01:07:03 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-08-26 01:07:03 -0400 |
| commit | aff3ee8fcf427c9ff8c554a179222eabec3a95e2 (patch) | |
| tree | 3dde0e860cd7dd4bdd8d487d5a84f27715929068 /src/downloadmanager.h | |
| parent | 36dbb4bad74b097d44b843a2e934aa4a58ef6492 (diff) | |
moved preferred servers into ServerList
Diffstat (limited to 'src/downloadmanager.h')
| -rw-r--r-- | src/downloadmanager.h | 11 |
1 files changed, 7 insertions, 4 deletions
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 <http://www.gnu.org/licenses/>. #ifndef DOWNLOADMANAGER_H #define DOWNLOADMANAGER_H +#include "serverinfo.h" #include <idownloadmanager.h> #include <modrepositoryfileinfo.h> #include <set> @@ -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<QString, int> &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<QString, int> &preferredServers, const QVariant &LHS, const QVariant &RHS); + static bool ServerByPreference( + const QList<ServerInfo>& preferredServers, + const QVariant &LHS, const QVariant &RHS); virtual int startDownloadURLs(const QStringList &urls); @@ -548,7 +551,7 @@ private: QVector<DownloadInfo*> m_ActiveDownloads; QString m_OutputDirectory; - std::map<QString, int> m_PreferredServers; + ServerList m_Servers; QStringList m_SupportedExtensions; std::set<int> m_RequestIDs; QVector<int> m_AlphabeticalTranslation; |
