35 lines
878 B
C++
Executable File
35 lines
878 B
C++
Executable File
/**
|
|
* Subscribe to MeteoDataManagement and provide the correct weather for the given position
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QMap>
|
|
#include <InfrastructureManagement/ism_dtc.h>
|
|
|
|
namespace AreaEffectSimulation
|
|
{
|
|
class MainHandler;
|
|
class SpecialAreaProvider : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit SpecialAreaProvider(MainHandler *mainHandler);
|
|
~SpecialAreaProvider();
|
|
|
|
QMap<int,InfrastructureManagement::SpecialArea> getSpecialAreas();
|
|
|
|
private Q_SLOTS:
|
|
void specialAreaChanged(const InfrastructureManagement::SpecialArea &data, DataModification modType);
|
|
private:
|
|
void initSpecialAreas();
|
|
private:
|
|
MainHandler *m_mainHandler;
|
|
std::shared_ptr<InfrastructureManagement::Interface::Dtc> m_ismDtc;
|
|
QMap<int, InfrastructureManagement::SpecialArea> m_specialAreaMap;
|
|
};
|
|
} // namespace AreaEffectSimulation
|