19 #ifndef QGSMAPLAYERDEPENDENCY_H
20 #define QGSMAPLAYERDEPENDENCY_H
22 #include "qgis_core.h"
43 PresenceDependency = 1,
68 QString
layerId()
const {
return mLayerId; }
73 return layerId() == other.
layerId() && origin() == other.
origin() && type() == other.
type();
78 long __hash__()
const;
80 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 QgsMapLayerDependency &dep)
global qHash function for QgsMapLayerDependency, so that it can be used in a QSet