mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-11 20:34:47 +00:00
Changed: Create a typedef for lists of profiles and servers
This commit is contained in:
parent
78587d3d47
commit
960b3bc5e3
1 changed files with 12 additions and 2 deletions
|
@ -40,6 +40,8 @@ struct CServer
|
||||||
|
|
||||||
extern const CServer NoServer;
|
extern const CServer NoServer;
|
||||||
|
|
||||||
|
typedef QVector<CServer> CServers;
|
||||||
|
|
||||||
struct CProfile
|
struct CProfile
|
||||||
{
|
{
|
||||||
CProfile()
|
CProfile()
|
||||||
|
@ -58,6 +60,8 @@ struct CProfile
|
||||||
|
|
||||||
extern const CProfile NoProfile;
|
extern const CProfile NoProfile;
|
||||||
|
|
||||||
|
typedef QVector<CProfile> CProfiles;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Config file management and other stuff related to location of files/directories.
|
* Config file management and other stuff related to location of files/directories.
|
||||||
*
|
*
|
||||||
|
@ -94,10 +98,16 @@ public:
|
||||||
|
|
||||||
static CConfigFile* getInstance();
|
static CConfigFile* getInstance();
|
||||||
|
|
||||||
|
CServers getServers() const { return m_servers; }
|
||||||
|
void setServers(const CServers &servers) { m_servers = servers; }
|
||||||
|
|
||||||
int getServersCount() const;
|
int getServersCount() const;
|
||||||
const CServer& getServer(int i = -1) const;
|
const CServer& getServer(int i = -1) const;
|
||||||
const CServer& getServer(const QString &id) 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;
|
int getProfilesCount() const;
|
||||||
CProfile getProfile(int i = -1) const;
|
CProfile getProfile(int i = -1) const;
|
||||||
void setProfile(int i, const CProfile &profile);
|
void setProfile(int i, const CProfile &profile);
|
||||||
|
@ -149,8 +159,8 @@ private:
|
||||||
int m_defaultServer;
|
int m_defaultServer;
|
||||||
int m_defaultProfile;
|
int m_defaultProfile;
|
||||||
|
|
||||||
QVector<CServer> m_servers;
|
CServers m_servers;
|
||||||
QVector<CProfile> m_profiles;
|
CProfiles m_profiles;
|
||||||
|
|
||||||
QString m_installationDirectory;
|
QString m_installationDirectory;
|
||||||
QString m_srcDirectory;
|
QString m_srcDirectory;
|
||||||
|
|
Loading…
Reference in a new issue