19#ifndef QGSMAPLAYERDEPENDENCY_H
20#define QGSMAPLAYERDEPENDENCY_H
68 QString
layerId()
const {
return mLayerId; }
77 long __hash__()
const;
79 sipRes =
qHash( *sipCpp );
Models dependencies with or between map layers.
QgsMapLayerDependency(const QString &layerId, Type type=DataDependency, Origin origin=FromUser)
Standard constructor.
@ DataDependency
The layer may be invalidated by data changes on another layer.
@ PresenceDependency
The layer must be already present (in the registry) for this dependency to be resolved.
Origin
Origin of the dependency.
@ FromProvider
Dependency given by the provider, the user cannot change it.
@ FromUser
Dependency given by the user.
bool operator==(const QgsMapLayerDependency &other) const
QString layerId() const
Returns the ID of the layer this dependency depends on.
Origin origin() const
Returns the dependency origin.
Type type() const
Returns the dependency type.
uint qHash(const QVariant &variant)
Hash for QVariant.
uint qHash(const QgsMapLayerDependency &dep)
global qHash function for QgsMapLayerDependency, so that it can be used in a QSet