QgsMapLayerDependency class
This class models dependencies with or between map layers.
Contents
A dependency is defined by a layer ID, a type and an origin. The two combinations of type/origin that are currently supported are:
- PresenceDependency && FromProvider: virtual layers for instance which may depend on other layers already loaded to work
- DataDependency && FromUser: dependencies given by the user, mainly to represent database triggers
Public types
- enum Origin { FromProvider = 0, FromUser = 1 }
- Origin of the dependency.
- enum Type { PresenceDependency = 1, DataDependency = 2 }
- Type of dependency.
Constructors, destructors, conversion operators
- QgsMapLayerDependency(const QString& layerId, Type type = DataDependency, Origin origin = FromUser)
- Standard constructor.
Public functions
- auto layerId() const -> QString
- Returns the ID of the layer this dependency depends on.
- auto operator==(const QgsMapLayerDependency& other) const -> bool
- Comparison operator.
- auto origin() const -> Origin
- Returns the dependency origin.
- auto type() const -> Type
- Returns the dependency type.