/************************************************************************ * This file has been generated automatically from * * * * src/core/qgsvectorlayerjoininfo.h * * * * Do not edit manually ! Edit header and run scripts/sipify.pl again * ************************************************************************/ class QgsVectorLayerJoinInfo { %Docstring Defines left outer join from our vector layer to some other vector layer. The join is done based on [our layer].targetField = [join layer].joinField .. versionadded:: 3.0 %End %TypeHeaderCode #include "qgsvectorlayerjoininfo.h" %End public: QgsVectorLayerJoinInfo(); void setJoinLayer( QgsVectorLayer *layer ); %Docstring Sets weak reference to the joined layer %End QgsVectorLayer *joinLayer() const; %Docstring Returns joined layer (may be null if the reference was set by layer ID and not resolved yet) :rtype: QgsVectorLayer %End void setJoinLayerId( const QString &layerId ); %Docstring Sets ID of the joined layer. It will need to be overwritten by setJoinLayer() to a reference to real layer %End QString joinLayerId() const; %Docstring ID of the joined layer - may be used to resolve reference to the joined layer :rtype: str %End void setTargetFieldName( const QString &fieldName ); %Docstring Sets name of the field of our layer that will be used for join %End QString targetFieldName() const; %Docstring Returns name of the field of our layer that will be used for join :rtype: str %End void setJoinFieldName( const QString &fieldName ); %Docstring Sets name of the field of joined layer that will be used for join %End QString joinFieldName() const; %Docstring Returns name of the field of joined layer that will be used for join :rtype: str %End void setPrefix( const QString &prefix ); %Docstring Sets prefix of fields from the joined layer. If null, joined layer's name will be used. %End QString prefix() const; %Docstring Returns prefix of fields from the joined layer. If null, joined layer's name will be used. :rtype: str %End void setUsingMemoryCache( bool enabled ); %Docstring Sets whether values from the joined layer should be cached in memory to speed up lookups %End bool isUsingMemoryCache() const; %Docstring Returns whether values from the joined layer should be cached in memory to speed up lookups :rtype: bool %End bool operator==( const QgsVectorLayerJoinInfo &other ) const; void setJoinFieldNamesSubset( QStringList *fieldNamesSubset /Transfer/ ); %Docstring Set subset of fields to be used from joined layer. Takes ownership of the passed pointer. Null pointer tells to use all fields. .. versionadded:: 2.6 %End QStringList *joinFieldNamesSubset() const; %Docstring Get subset of fields to be used from joined layer. All fields will be used if null is returned. .. versionadded:: 2.6 :rtype: list of str %End protected: }; /************************************************************************ * This file has been generated automatically from * * * * src/core/qgsvectorlayerjoininfo.h * * * * Do not edit manually ! Edit header and run scripts/sipify.pl again * ************************************************************************/