QGIS/python/core/qgsdataitemproviderregistry.sip
Nyall Dawson 752f6bd150 Fix classes which violate rule of three, by implementing required
copy/= operators or making them private

This revealed (and fixes) some issues, including a potential crash
using server access control (refs #13919), and a potential crash with
diagrams
2016-01-22 18:45:45 +11:00

27 lines
770 B
Plaintext

class QgsDataItemProviderRegistry
{
%TypeHeaderCode
#include <qgsdataitemproviderregistry.h>
%End
public:
//! Returns the instance pointer, creating the object on the first call
static QgsDataItemProviderRegistry * instance();
~QgsDataItemProviderRegistry();
//! Get list of available providers
QList<QgsDataItemProvider*> providers() const;
//! Add a provider implementation. Takes ownership of the object.
void addProvider( QgsDataItemProvider* provider /Transfer/ );
//! Remove provider implementation from the list (provider object is deleted)
void removeProvider( QgsDataItemProvider* provider );
private:
QgsDataItemProviderRegistry();
QgsDataItemProviderRegistry( const QgsDataItemProviderRegistry& rh );
};