mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
* changed CValueObject apply * created CIndexPropertyList * renamed CIndexVariantMap to CPropertyIndexVariantMap
This commit is contained in:
@@ -37,7 +37,7 @@ namespace BlackSim
|
||||
CFsxSimulatorSetup() : BlackSim::CSimulatorSetup() {}
|
||||
|
||||
//! Constructor
|
||||
CFsxSimulatorSetup(const BlackMisc::CIndexVariantMap &map) : BlackSim::CSimulatorSetup(map) {}
|
||||
CFsxSimulatorSetup(const BlackMisc::CPropertyIndexVariantMap &map) : BlackSim::CSimulatorSetup(map) {}
|
||||
|
||||
//! Init, to be used where FSX runs
|
||||
void init();
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace BlackSim
|
||||
return qv.toString();
|
||||
}
|
||||
|
||||
void CSimulatorInfo::setSimulatorSetup(const BlackMisc::CIndexVariantMap &setup)
|
||||
void CSimulatorInfo::setSimulatorSetup(const BlackMisc::CPropertyIndexVariantMap &setup)
|
||||
{
|
||||
this->m_simsetup = setup;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef BLACKSIM_SIMULATORINFO_H
|
||||
#define BLACKSIM_SIMULATORINFO_H
|
||||
|
||||
#include "blackmisc/indexvariantmap.h"
|
||||
#include "blackmisc/propertyindexvariantmap.h"
|
||||
#include "blackmisc/valueobject.h"
|
||||
|
||||
namespace BlackSim
|
||||
@@ -32,7 +32,7 @@ namespace BlackSim
|
||||
QString getSimulatorSetupValueAsString(int index) const;
|
||||
|
||||
//! Set single settings
|
||||
void setSimulatorSetup(const BlackMisc::CIndexVariantMap &setup);
|
||||
void setSimulatorSetup(const BlackMisc::CPropertyIndexVariantMap &setup);
|
||||
|
||||
//! Short name
|
||||
const QString &getShortName() const { return m_shortName; }
|
||||
@@ -112,7 +112,7 @@ namespace BlackSim
|
||||
BLACK_ENABLE_TUPLE_CONVERSION(CSimulatorInfo)
|
||||
QString m_fullName;
|
||||
QString m_shortName;
|
||||
BlackMisc::CIndexVariantMap m_simsetup; //!< allows to access simulator keys requried on remote side
|
||||
BlackMisc::CPropertyIndexVariantMap m_simsetup; //!< allows to access simulator keys requried on remote side
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace BlackSim
|
||||
{
|
||||
void CSimulatorSetup::setSettings(const BlackMisc::CIndexVariantMap &map)
|
||||
void CSimulatorSetup::setSettings(const BlackMisc::CPropertyIndexVariantMap &map)
|
||||
{
|
||||
this->m_setup = map;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#ifndef BLACKSIM_SIMSETUP_H
|
||||
#define BLACKSIM_SIMSETUP_H
|
||||
|
||||
#include "blackmisc/indexvariantmap.h"
|
||||
#include "blackmisc/propertyindexvariantmap.h"
|
||||
#include <QMap>
|
||||
#include <QString>
|
||||
|
||||
@@ -26,14 +26,14 @@ namespace BlackSim
|
||||
class CSimulatorSetup
|
||||
{
|
||||
protected:
|
||||
BlackMisc::CIndexVariantMap m_setup; //!< values describing the simulator setup (path, config files)
|
||||
BlackMisc::CPropertyIndexVariantMap m_setup; //!< values describing the simulator setup (path, config files)
|
||||
|
||||
protected:
|
||||
//! Default constructor
|
||||
CSimulatorSetup() {}
|
||||
|
||||
//! Constructor
|
||||
CSimulatorSetup(const BlackMisc::CIndexVariantMap &map) : m_setup(map) {}
|
||||
CSimulatorSetup(const BlackMisc::CPropertyIndexVariantMap &map) : m_setup(map) {}
|
||||
|
||||
public:
|
||||
//! Specific values
|
||||
@@ -43,10 +43,10 @@ namespace BlackSim
|
||||
};
|
||||
|
||||
//! Settings
|
||||
BlackMisc::CIndexVariantMap getSettings() const { return this->m_setup;}
|
||||
BlackMisc::CPropertyIndexVariantMap getSettings() const { return this->m_setup;}
|
||||
|
||||
//! Settings
|
||||
void setSettings(const BlackMisc::CIndexVariantMap &map);
|
||||
void setSettings(const BlackMisc::CPropertyIndexVariantMap &map);
|
||||
|
||||
//! Init, to be used where simulator runs
|
||||
void init();
|
||||
|
||||
Reference in New Issue
Block a user