Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add API for having many metadataUrl on a layer
- Loading branch information
Showing
20 changed files
with
585 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96 changes: 96 additions & 0 deletions
96
python/core/auto_generated/qgsmaplayerserverproperties.sip.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgsmaplayerserverproperties.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
|
||
class QgsMapLayerServerProperties | ||
{ | ||
%Docstring(signature="appended") | ||
Manages QGIS Server properties for a map layer | ||
|
||
.. versionadded:: 3.22 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsmaplayerserverproperties.h" | ||
%End | ||
public: | ||
static const QMetaObject staticMetaObject; | ||
|
||
public: | ||
|
||
struct MetadataUrl | ||
{ | ||
|
||
MetadataUrl( const QString &url = QString(), const QString &type = QString(), const QString &format = QString() ); | ||
%Docstring | ||
Constructor for MetadataUrl. | ||
%End | ||
|
||
QString url; | ||
|
||
QString type; | ||
|
||
QString format; | ||
|
||
|
||
bool operator==( const QgsMapLayerServerProperties::MetadataUrl &other ) const; | ||
}; | ||
|
||
QgsMapLayerServerProperties( QgsMapLayer *layer = 0 ); | ||
%Docstring | ||
Constructor - Creates a Map Layer QGIS Server Properties | ||
|
||
:param layer: The map layer | ||
%End | ||
|
||
QList <QgsMapLayerServerProperties::MetadataUrl> metadataUrls() const; | ||
%Docstring | ||
Returns a list of metadataUrl resources associated for the layer. | ||
|
||
:return: the list of metadata URLs | ||
|
||
.. seealso:: :py:func:`setMetadataUrls` | ||
%End | ||
|
||
void setMetadataUrls( const QList<QgsMapLayerServerProperties::MetadataUrl> &metaUrls ); | ||
%Docstring | ||
Sets a the list of metadata URL for the layer | ||
|
||
.. seealso:: :py:func:`metadataUrls` | ||
|
||
.. seealso:: :py:func:`addMetadataUrl` | ||
%End | ||
void addMetadataUrl( const MetadataUrl &metaUrl ); | ||
%Docstring | ||
Add a metadataUrl for the layer | ||
|
||
.. seealso:: :py:func:`setMetadataUrls` | ||
%End | ||
void writeXml( QDomNode &layer_node, QDomDocument &document ) const; | ||
%Docstring | ||
Saves server properties to xml under the layer node | ||
%End | ||
|
||
void readXml( const QDomNode &layer_node ); | ||
%Docstring | ||
Reads server properties from project file. | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgsmaplayerserverproperties.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.