Files
qt5-legatus-legacy/Lts/Viewer/SituationMap/Map/map_notifier.h
T
2026-08-13 18:33:10 +02:00

61 lines
843 B
C++
Executable File

/**
* @RDE_HEADER@
* MapNotifier
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
// Own
#include "situation_map_types.h"
#include <situation_map_export.h>
// Qt
#include <QObject>
#include <QPointer>
#include <QTimer>
namespace SituationMap
{
//forward
class Map;
class SITUATIONMAP_EXPORT MapNotifier final : public QObject
{
Q_OBJECT
using BaseClass = QObject;
protected:
using BaseClass::BaseClass;
void setMap(Map *map);
public:
static QPointer<MapNotifier> createMapNotifier(Map *map, QObject *parent);
void run();
const QPointer<Map> map();
Q_SIGNALS:
void mapReady();
void mapReadyAndSymbolDictionaryLoaded();
protected Q_SLOTS:
void onMapReady();
void onMapReadyAndSymbolDictionaryLoaded();
private:
Q_DISABLE_COPY(MapNotifier)
QPointer<Map> m_map;
};
} // namespace SituationMap