19 #ifndef QGSMAPLAYERDEPENDENCY_H 20 #define QGSMAPLAYERDEPENDENCY_H 22 #include "qgis_core.h" 41 PresenceDependency = 1,
66 QString
layerId()
const {
return mLayerId; }
71 return layerId() == other.
layerId() && origin() == other.
origin() && type() == other.
type();
75 long __hash__()
const;
78 sipRes =
qHash( *sipCpp );
Origin origin() const
Return the dependency origin.
bool operator==(const QgsMapLayerDependency &other) const
Comparison operator.
Type type() const
Return the dependency type.
uint qHash(const QgsMapLayerDependency &dep)
global qHash function for QgsMapLayerDependency, so that it can be used in a QSet ...
QString layerId() const
Return the ID of the layer this dependency depends on.
QgsMapLayerDependency(const QString &layerId, Type type=DataDependency, Origin origin=FromUser)
Standard constructor.
This class models dependencies with or between map layers.
Origin
Origin of the dependency.