QGIS API Documentation 3.39.0-Master (bca3cdb6021)
|
A babel format capable of interacting directly with a GPS device. More...
#include <qgsbabelgpsdevice.h>
Public Member Functions | |
QgsBabelGpsDeviceFormat ()=default | |
QgsBabelGpsDeviceFormat (const QString &waypointDownloadCommand, const QString &waypointUploadCommand, const QString &routeDownloadCommand, const QString &routeUploadCommand, const QString &trackDownloadCommand, const QString &trackUploadCommand) | |
Constructor for QgsBabelGpsDeviceFormat. | |
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. | |
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. | |
Public Member Functions inherited from QgsAbstractBabelFormat | |
virtual | ~QgsAbstractBabelFormat ()=default |
Qgis::BabelFormatCapabilities | capabilities () const |
Returns the format's capabilities. | |
QString | name () const |
Returns the format's name. | |
Additional Inherited Members | |
Protected Member Functions inherited from QgsAbstractBabelFormat | |
QgsAbstractBabelFormat (const QString &name=QString()) | |
Constructor for QgsAbstractBabelFormat, with the specified name. | |
Static Protected Member Functions inherited from QgsAbstractBabelFormat | |
static QString | featureTypeToArgument (Qgis::GpsFeatureType type) |
Converts a GPS feature type to the equivalent babel argument. | |
Protected Attributes inherited from QgsAbstractBabelFormat | |
Qgis::BabelFormatCapabilities | mCapabilities = Qgis::BabelFormatCapabilities() |
QString | mName |
Name of format. | |
A babel format capable of interacting directly with a GPS device.
Definition at line 35 of file qgsbabelgpsdevice.h.
|
default |
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 102 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 64 of file qgsbabelgpsdevice.cpp.