QGIS/python/core/qgsmaplayerdependency.sip
Denis Rouzaud 93971d5ed3 [sip] align pointer and reference in blacklisted files
this will facilitate sip diff checking
2017-05-01 17:49:43 +02:00

44 lines
1.0 KiB
Plaintext

class QgsMapLayerDependency
{
%TypeHeaderCode
#include "qgsmaplayerdependency.h"
%End
public:
//! Type of dependency
enum Type
{
PresenceDependency = 1, // The layer must be already present (in the registry) for this dependency to be resolved
DataDependency = 2 // The layer may be invalidated by data changes on another layer
};
//! Origin of the dependency
enum Origin
{
FromProvider = 0, // Dependency given by the provider, the user cannot change it
FromUser = 1 // Dependency given by the user
};
//! Standard constructor
QgsMapLayerDependency( const QString &layerId, Type type = DataDependency, Origin origin = FromUser );
//! Return the dependency type
Type type() const;
//! Return the dependency origin
Origin origin() const;
//! Return the ID of the layer this dependency depends on
QString layerId() const;
//! Comparison operator
bool operator==( const QgsMapLayerDependency &other ) const;
//! hash operator
long __hash__() const;
%MethodCode
sipRes = qHash( *sipCpp );
%End
};