QGIS API Documentation 3.43.0-Master (261ee7da134)
qgsgpstoolsinterface.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsgpstoolsinterface.h
3 ---------------------
4 begin : May 2025
5 copyright : (C) 2025 by Germán Carrillo
6 email : german at opengis dot ch
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15#ifndef QGSGPSTOOLSINTERFACE_H
16#define QGSGPSTOOLSINTERFACE_H
17
18#include "qgis_sip.h"
19#include "qgis_gui.h"
20
22class QgsLineSymbol;
23
30class GUI_EXPORT QgsGpsToolsInterface
31{
32 public:
33 virtual ~QgsGpsToolsInterface() = default;
34
41 virtual void setGpsPanelConnection( QgsGpsConnection *connection SIP_TRANSFER ) = 0;
42
52 virtual void createFeatureFromGpsTrack() = 0;
53
59 virtual void setGpsTrackLineSymbol( QgsLineSymbol *symbol ) = 0;
60};
61
62#endif // QGSGPSTOOLSINTERFACE_H
Abstract base class for connections to a GPS device.
Abstract interface class for the QGIS GPS tools.
virtual void setGpsPanelConnection(QgsGpsConnection *connection)=0
Sets a GPS connection to use within the GPS Panel widget.
virtual void setGpsTrackLineSymbol(QgsLineSymbol *symbol)=0
Sets the line symbol of the GPS track and changes the QgsAppGpsDigitizing::settingTrackLineSymbol set...
virtual ~QgsGpsToolsInterface()=default
virtual void createFeatureFromGpsTrack()=0
Creates a feature from the current GPS track.
A line symbol type, for rendering LineString and MultiLineString geometries.
#define SIP_TRANSFER
Definition qgis_sip.h:36