QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
Loading...
Searching...
No Matches
qgsvectordataprovidertemporalcapabilities.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsvectordataprovidertemporalcapabilities.h
3 ---------------
4 begin : March 2020
5 copyright : (C) 2020 by Nyall Dawson
6 email : nyall dot dawson at gmail 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 QGSVECTORDATAPROVIDERTEMPORALCAPABILITIES_H
19#define QGSVECTORDATAPROVIDERTEMPORALCAPABILITIES_H
20
21#include "qgis_core.h"
22#include "qgis_sip.h"
24#include "qgsrange.h"
25
38{
39 public:
45 QgsVectorDataProviderTemporalCapabilities( bool enabled = false );
46
53
60
67
74
83 QString startField() const;
84
93 void setStartField( const QString &field );
94
101 QString endField() const;
102
109 void setEndField( const QString &field );
110
111 private:
120 QgsDateTimeRange mAvailableTemporalRange;
121
123
124 QString mStartField;
125 QString mEndField;
126};
127
128#endif // QGSVECTORDATAPROVIDERTEMPORALCAPABILITIES_H
VectorDataProviderTemporalMode
Vector data provider temporal handling modes.
Definition qgis.h:2699
@ HasFixedTemporalRange
Entire dataset from provider has a fixed start and end datetime.
Definition qgis.h:2700
QgsDataProviderTemporalCapabilities(bool available=false)
Constructor for QgsDataProviderTemporalCapabilities.
void setEndField(const QString &field)
Sets the name of the end datetime field, which stores the end time for the feature's time spans.
QgsVectorDataProviderTemporalCapabilities(bool enabled=false)
Constructor for QgsVectorDataProviderTemporalCapabilities.
const QgsDateTimeRange & availableTemporalRange() const
Returns the datetime range extent from which temporal data is available from the provider.
Qgis::VectorDataProviderTemporalMode mode() const
Returns the temporal properties mode.
QString startField() const
Returns the name of the start datetime field, which contains the start time for the feature's time sp...
QString endField() const
Returns the name of the end datetime field, which stores the end time for the feature's time spans.
void setMode(Qgis::VectorDataProviderTemporalMode mode)
Sets the temporal properties mode.
void setStartField(const QString &field)
Sets the name of the start datetime field, which stores the start time for the feature's time spans.
void setAvailableTemporalRange(const QgsDateTimeRange &range)
Sets the datetime range extent from which temporal data is available from the provider.
QgsTemporalRange< QDateTime > QgsDateTimeRange
QgsRange which stores a range of date times.
Definition qgsrange.h:705