16#ifndef QGSVECTORLAYERGPSLOGGER_H
17#define QGSVECTORLAYERGPSLOGGER_H
155 void endCurrentTrack();
163 bool mUseEditBuffer =
true;
165 QPointer< QgsVectorLayer > mPointsLayer;
166 QPointer< QgsVectorLayer > mTracksLayer;
171 QMap< Qgis::GpsInformationComponent, QString > mDestinationFields;
173 QVariant timestamp(
QgsVectorLayer *vlayer,
int idx,
const QDateTime &time );
GpsInformationComponent
GPS information component.
Contains information about the context in which a coordinate transform is executed.
Abstract base class for connections to a GPS device.
virtual void setTransformContext(const QgsCoordinateTransformContext &context)
Sets the coordinate transform context to be used when transforming GPS coordinates.
QgsGpsLogger(QgsGpsConnection *connection, QObject *parent=nullptr)
Constructor for QgsGpsLogger with the specified parent object.
QgsGpsConnection * connection()
Returns the associated GPS connection.
bool writeToEditBuffer() const
Returns true if the logger will use the vector layer edit buffer for the destination layers.
void setWriteToEditBuffer(bool buffer)
Sets whether the logger will use the vector layer edit buffer for the destination layers.
QgsVectorLayerGpsLogger(QgsGpsConnection *connection, QObject *parent=nullptr)
Constructor for QgsVectorLayerGpsLogger with the specified parent object.
Represents a vector layer which manages a vector based dataset.