|
QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
A babel format capable of interacting directly with a GPS device. More...
#include <qgsbabelgpsdevice.h>

Public Member Functions | |
| QgsBabelGpsDeviceFormat ()=default | |
| Default constructor. More... | |
| QgsBabelGpsDeviceFormat (const QString &waypointDownloadCommand, const QString &waypointUploadCommand, const QString &routeDownloadCommand, const QString &routeUploadCommand, const QString &trackDownloadCommand, const QString &trackUploadCommand) | |
| Constructor for QgsBabelGpsDeviceFormat. More... | |
| QStringList | exportCommand (const QString &babel, Qgis::GpsFeatureType type, const QString &in, const QString &out, Qgis::BabelCommandFlags flags=Qgis::BabelCommandFlags()) const override |
| Generates a command for exporting GPS data into a different format using babel. More... | |
| QStringList | importCommand (const QString &babel, Qgis::GpsFeatureType type, const QString &in, const QString &out, Qgis::BabelCommandFlags flags=Qgis::BabelCommandFlags()) const override |
| Generates a command for importing data into a GPS format using babel. More... | |
Public Member Functions inherited from QgsAbstractBabelFormat | |
| virtual | ~QgsAbstractBabelFormat ()=default |
| Qgis::BabelFormatCapabilities | capabilities () const |
| Returns the format's capabilities. More... | |
| virtual QStringList | exportCommand (const QString &babel, Qgis::GpsFeatureType featureType, const QString &input, const QString &output, Qgis::BabelCommandFlags flags=Qgis::BabelCommandFlags()) const |
| Generates a command for exporting GPS data into a different format using babel. More... | |
| virtual QStringList | importCommand (const QString &babel, Qgis::GpsFeatureType featureType, const QString &input, const QString &output, Qgis::BabelCommandFlags flags=Qgis::BabelCommandFlags()) const |
| Generates a command for importing data into a GPS format using babel. More... | |
| QString | name () const |
| Returns the format's name. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from QgsAbstractBabelFormat | |
| QgsAbstractBabelFormat (const QString &name=QString()) | |
| Constructor for QgsAbstractBabelFormat, with the specified name. More... | |
Static Protected Member Functions inherited from QgsAbstractBabelFormat | |
| static QString | featureTypeToArgument (Qgis::GpsFeatureType type) |
| Converts a GPS feature type to the equivalent babel argument. More... | |
Protected Attributes inherited from QgsAbstractBabelFormat | |
| Qgis::BabelFormatCapabilities | mCapabilities = Qgis::BabelFormatCapabilities() |
| QString | mName |
| Name of format. More... | |
A babel format capable of interacting directly with a GPS device.
Definition at line 35 of file qgsbabelgpsdevice.h.
|
default |
Default constructor.
| QgsBabelGpsDeviceFormat::QgsBabelGpsDeviceFormat | ( | const QString & | waypointDownloadCommand, |
| const QString & | waypointUploadCommand, | ||
| const QString & | routeDownloadCommand, | ||
| const QString & | routeUploadCommand, | ||
| const QString & | trackDownloadCommand, | ||
| const QString & | trackUploadCommand | ||
| ) |
Constructor for QgsBabelGpsDeviceFormat.
| waypointDownloadCommand | command for downloading waypoints from device |
| waypointUploadCommand | command for uploading waypoints to device |
| routeDownloadCommand | command for downloading routes from device |
| routeUploadCommand | command for uploading routes to device |
| trackDownloadCommand | command for downloading tracks from device |
| trackUploadCommand | command for uploading tracks to device |
Definition at line 20 of file qgsbabelgpsdevice.cpp.
|
overridevirtual |
Generates a command for exporting GPS data into a different format using babel.
| babel | path to the babel executable |
| featureType | type of GPS feature to export |
| input | input data path |
| output | output path |
| flags | optional flags to control how babel command is generated |
Returns an empty list if the format does not support exports (see capabilities()).
Reimplemented from QgsAbstractBabelFormat.
Definition at line 142 of file qgsbabelgpsdevice.cpp.
|
overridevirtual |
Generates a command for importing data into a GPS format using babel.
| babel | babel path to the babel executable |
| featureType | type of GPS feature to import |
| input | input data path |
| output | output path |
| flags | optional flags to control how babel command is generated |
Returns an empty list if the format does not support imports (see capabilities()).
Reimplemented from QgsAbstractBabelFormat.
Definition at line 104 of file qgsbabelgpsdevice.cpp.