QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
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
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
51 QgsBabelGpsDeviceFormat( const QString &waypointDownloadCommand,
52 const QString &waypointUploadCommand,
53 const QString &routeDownloadCommand,
54 const QString &routeUploadCommand,
55 const QString &trackDownloadCommand,
56 const QString &trackUploadCommand );
57
58 QStringList importCommand( const QString &babel, Qgis::GpsFeatureType type, const QString &in, const QString &out,
59 Qgis::BabelCommandFlags flags = Qgis::BabelCommandFlags() ) const override;
60 QStringList exportCommand( const QString &babel, Qgis::GpsFeatureType type, const QString &in, const QString &out,
61 Qgis::BabelCommandFlags flags = Qgis::BabelCommandFlags() ) const override;
62
63 private:
64
65 QStringList mWaypointDownloadCommand;
66 QStringList mWaypointUploadCommand;
67 QStringList mRouteDownloadCommand;
68 QStringList mRouteUploadCommand;
69 QStringList mTrackDownloadCommand;
70 QStringList mTrackUploadCommand;
71};
72
73#endif // QGSBABELGPSDEVICE_H
QFlags< BabelCommandFlag > BabelCommandFlags
Babel command flags.
Definition qgis.h:1927
GpsFeatureType
GPS feature types.
Definition qgis.h:1937
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