QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
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 "qgssettingstree.h"
22#include "qgis.h"
23
26
37class CORE_EXPORT QgsBabelFormatRegistry
38{
39 public:
40
41#ifndef SIP_RUN
42
43 static inline QgsSettingsTreeNamedListNode *sTreeBabelDevices = QgsSettingsTree::sTreeGps->createNamedListNode( QStringLiteral( "babel-devices" ) );
44
51#endif
52
61
66
70 QStringList importFormatNames() const;
71
78 QgsBabelSimpleImportFormat *importFormat( const QString &name );
79
85 QgsBabelSimpleImportFormat *importFormatByDescription( const QString &description );
86
90 QString importFileFilter() const;
91
95 QStringList deviceNames() const;
96
102 QgsBabelGpsDeviceFormat *deviceFormat( const QString &name );
103
110 QMap< QString, QgsBabelGpsDeviceFormat * > devices() const;
111
115 void reloadFromSettings();
116
117 private:
118#ifdef SIP_RUN
120#endif
121
123 QMap< QString, QgsBabelSimpleImportFormat *> mImporters;
125 QMap< QString, QgsBabelGpsDeviceFormat *> mDevices;
126};
127
128
129#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 node for the settings tree to help organizing and i...
QgsSettingsTreeNamedListNode * createNamedListNode(const QString &key, const Qgis::SettingsTreeNodeOptions &options=Qgis::SettingsTreeNodeOptions()) SIP_THROW(QgsSettingsException)
Creates a named list tree node.
static QgsSettingsTreeNode * sTreeGps