diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-08-26 00:21:41 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-08-26 00:21:41 -0400 |
| commit | 7395fbb7544740a136884e103cb0829bd10b5655 (patch) | |
| tree | 06131c395344d1bd08eb3a8b40e4f22a66b66e69 /src/settings.h | |
| parent | b1687380c5c10342699f95361e30f18a32bad585 (diff) | |
made ServerInfo a class
moved server functions together in Settings
Diffstat (limited to 'src/settings.h')
| -rw-r--r-- | src/settings.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/settings.h b/src/settings.h index 21776169..4662ed19 100644 --- a/src/settings.h +++ b/src/settings.h @@ -33,7 +33,7 @@ namespace MOBase { class QSplitter; class PluginContainer; -struct ServerInfo; +class ServerInfo; class Settings; class ExpanderWidget; @@ -191,13 +191,6 @@ public: bool lockGUI() const; /** - * @brief register download speed - * @param url complete download url - * @param bytesPerSecond download size in bytes per second - */ - void setDownloadSpeed(const QString &serverName, int bytesPerSecond); - - /** * the steam appid is assigned by the steam platform to each product sold there. * The appid may differ between different versions of a game so it may be impossible * for Mod Organizer to automatically recognize it, though usually it does @@ -217,11 +210,6 @@ public: QString getDownloadDirectory(bool resolve = true) const; /** - * retrieve a sorted list of preferred servers - */ - std::map<QString, int> getPreferredServers(); - - /** * retrieve the directory where mods are stored (with native separators) **/ QString getModDirectory(bool resolve = true) const; @@ -494,6 +482,18 @@ public: void setLanguage(const QString& name); /** + * @brief register download speed + * @param url complete download url + * @param bytesPerSecond download size in bytes per second + */ + void setDownloadSpeed(const QString &serverName, int bytesPerSecond); + + /** + * retrieve a sorted list of preferred servers + */ + std::map<QString, int> getPreferredServers(); + + /** * @brief updates the list of known servers * @param list of servers from a recent query */ |
