QGIS API Documentation  3.23.0-Master (7c4a6de034)
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 
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
GpsFeatureType
Babel command flags.
Definition: qgis.h:646
Abstract base class for babel GPS formats.
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.
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.
A babel format capable of interacting directly with a GPS device.
QgsBabelGpsDeviceFormat()=default
Default constructor.