QGIS API Documentation  2.99.0-Master (23ddace)
Public Member Functions | List of all members
QgsCustomDropHandler Class Referenceabstract

Abstract base class that may be implemented to handle new types of data to be dropped in QGIS. More...

#include <qgscustomdrophandler.h>

Public Member Functions

virtual ~QgsCustomDropHandler ()=default
 
virtual void handleDrop (const QgsMimeDataUtils::Uri &uri) const =0
 Method called from QGIS after a drop event with custom URI known by the handler. More...
 
virtual QString key () const =0
 Type of custom URI recognized by the handler. More...
 

Detailed Description

Abstract base class that may be implemented to handle new types of data to be dropped in QGIS.

Implementations will be used when a QgsMimeDataUtils::Uri has layerType equal to "custom", and the providerKey is equal to key() returned by the implementation.

Since
QGIS 3.0

Definition at line 28 of file qgscustomdrophandler.h.

Constructor & Destructor Documentation

◆ ~QgsCustomDropHandler()

virtual QgsCustomDropHandler::~QgsCustomDropHandler ( )
virtualdefault

Member Function Documentation

◆ handleDrop()

virtual void QgsCustomDropHandler::handleDrop ( const QgsMimeDataUtils::Uri uri) const
pure virtual

Method called from QGIS after a drop event with custom URI known by the handler.

◆ key()

virtual QString QgsCustomDropHandler::key ( ) const
pure virtual

Type of custom URI recognized by the handler.


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