refs #417 Rename ISimulator::SimulatorStatus to SimulatorStatusFlag

This commit is contained in:
Michał Garapich
2015-05-22 23:14:26 +02:00
committed by Michal Garapich
parent 49a9b91258
commit e3bb701d7b
2 changed files with 4 additions and 1 deletions

View File

@@ -72,7 +72,7 @@ namespace BlackCore
void simulatorStatusChanged(int status); void simulatorStatusChanged(int status);
//! Simulator plugin loaded / unloaded (default info) //! Simulator plugin loaded / unloaded (default info)
void simulatorPluginChanged(const BlackMisc::Simulation::CSimulatorPluginInfo &info); void simulatorPluginChanged(BlackMisc::Simulation::CSimulatorPluginInfo info);
//! Render restrictions have been changed //! Render restrictions have been changed
void renderRestrictionsChanged(bool restricted, bool enabled, int maxAircraft, const BlackMisc::PhysicalQuantities::CLength &maxRenderedDistance, const BlackMisc::PhysicalQuantities::CLength &maxRenderedBoundary); void renderRestrictionsChanged(bool restricted, bool enabled, int maxAircraft, const BlackMisc::PhysicalQuantities::CLength &maxRenderedDistance, const BlackMisc::PhysicalQuantities::CLength &maxRenderedBoundary);

View File

@@ -41,6 +41,7 @@ namespace BlackCore
public: public:
//! ISimulator status //! ISimulator status
//! \todo Qt5.5: Make use of QFlags
enum SimulatorStatusFlag enum SimulatorStatusFlag
{ {
Disconnected = 0, Disconnected = 0,
@@ -48,6 +49,7 @@ namespace BlackCore
Simulating = 1 << 1, //!< Is the simulator actually simulating? Simulating = 1 << 1, //!< Is the simulator actually simulating?
Paused = 1 << 2, //!< Is the simulator paused? Paused = 1 << 2, //!< Is the simulator paused?
}; };
Q_DECLARE_FLAGS(SimulatorStatus, SimulatorStatusFlag)
Q_DECLARE_FLAGS(SimulatorStatus, SimulatorStatusFlag) Q_DECLARE_FLAGS(SimulatorStatus, SimulatorStatusFlag)
@@ -180,6 +182,7 @@ namespace BlackCore
signals: signals:
//! Simulator combined status //! Simulator combined status
//! \todo Qt5.5: Make use of QFlags
void simulatorStatusChanged(int status); void simulatorStatusChanged(int status);
//! Emitted when own aircraft model has changed //! Emitted when own aircraft model has changed