Class: QgsBabelFormatRegistry

class qgis.core.QgsBabelFormatRegistry

Bases: sip.wrapper

A registry for QgsAbstractBabelFormat GPSBabel formats.

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

New in version 3.22.

QgsBabelFormatRegistry() Constructor for QgsBabelFormatRegistry.

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

Methods

deviceFormat

Returns a registered device format by name.

deviceNames

Returns a list of the names of all registered devices.

devices

Returns a map of device name to device format.

importFileFilter

Returns a file filter string representing all registered import formats.

importFormat

Returns a registered import format by name.

importFormatByDescription

Returns a registered import format by description.

importFormatNames

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

reloadFromSettings

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

deviceFormat(self, name: str) QgsBabelGpsDeviceFormat

Returns a registered device format by name.

See also

deviceNames()

Parameters

name (str) –

Return type

QgsBabelGpsDeviceFormat

deviceNames(self) List[str]

Returns a list of the names of all registered devices.

Return type

List[str]

devices(self) object

Returns a map of device name to device format.

See also

deviceFormat()

See also

deviceNames()

Return type

object

importFileFilter(self) str

Returns a file filter string representing all registered import formats.

Return type

str

importFormat(self, name: str) QgsBabelSimpleImportFormat

Returns a registered import format by name.

Parameters

name (str) –

Return type

QgsBabelSimpleImportFormat

importFormatByDescription(self, description: str) QgsBabelSimpleImportFormat

Returns a registered import format by description.

See also

importFormat()

Parameters

description (str) –

Return type

QgsBabelSimpleImportFormat

importFormatNames(self) List[str]

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

Return type

List[str]

reloadFromSettings(self)

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