QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
qgsbabelgpsdevice.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsbabelgpsdevice.h
3  Functions:
4  -------------------
5  begin : Oct 05, 2004
6  copyright : (C) 2004 by Lars Luthman
7  email : [email protected]
8 
9  ***************************************************************************/
10 
11 /***************************************************************************
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * *
18  ***************************************************************************/
19 
20 #ifndef QGSBABELGPSDEVICE_H
21 #define QGSBABELGPSDEVICE_H
22 
23 #include <QString>
24 #include <QStringList>
25 
26 #include "qgsbabelformat.h"
27 
36 {
37  public:
38 
40  QgsBabelGpsDeviceFormat() = default;
41 
52  QgsBabelGpsDeviceFormat( const QString &waypointDownloadCommand,
53  const QString &waypointUploadCommand,
54  const QString &routeDownloadCommand,
55  const QString &routeUploadCommand,
56  const QString &trackDownloadCommand,
57  const QString &trackUploadCommand );
58 
59  QStringList importCommand( const QString &babel, Qgis::GpsFeatureType type, const QString &in, const QString &out,
60  Qgis::BabelCommandFlags flags = Qgis::BabelCommandFlags() ) const override;
61  QStringList exportCommand( const QString &babel, Qgis::GpsFeatureType type, const QString &in, const QString &out,
62  Qgis::BabelCommandFlags flags = Qgis::BabelCommandFlags() ) const override;
63 
64  private:
65 
66  QStringList mWaypointDownloadCommand;
67  QStringList mWaypointUploadCommand;
68  QStringList mRouteDownloadCommand;
69  QStringList mRouteUploadCommand;
70  QStringList mTrackDownloadCommand;
71  QStringList mTrackUploadCommand;
72 };
73 
74 #endif // QGSBABELGPSDEVICE_H
qgsbabelformat.h
QgsBabelGpsDeviceFormat
A babel format capable of interacting directly with a GPS device.
Definition: qgsbabelgpsdevice.h:35
QgsAbstractBabelFormat::exportCommand
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.
Definition: qgsbabelformat.cpp:51
QgsAbstractBabelFormat::importCommand
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.
Definition: qgsbabelformat.cpp:46
Qgis::GpsFeatureType
GpsFeatureType
Babel command flags.
Definition: qgis.h:886
QgsAbstractBabelFormat
Abstract base class for babel GPS formats.
Definition: qgsbabelformat.h:33