From 960b3bc5e3daaeb9e6293ad2af945d4983263a1c Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 5 Mar 2016 12:34:02 +0100 Subject: [PATCH] Changed: Create a typedef for lists of profiles and servers --- .../tools/client/ryzom_installer/src/configfile.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/code/ryzom/tools/client/ryzom_installer/src/configfile.h b/code/ryzom/tools/client/ryzom_installer/src/configfile.h index 649d6404e..5b2a15f6f 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/configfile.h +++ b/code/ryzom/tools/client/ryzom_installer/src/configfile.h @@ -40,6 +40,8 @@ struct CServer extern const CServer NoServer; +typedef QVector CServers; + struct CProfile { CProfile() @@ -58,6 +60,8 @@ struct CProfile extern const CProfile NoProfile; +typedef QVector CProfiles; + /** * Config file management and other stuff related to location of files/directories. * @@ -94,10 +98,16 @@ public: static CConfigFile* getInstance(); + CServers getServers() const { return m_servers; } + void setServers(const CServers &servers) { m_servers = servers; } + int getServersCount() const; const CServer& getServer(int i = -1) const; const CServer& getServer(const QString &id) const; + CProfiles getProfiles() const { return m_profiles; } + void setProfiles(const CProfiles &profiles) { m_profiles = profiles; } + int getProfilesCount() const; CProfile getProfile(int i = -1) const; void setProfile(int i, const CProfile &profile); @@ -149,8 +159,8 @@ private: int m_defaultServer; int m_defaultProfile; - QVector m_servers; - QVector m_profiles; + CServers m_servers; + CProfiles m_profiles; QString m_installationDirectory; QString m_srcDirectory;