QGIS API Documentation  3.4.15-Madeira (e83d02e274)
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 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 34 of file qgsmimedatautils.h.

Member Typedef Documentation

Definition at line 100 of file qgsmimedatautils.h.

Member Function Documentation

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

Definition at line 140 of file qgsmimedatautils.cpp.

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

Encodes a URI list to a new QMimeData object.

Definition at line 131 of file qgsmimedatautils.cpp.

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

Definition at line 126 of file qgsmimedatautils.cpp.

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 198 of file qgsmimedatautils.cpp.

Friends And Related Function Documentation

friend class TestQgsMimeDataUtils
friend

Definition at line 123 of file qgsmimedatautils.h.


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