QGIS API Documentation 3.27.0-Master (0a97e3138f)
Public Member Functions | List of all members
QgsBabelFormatRegistry Class Reference

A registry for QgsAbstractBabelFormat GPSBabel formats. More...

#include <qgsbabelformatregistry.h>

Public Member Functions

 QgsBabelFormatRegistry ()
 Constructor for QgsBabelFormatRegistry. More...
 
 QgsBabelFormatRegistry (const QgsBabelFormatRegistry &rh)=delete
 QgsBabelFormatRegistry cannot be copied. More...
 
 ~QgsBabelFormatRegistry ()
 
QgsBabelGpsDeviceFormatdeviceFormat (const QString &name)
 Returns a registered device format by name. More...
 
QStringList deviceNames () const
 Returns a list of the names of all registered devices. More...
 
QMap< QString, QgsBabelGpsDeviceFormat * > devices () const
 Returns a map of device name to device format. More...
 
QString importFileFilter () const
 Returns a file filter string representing all registered import formats. More...
 
QgsBabelSimpleImportFormatimportFormat (const QString &name)
 Returns a registered import format by name. More...
 
QgsBabelSimpleImportFormatimportFormatByDescription (const QString &description)
 Returns a registered import format by description. More...
 
QStringList importFormatNames () const
 Returns a list of the names of all registered import formats. More...
 
QgsBabelFormatRegistryoperator= (const QgsBabelFormatRegistry &rh)=delete
 QgsBabelFormatRegistry cannot be copied. More...
 
void reloadFromSettings ()
 Reloads the registry's members from the currently stored configuration. More...
 

Detailed Description

A registry for QgsAbstractBabelFormat GPSBabel formats.

QgsBabelFormatRegistry is not usually directly created, but rather accessed through QgsApplication::gpsBabelFormatRegistry().

Since
QGIS 3.22

Definition at line 35 of file qgsbabelformatregistry.h.

Constructor & Destructor Documentation

◆ QgsBabelFormatRegistry() [1/2]

QgsBabelFormatRegistry::QgsBabelFormatRegistry ( )

Constructor for QgsBabelFormatRegistry.

The registry will automatically be populated with standard formats, and with devices previously configured and stored in QSettings.

Definition at line 25 of file qgsbabelformatregistry.cpp.

◆ ~QgsBabelFormatRegistry()

QgsBabelFormatRegistry::~QgsBabelFormatRegistry ( )

Definition at line 176 of file qgsbabelformatregistry.cpp.

◆ QgsBabelFormatRegistry() [2/2]

QgsBabelFormatRegistry::QgsBabelFormatRegistry ( const QgsBabelFormatRegistry rh)
delete

QgsBabelFormatRegistry cannot be copied.

Member Function Documentation

◆ deviceFormat()

QgsBabelGpsDeviceFormat * QgsBabelFormatRegistry::deviceFormat ( const QString &  name)

Returns a registered device format by name.

See also
deviceNames().

Definition at line 245 of file qgsbabelformatregistry.cpp.

◆ deviceNames()

QStringList QgsBabelFormatRegistry::deviceNames ( ) const

Returns a list of the names of all registered devices.

Definition at line 240 of file qgsbabelformatregistry.cpp.

◆ devices()

QMap< QString, QgsBabelGpsDeviceFormat * > QgsBabelFormatRegistry::devices ( ) const

Returns a map of device name to device format.

See also
deviceFormat()
deviceNames()

Definition at line 250 of file qgsbabelformatregistry.cpp.

◆ importFileFilter()

QString QgsBabelFormatRegistry::importFileFilter ( ) const

Returns a file filter string representing all registered import formats.

Definition at line 207 of file qgsbabelformatregistry.cpp.

◆ importFormat()

QgsBabelSimpleImportFormat * QgsBabelFormatRegistry::importFormat ( const QString &  name)

Returns a registered import format by name.

See also
importFormatNames()
importFormatByDescription()

Definition at line 187 of file qgsbabelformatregistry.cpp.

◆ importFormatByDescription()

QgsBabelSimpleImportFormat * QgsBabelFormatRegistry::importFormatByDescription ( const QString &  description)

Returns a registered import format by description.

See also
importFormat()

Definition at line 192 of file qgsbabelformatregistry.cpp.

◆ importFormatNames()

QStringList QgsBabelFormatRegistry::importFormatNames ( ) const

Returns a list of the names of all registered import formats.

Definition at line 182 of file qgsbabelformatregistry.cpp.

◆ operator=()

QgsBabelFormatRegistry & QgsBabelFormatRegistry::operator= ( const QgsBabelFormatRegistry rh)
delete

QgsBabelFormatRegistry cannot be copied.

◆ reloadFromSettings()

void QgsBabelFormatRegistry::reloadFromSettings ( )

Reloads the registry's members from the currently stored configuration.

Definition at line 255 of file qgsbabelformatregistry.cpp.


The documentation for this class was generated from the following files: