QGIS API Documentation 3.29.0-Master (19d7edcfed)
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"
21#include "qgis.h"
22
25
36class CORE_EXPORT QgsBabelFormatRegistry
37{
38 public:
39
40#ifndef SIP_RUN
41
42 static inline QgsSettingsTreeNamedListNode *sTreeBabelDevices = QgsSettings::sTreeGps->createNamedListElement( QStringLiteral( "babel-devices" ) );
43
50#endif
51
60
65
69 QStringList importFormatNames() const;
70
77 QgsBabelSimpleImportFormat *importFormat( const QString &name );
78
84 QgsBabelSimpleImportFormat *importFormatByDescription( const QString &description );
85
89 QString importFileFilter() const;
90
94 QStringList deviceNames() const;
95
101 QgsBabelGpsDeviceFormat *deviceFormat( const QString &name );
102
109 QMap< QString, QgsBabelGpsDeviceFormat * > devices() const;
110
114 void reloadFromSettings();
115
116 private:
117#ifdef SIP_RUN
119#endif
120
122 QMap< QString, QgsBabelSimpleImportFormat *> mImporters;
124 QMap< QString, QgsBabelGpsDeviceFormat *> mDevices;
125};
126
127
128#endif // QGSBABELFORMATREGISTRY_H
A registry for QgsAbstractBabelFormat GPSBabel formats.
static const QgsSettingsEntryString * settingsBabelWptDownload
static const QgsSettingsEntryString * settingsBabelRteUpload
static const QgsSettingsEntryString * settingsBabelTrkDownload
static const QgsSettingsEntryString * settingsBabelWptUpload
static const QgsSettingsEntryString * settingsBabelTrkUpload
QgsBabelFormatRegistry & operator=(const QgsBabelFormatRegistry &rh)=delete
QgsBabelFormatRegistry cannot be copied.
QgsBabelFormatRegistry(const QgsBabelFormatRegistry &rh)=delete
QgsBabelFormatRegistry cannot be copied.
static const QgsSettingsEntryString * settingsBabelRteDownload
A babel format capable of interacting directly with a GPS device.
A babel format capable of converting input files to GPX files.
A string settings entry.
QgsSettingsTreeNamedListNode is a named list tree element for the settings registry to help organizin...
QgsSettingsTreeNamedListNode * createNamedListElement(const QString &key, const QgsSettingsTreeNode::Options &options=QgsSettingsTreeNode::Options()) SIP_THROW(QgsSettingsException)
Creates a named list tree element.
static QgsSettingsTreeNode * sTreeGps
Definition: qgssettings.h:98