Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+60
@@ -0,0 +1,60 @@
|
||||
/**
|
||||
* @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
|
||||
|
||||
Reference in new issue
Block a user