QGIS API Documentation  3.24.2-Tisler (13c1a02865)
qgsbabelformatregistry.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsbabelformatregistry.h
3  -------------------
4  begin : July 2021
5  copyright : (C) 2021 by Nyall Dawson
6  email : nyall dot dawson at gmail dot com
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef QGSBABELFORMATREGISTRY_H
17 #define QGSBABELFORMATREGISTRY_H
18 
19 #include "qgis_core.h"
20 #include "qgis.h"
21 
24 
35 class CORE_EXPORT QgsBabelFormatRegistry
36 {
37  public:
38 
47 
52 
56  QStringList importFormatNames() const;
57 
64  QgsBabelSimpleImportFormat *importFormat( const QString &name );
65 
71  QgsBabelSimpleImportFormat *importFormatByDescription( const QString &description );
72 
76  QString importFileFilter() const;
77 
81  QStringList deviceNames() const;
82 
88  QgsBabelGpsDeviceFormat *deviceFormat( const QString &name );
89 
96  QMap< QString, QgsBabelGpsDeviceFormat * > devices() const;
97 
101  void reloadFromSettings();
102 
103  private:
104 #ifdef SIP_RUN
106 #endif
107 
109  QMap< QString, QgsBabelSimpleImportFormat *> mImporters;
111  QMap< QString, QgsBabelGpsDeviceFormat *> mDevices;
112 };
113 
114 
115 #endif // QGSBABELFORMATREGISTRY_H
A registry for QgsAbstractBabelFormat GPSBabel formats.
QgsBabelFormatRegistry & operator=(const QgsBabelFormatRegistry &rh)=delete
QgsBabelFormatRegistry cannot be copied.
QgsBabelFormatRegistry(const QgsBabelFormatRegistry &rh)=delete
QgsBabelFormatRegistry cannot be copied.
A babel format capable of interacting directly with a GPS device.
A babel format capable of converting input files to GPX files.