QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
QgsProviderRegistry::UnusableUriDetails Class Reference

Contains information about unusable URIs which aren't handled by any registered providers. More...

#include <qgsproviderregistry.h>

Public Member Functions

 UnusableUriDetails (const QString &uri=QString(), const QString &warning=QString(), const QList< Qgis::LayerType > &layerTypes=QList< Qgis::LayerType >())
 Constructor for UnusableUriDetails for the given uri, with the specified user-friendly, translated warning.
 

Public Attributes

QString detailedWarning
 Contains a longer, user-friendly, translated message advising why the URI is not usable.
 
QList< Qgis::LayerTypelayerTypes
 Contains a list of map layer types which are usually valid options for opening the target URI.
 
QString uri
 URI which could not be handled.
 
QString warning
 Contains a short, user-friendly, translated message advising why the URI is not usable.
 

Detailed Description

Contains information about unusable URIs which aren't handled by any registered providers.

For example, if a QGIS install is built without the PDAL library then las/laz files are unusable. This class can then be used to construct friendly warnings to users advising them why the las/laz files cannot be used on their QGIS build.

Since
QGIS 3.18.1

Definition at line 462 of file qgsproviderregistry.h.

Constructor & Destructor Documentation

◆ UnusableUriDetails()

QgsProviderRegistry::UnusableUriDetails::UnusableUriDetails ( const QString &  uri = QString(),
const QString &  warning = QString(),
const QList< Qgis::LayerType > &  layerTypes = QList< Qgis::LayerType >() 
)
inline

Constructor for UnusableUriDetails for the given uri, with the specified user-friendly, translated warning.

The optional layerTypes argument can be used to specify layer types which are usually valid options for opening the URI.

Definition at line 472 of file qgsproviderregistry.h.

Member Data Documentation

◆ detailedWarning

QString QgsProviderRegistry::UnusableUriDetails::detailedWarning

Contains a longer, user-friendly, translated message advising why the URI is not usable.

Definition at line 491 of file qgsproviderregistry.h.

◆ layerTypes

QList<Qgis::LayerType> QgsProviderRegistry::UnusableUriDetails::layerTypes

Contains a list of map layer types which are usually valid options for opening the target URI.

Definition at line 497 of file qgsproviderregistry.h.

◆ uri

QString QgsProviderRegistry::UnusableUriDetails::uri

URI which could not be handled.

Definition at line 481 of file qgsproviderregistry.h.

◆ warning

QString QgsProviderRegistry::UnusableUriDetails::warning

Contains a short, user-friendly, translated message advising why the URI is not usable.

Definition at line 486 of file qgsproviderregistry.h.


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