QGIS API Documentation  2.99.0-Master (0a63d1f)
Public Member Functions | Public Attributes | List of all members
QgsMimeDataUtils::Uri Struct Reference

#include <qgsmimedatautils.h>

Public Member Functions

 Uri ()
 Constructs invalid URI. More...
 Uri (QString &encData)
 Constructs URI from encoded data. More...
QString data () const
 Returns encoded representation of the object. More...
bool isValid () const
 Returns whether the object contains valid data. More...

Public Attributes

QString layerType
 Type of URI. Recognized types: "vector" / "raster" / "plugin" / "custom". More...
QString name
 Human readable name to be used e.g. in layer tree. More...
QString providerKey
 For "vector" / "raster" type: provider id. More...
QStringList supportedCrs
QStringList supportedFormats
QString uri
 Identifier of the data source recognized by its providerKey. More...

Detailed Description

Definition at line 33 of file qgsmimedatautils.h.

Constructor & Destructor Documentation

◆ Uri() [1/2]

QgsMimeDataUtils::Uri::Uri ( )

Constructs invalid URI.

Definition at line 31 of file qgsmimedatautils.cpp.

◆ Uri() [2/2]

QgsMimeDataUtils::Uri::Uri ( QString &  encData)

Constructs URI from encoded data.

Definition at line 35 of file qgsmimedatautils.cpp.

Member Function Documentation

◆ data()

QString QgsMimeDataUtils::Uri::data ( ) const

Returns encoded representation of the object.

Definition at line 64 of file qgsmimedatautils.cpp.

◆ isValid()

bool QgsMimeDataUtils::Uri::isValid ( ) const

Returns whether the object contains valid data.

added in 3.0

Definition at line 42 of file qgsmimedatautils.h.

Member Data Documentation

◆ layerType

QString QgsMimeDataUtils::Uri::layerType

Type of URI. Recognized types: "vector" / "raster" / "plugin" / "custom".

Definition at line 48 of file qgsmimedatautils.h.

◆ name

QString QgsMimeDataUtils::Uri::name

Human readable name to be used e.g. in layer tree.

Definition at line 54 of file qgsmimedatautils.h.

◆ providerKey

QString QgsMimeDataUtils::Uri::providerKey

For "vector" / "raster" type: provider id.

For "plugin" type: plugin layer type name. For "custom" type: key of its QgsCustomDropHandler

Definition at line 52 of file qgsmimedatautils.h.

◆ supportedCrs

QStringList QgsMimeDataUtils::Uri::supportedCrs

Definition at line 57 of file qgsmimedatautils.h.

◆ supportedFormats

QStringList QgsMimeDataUtils::Uri::supportedFormats

Definition at line 58 of file qgsmimedatautils.h.

◆ uri

QString QgsMimeDataUtils::Uri::uri

Identifier of the data source recognized by its providerKey.

Definition at line 56 of file qgsmimedatautils.h.

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