QGIS API Documentation  3.22.4-Białowieża (ce8e65e95e)
Classes | Public Types | Static Public Member Functions | Friends | List of all members
QgsMimeDataUtils Class Reference

#include <qgsmimedatautils.h>

Classes

struct  Uri
 

Public Types

typedef QList< QgsMimeDataUtils::UriUriList
 

Static Public Member Functions

static UriList decodeUriList (const QMimeData *data)
 
static QMimeData * encodeUriList (const UriList &layers)
 Encodes a URI list to a new QMimeData object. More...
 
static bool hasOriginatedFromCurrentAppInstance (const QgsMimeDataUtils::Uri &uri)
 Returns true if uri originated from the current QGIS application instance. More...
 
static bool isUriList (const QMimeData *data)
 
static QByteArray layerTreeNodesToUriList (const QList< QgsLayerTreeNode * > &nodes)
 Returns encoded URI list from a list of layer tree nodes. More...
 

Friends

class TestQgsMimeDataUtils
 

Detailed Description

Definition at line 36 of file qgsmimedatautils.h.

Member Typedef Documentation

◆ UriList

Definition at line 162 of file qgsmimedatautils.h.

Member Function Documentation

◆ decodeUriList()

QgsMimeDataUtils::UriList QgsMimeDataUtils::decodeUriList ( const QMimeData *  data)
static

Definition at line 228 of file qgsmimedatautils.cpp.

◆ encodeUriList()

QMimeData * QgsMimeDataUtils::encodeUriList ( const UriList layers)
static

Encodes a URI list to a new QMimeData object.

Definition at line 219 of file qgsmimedatautils.cpp.

◆ hasOriginatedFromCurrentAppInstance()

bool QgsMimeDataUtils::hasOriginatedFromCurrentAppInstance ( const QgsMimeDataUtils::Uri uri)
static

Returns true if uri originated from the current QGIS application instance.

Since
QGIS 3.8

Definition at line 275 of file qgsmimedatautils.cpp.

◆ isUriList()

bool QgsMimeDataUtils::isUriList ( const QMimeData *  data)
static

Definition at line 214 of file qgsmimedatautils.cpp.

◆ layerTreeNodesToUriList()

QByteArray QgsMimeDataUtils::layerTreeNodesToUriList ( const QList< QgsLayerTreeNode * > &  nodes)
static

Returns encoded URI list from a list of layer tree nodes.

Since
QGIS 3.0

Definition at line 266 of file qgsmimedatautils.cpp.

Friends And Related Function Documentation

◆ TestQgsMimeDataUtils

friend class TestQgsMimeDataUtils
friend

Definition at line 193 of file qgsmimedatautils.h.


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