19#ifndef QGSMAPLAYERDEPENDENCY_H
20#define QGSMAPLAYERDEPENDENCY_H
43 PresenceDependency = 1,
68 QString
layerId()
const {
return mLayerId; }
75 return layerId() == other.
layerId() && origin() == other.
origin() && type() == other.
type();
80 long __hash__()
const;
82 sipRes =
qHash( *sipCpp );
This class models dependencies with or between map layers.
QgsMapLayerDependency(const QString &layerId, Type type=DataDependency, Origin origin=FromUser)
Standard constructor.
Origin
Origin of the dependency.
bool operator==(const QgsMapLayerDependency &other) const
Comparison operator.
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