|
22 | 22 | #include "qgsproject.h"
|
23 | 23 |
|
24 | 24 | /** \ingroup server
|
25 |
| - * The QgsServerProjectUtils class provides a way to retrieve specific entries |
26 |
| - * from a QgsProject. |
| 25 | + * The QgsServerProjectUtils namespace provides a way to retrieve specific |
| 26 | + * entries from a QgsProject. |
27 | 27 | * @note added in QGIS 3.0
|
28 | 28 | */
|
29 |
| -class SERVER_EXPORT QgsServerProjectUtils |
| 29 | +namespace SERVER_EXPORT QgsServerProjectUtils |
30 | 30 | {
|
31 |
| - public: |
32 | 31 |
|
33 |
| - /** Returns the maximum width for WMS images defined in a QGIS project. |
34 |
| - * @param project the QGIS project |
35 |
| - * @return width if defined in project, -1 otherwise. |
36 |
| - */ |
37 |
| - static int wmsMaxWidth( const QgsProject& project ); |
38 |
| - |
39 |
| - /** Returns the maximum height for WMS images defined in a QGIS project. |
40 |
| - * @param project the QGIS project |
41 |
| - * @return height if defined in project, -1 otherwise. |
42 |
| - */ |
43 |
| - static int wmsMaxHeight( const QgsProject& project ); |
44 |
| - |
45 |
| - /** Returns the WMS service url defined in a QGIS project. |
46 |
| - * @param project the QGIS project |
47 |
| - * @return url if defined in project, an empty string otherwise. |
48 |
| - */ |
49 |
| - static QString wmsServiceUrl( const QgsProject& project ); |
50 |
| - |
51 |
| - /** Returns the WFS service url defined in a QGIS project. |
52 |
| - * @param project the QGIS project |
53 |
| - * @return url if defined in project, an empty string otherwise. |
54 |
| - */ |
55 |
| - static QString wfsServiceUrl( const QgsProject& project ); |
56 |
| - |
57 |
| - /** Returns the WCS service url defined in a QGIS project. |
58 |
| - * @param project the QGIS project |
59 |
| - * @return url if defined in project, an empty string otherwise. |
60 |
| - */ |
61 |
| - static QString wcsServiceUrl( const QgsProject& project ); |
| 32 | + /** Returns the maximum width for WMS images defined in a QGIS project. |
| 33 | + * @param project the QGIS project |
| 34 | + * @return width if defined in project, -1 otherwise. |
| 35 | + */ |
| 36 | + int wmsMaxWidth( const QgsProject& project ); |
| 37 | + |
| 38 | + /** Returns the maximum height for WMS images defined in a QGIS project. |
| 39 | + * @param project the QGIS project |
| 40 | + * @return height if defined in project, -1 otherwise. |
| 41 | + */ |
| 42 | + int wmsMaxHeight( const QgsProject& project ); |
| 43 | + |
| 44 | + /** Returns the WMS service url defined in a QGIS project. |
| 45 | + * @param project the QGIS project |
| 46 | + * @return url if defined in project, an empty string otherwise. |
| 47 | + */ |
| 48 | + QString wmsServiceUrl( const QgsProject& project ); |
| 49 | + |
| 50 | + /** Returns the WFS service url defined in a QGIS project. |
| 51 | + * @param project the QGIS project |
| 52 | + * @return url if defined in project, an empty string otherwise. |
| 53 | + */ |
| 54 | + QString wfsServiceUrl( const QgsProject& project ); |
| 55 | + |
| 56 | + /** Returns the WCS service url defined in a QGIS project. |
| 57 | + * @param project the QGIS project |
| 58 | + * @return url if defined in project, an empty string otherwise. |
| 59 | + */ |
| 60 | + QString wcsServiceUrl( const QgsProject& project ); |
62 | 61 | };
|
63 | 62 |
|
64 | 63 | #endif
|
0 commit comments