QGIS API Documentation 4.1.0-Master (60fea48833c)
Loading...
Searching...
No Matches
qgstemporalcontroller.h
Go to the documentation of this file.
1/***************************************************************************
2 qgstemporalcontroller.h
3 ---------------
4 begin : March 2020
5 copyright : (C) 2020 by Samweli Mwakisambwe
6 email : samweli at kartoza dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGSTEMPORALCONTROLLER_H
19#define QGSTEMPORALCONTROLLER_H
20
21#include "qgis_core.h"
22#include "qgis_sip.h"
23#include "qgsrange.h"
24
25#include <QObject>
26
27#ifdef SIP_RUN
28// clang-format off
29% ModuleHeaderCode
31% End
32// clang-format on
33#endif
34
43 class CORE_EXPORT QgsTemporalController : public QObject
44{
45 Q_OBJECT
46
47#ifdef SIP_RUN
49 if ( qobject_cast<QgsTemporalNavigationObject *>( sipCpp ) )
50 {
51 sipType = sipType_QgsTemporalNavigationObject;
52 }
53 else
54 {
55 sipType = 0;
56 }
58#endif
59
60 public:
61
66 QgsTemporalController( QObject *parent SIP_TRANSFERTHIS = nullptr );
67
68 signals:
69
75};
76
77#endif // QGSTEMPORALCONTROLLER_H
QgsTemporalController(QObject *parent=nullptr)
Constructor for QgsTemporalController, with the specified parent object.
void updateTemporalRange(const QgsDateTimeRange &range)
Signals that a temporal range has changed and needs to be updated in all connected objects.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Definition qgis_sip.h:198
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:52
#define SIP_END
Definition qgis_sip.h:215
QgsTemporalRange< QDateTime > QgsDateTimeRange
QgsRange which stores a range of date times.
Definition qgsrange.h:705