Skip to content
Permalink
Browse files

Keep old method signature in wms config parser for compatibility

  • Loading branch information
mhugent committed Mar 31, 2016
1 parent ec17e3c commit 19120f40cfb68cf14d39cf3595afbe19a8624d84
Showing with 12 additions and 0 deletions.
  1. +3 −0 python/server/qgswmsconfigparser.sip
  2. +6 −0 src/server/qgswmsconfigparser.cpp
  3. +3 −0 src/server/qgswmsconfigparser.h
@@ -97,6 +97,9 @@ class QgsWMSConfigParser

//printing

/** Creates a print composition, usually for a GetPrint request. Replaces map and label parameters*/
QgsComposition* createPrintComposition( const QString& composerTemplate, QgsMapRenderer* mapRenderer, const QMap< QString, QString >& parameterMap ) const;

/** Creates a print composition, usually for a GetPrint request. Replaces map and label parameters*/
QgsComposition* createPrintComposition( const QString& composerTemplate, QgsMapRenderer* mapRenderer, const QMap< QString, QString >& parameterMap, QStringList& highlightLayers ) const;

@@ -45,6 +45,12 @@ QgsWMSConfigParser::~QgsWMSConfigParser()

}

QgsComposition* QgsWMSConfigParser::createPrintComposition( const QString& composerTemplate, QgsMapRenderer* mapRenderer, const QMap< QString, QString >& parameterMap ) const
{
QStringList highlightLayers;
createPrintComposition( composerTemplate, mapRenderer, parameterMap, highlightLayers );
}

QgsComposition* QgsWMSConfigParser::createPrintComposition( const QString& composerTemplate, QgsMapRenderer* mapRenderer, const QMap< QString, QString >& parameterMap, QStringList& highlightLayers ) const
{
QList<QgsComposerMap*> composerMaps;
@@ -112,6 +112,9 @@ class SERVER_EXPORT QgsWMSConfigParser

//printing

/** Creates a print composition, usually for a GetPrint request. Replaces map and label parameters*/
QgsComposition* createPrintComposition( const QString& composerTemplate, QgsMapRenderer* mapRenderer, const QMap< QString, QString >& parameterMap ) const;

/** Creates a print composition, usually for a GetPrint request. Replaces map and label parameters*/
QgsComposition* createPrintComposition( const QString& composerTemplate, QgsMapRenderer* mapRenderer, const QMap< QString, QString >& parameterMap, QStringList& highlightLayers ) const;

0 comments on commit 19120f4

Please sign in to comment.
You can’t perform that action at this time.