Skip to content

Commit 135bb87

Browse files
committed
Add more doc to constructors
1 parent 275fa84 commit 135bb87

18 files changed

+166
-117
lines changed

src/server/qgsaccesscontrol.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class QgsAccessControlPlugin;
3333
/**
3434
* \ingroup server
3535
* \class QgsAccessControl
36-
* \brief A helper class that centralize the restrictions given by all the access control filter plugins.
36+
* \brief A helper class that centralizes restrictions given by all the access control filter plugins.
3737
* \since QGIS 2.14
3838
*/
3939
class SERVER_EXPORT QgsAccessControl : public QgsFeatureFilterProvider

src/server/qgsconfigcache.h

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class SERVER_EXPORT QgsConfigCache : public QObject
4747

4848
/**
4949
* Removes an entry from cache.
50+
* \param path The path of the project
5051
*/
5152
void removeEntry( const QString &path );
5253

src/server/qgsfcgiserverresponse.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ class SERVER_EXPORT QgsFcgiServerResponse: public QgsServerResponse
3838
public:
3939

4040
/**
41-
* Constructor.
41+
* Constructor for QgsFcgiServerResponse.
42+
* \param method The HTTP method (Get by default)
4243
*/
4344
QgsFcgiServerResponse( QgsServerRequest::Method method = QgsServerRequest::GetMethod );
4445

src/server/qgsfilterresponsedecorator.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ class QgsFilterResponseDecorator: public QgsServerResponse
3636
public:
3737

3838
/**
39-
* Constructor.
39+
* Constructor for QgsFilterResponseDecorator.
40+
* \param filters Map of filters to apply before terminating the response
41+
* \param response Server response
4042
*/
4143
QgsFilterResponseDecorator( QgsServerFiltersMap filters, QgsServerResponse &response );
4244

src/server/qgsfilterrestorer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class SERVER_EXPORT QgsOWSServerFilterRestorer
3838
public:
3939

4040
/**
41-
* Constructor.
41+
* Default constructor for QgsOWSServerFilterRestorer.
4242
*/
4343
QgsOWSServerFilterRestorer() = default;
4444

src/server/qgsmapserviceexception.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ class SERVER_EXPORT QgsMapServiceException : public QgsOgcServiceException
4242
public:
4343

4444
/**
45-
* Constructor.
45+
* Constructor for QgsMapServiceException.
46+
* \param code HTTP error code
47+
* \param message Exception message to return to the client
4648
*/
4749
QgsMapServiceException( const QString &code, const QString &message )
4850
: QgsOgcServiceException( code, message )

src/server/qgsserverplugins.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ class SERVER_EXPORT QgsServerPlugins
3737
public:
3838

3939
/**
40-
* Constructor.
40+
* Default constructor for QgsServerPlugins.
4141
*/
4242
explicit QgsServerPlugins() = default;
4343

4444
/**
45-
* Initialize the Python plugins
45+
* Initializes the Python plugins
4646
* \param interface QgsServerInterface
4747
* \returns bool true on success
4848
*/

src/server/qgsserversettings.h

+16-16
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929

3030
/**
3131
* \ingroup server
32-
* QgsServerSettingsEnv provides some enum describing the environment
33-
* currently supported for configuration.
32+
* \class QgsServerSettingsEnv
33+
* \brief Provides some enum describing the environment currently supported for configuration.
3434
* \since QGIS 3.0
3535
*/
3636
#ifndef SIP_RUN
@@ -42,33 +42,33 @@ class SERVER_EXPORT QgsServerSettingsEnv : public QObject
4242
//! Source of the parameter used in the configuration
4343
enum Source
4444
{
45-
DEFAULT_VALUE, //!< Default value
46-
ENVIRONMENT_VARIABLE, //!< Environment variable
47-
INI_FILE //<! Configuration file
45+
DEFAULT_VALUE,
46+
ENVIRONMENT_VARIABLE,
47+
INI_FILE
4848
};
4949
Q_ENUM( Source )
5050

5151
//! Environment variables to configure the server
5252
enum EnvVar
5353
{
54-
QGIS_OPTIONS_PATH, //!< Override the default path for user configuration
55-
QGIS_SERVER_PARALLEL_RENDERING, //!< Activate/deactivate parallel rendering
56-
QGIS_SERVER_MAX_THREADS, //!< Number of threads to use when parallel rendering is activated
57-
QGIS_SERVER_LOG_LEVEL, //!< Log level
58-
QGIS_SERVER_LOG_FILE, //!< Log file
59-
QGIS_PROJECT_FILE, //!< QGIS project file
60-
MAX_CACHE_LAYERS, //!< Maximum number of cached layers
61-
QGIS_SERVER_CACHE_DIRECTORY, //!< Cache directory
62-
QGIS_SERVER_CACHE_SIZE //!< Cache size
54+
QGIS_OPTIONS_PATH,
55+
QGIS_SERVER_PARALLEL_RENDERING,
56+
QGIS_SERVER_MAX_THREADS,
57+
QGIS_SERVER_LOG_LEVEL,
58+
QGIS_SERVER_LOG_FILE,
59+
QGIS_PROJECT_FILE,
60+
MAX_CACHE_LAYERS,
61+
QGIS_SERVER_CACHE_DIRECTORY,
62+
QGIS_SERVER_CACHE_SIZE
6363
};
6464
Q_ENUM( EnvVar )
6565
};
6666
#endif
6767

6868
/**
6969
* \ingroup server
70-
* QgsServerSettings provides a way to retrieve settings by prioritizing
71-
* according to environment variables, ini file and default values.
70+
* \class QgsServerSettings
71+
* \brief Provides a way to retrieve settings by prioritizing according to environment variables, ini file and default values.
7272
* \since QGIS 3.0
7373
*/
7474
class SERVER_EXPORT QgsServerSettings

src/server/qgsservicenativeloader.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ class QgsServiceNativeModuleEntry
4242
public:
4343

4444
/**
45-
* Constructor.
45+
* Constructor for QgsServiceNativeModuleEntry.
46+
* \param location Relative path of the module
4647
*/
4748
QgsServiceNativeModuleEntry( const QString &location )
4849
: mLocation( location )

src/server/services/wcs/qgswcsserviceexception.h

+14-4
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,21 @@ namespace QgsWcs
3636
public:
3737

3838
/**
39-
* Constructor
39+
* Constructor for QgsServiceException (empty locator attribute).
40+
* \param code Error code name
41+
* \param Exception message to return to the client
42+
* \param responseCode HTTP error code
4043
*/
4144
QgsServiceException( const QString &code, const QString &message,
4245
int responseCode = 200 )
4346
: QgsOgcServiceException( code, message, QString(), responseCode, QStringLiteral( "1.2.0" ) )
4447
{}
4548

4649
/**
47-
* Constructor
50+
* Constructor for QgsServiceException.
51+
* \param code Error code name
52+
* \param message Exception message to return to the client
53+
* \param locator Locator attribute according to OGC specifications
4854
*/
4955
QgsServiceException( const QString &code, const QString &message, const QString &locator,
5056
int responseCode = 200 )
@@ -64,7 +70,9 @@ namespace QgsWcs
6470
public:
6571

6672
/**
67-
* Constructor
73+
* Constructor for QgsSecurityAccessException (Security code name).
74+
* \param message Exception message to return to the client
75+
* \param locator Locator attribute according to OGC specifications
6876
*/
6977
QgsSecurityAccessException( const QString &message, const QString &locator = QString() )
7078
: QgsServiceException( QStringLiteral( "Security" ), message, locator, 403 )
@@ -82,7 +90,9 @@ namespace QgsWcs
8290
public:
8391

8492
/**
85-
* Constructor
93+
* Constructor for QgsRequestNotWellFormedException (RequestNotWellFormed code name).
94+
* \param message Exception message to return to the client
95+
* \param locator Locator attribute according to OGC specifications
8696
*/
8797
QgsRequestNotWellFormedException( const QString &message, const QString &locator = QString() )
8898
: QgsServiceException( QStringLiteral( "RequestNotWellFormed" ), message, locator, 400 )

src/server/services/wfs/qgswfs.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace QgsWfs
4747

4848
/**
4949
* Constructor for WFS service.
50-
* \param serverIface Interface for plugin.
50+
* \param serverIface Interface for plugins.
5151
*/
5252
Service( QgsServerInterface *serverIface )
5353
: mServerIface( serverIface )
@@ -131,7 +131,7 @@ namespace QgsWfs
131131
/**
132132
* \ingroup server
133133
* \class QgsWfsModule
134-
* \brief Service module specialized for WFS
134+
* \brief Module specialized for WFS service
135135
* \since QGIS 3.0
136136
*/
137137
class QgsWfsModule: public QgsServiceModule

src/server/services/wfs/qgswfsparameters.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ namespace QgsWfs
6060
};
6161
Q_ENUM( ParameterName )
6262

63-
//! Output format
63+
//! Output format for the response
6464
enum Format
6565
{
6666
NONE,

src/server/services/wfs/qgswfsserviceexception.h

+21-5
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,22 @@ namespace QgsWfs
3636
public:
3737

3838
/**
39-
* Constructor.
39+
* Constructor for QgsServiceException.
40+
* \param code Error code name
41+
* \param message Exception message to return to the client
42+
* \param responseCode HTTP error code
4043
*/
4144
QgsServiceException( const QString &code, const QString &message,
4245
int responseCode = 200 )
4346
: QgsOgcServiceException( code, message, QString(), responseCode, QStringLiteral( "1.2.0" ) )
4447
{}
4548

4649
/**
47-
* Constructor.
50+
* Constructor for QgsServiceException.
51+
* \param code Error code name
52+
* \param message Exception message to return to the client
53+
* \param locator Locator attribute according to OGC specifications
54+
* \param responseCode HTTP error code
4855
*/
4956
QgsServiceException( const QString &code, const QString &message, const QString &locator,
5057
int responseCode = 200 )
@@ -64,7 +71,10 @@ namespace QgsWfs
6471
public:
6572

6673
/**
67-
* Constructor.
74+
* Constructor for QgsSecurityAccessException (HTTP error code 403 with
75+
* Security code name).
76+
* \param message Exception message to return to the client
77+
* \param locator Locator attribute according to OGC specifications
6878
*/
6979
QgsSecurityAccessException( const QString &message, const QString &locator = QString() )
7080
: QgsServiceException( QStringLiteral( "Security" ), message, locator, 403 )
@@ -82,7 +92,10 @@ namespace QgsWfs
8292
public:
8393

8494
/**
85-
* Constructor.
95+
* Constructor for QgsRequestNotWellFormedException (HTTP error code 400
96+
* with RequestNotWellFormed code name).
97+
* \param message Exception message to return to the client
98+
* \param locator Locator attribute according to OGC specifications
8699
*/
87100
QgsRequestNotWellFormedException( const QString &message, const QString &locator = QString() )
88101
: QgsServiceException( QStringLiteral( "RequestNotWellFormed" ), message, locator, 400 )
@@ -100,7 +113,10 @@ namespace QgsWfs
100113
public:
101114

102115
/**
103-
* Constructor.
116+
* Constructor for QgsBadRequestException (HTTP error code 400).
117+
* \param code Error code name
118+
* \param message Exception message to return to the client
119+
* \param locator Locator attribute according to OGC specifications
104120
*/
105121
QgsBadRequestException( const QString &code, const QString &message, const QString &locator = QString() )
106122
: QgsServiceException( code, message, locator, 400 )

src/server/services/wms/qgslayerrestorer.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,15 @@ class QgsLayerRestorer
4343
public:
4444

4545
/**
46-
* Constructor.
46+
* Constructor for QgsLayerRestorer.
47+
* \param layers List of layers to restore in their initial states
4748
*/
4849
QgsLayerRestorer( const QList<QgsMapLayer *> &layers );
4950

5051
/**
5152
* Destructor.
53+
*
54+
* Restores layers in their initial states.
5255
*/
5356
~QgsLayerRestorer();
5457

src/server/services/wms/qgsmaprendererjobproxy.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace QgsWms
2828
/**
2929
* \ingroup server
3030
* \class QgsWms::QgsMapRendererJobProxy
31-
* \brief Proxy for sequential or parallel map render job by reading qsettings.
31+
* \brief Proxy for sequential or parallel map render job
3232
* \since QGIS 3.0
3333
*/
3434
class QgsMapRendererJobProxy
@@ -37,7 +37,7 @@ namespace QgsWms
3737

3838
/**
3939
* Constructor for QgsMapRendererJobProxy. Does not take ownership of
40-
* QgsFeatureFilterProvider.
40+
* \a featureFilterProvider.
4141
* \param parallelRendering True to activate parallel rendering, false otherwise
4242
* \param maxThreads The number of threads to use in case of parallel rendering
4343
* \param featureFilterProvider Features filtering
@@ -49,7 +49,7 @@ namespace QgsWms
4949
);
5050

5151
/**
52-
* Sequential or parallel map rendering according to QSettings.
52+
* Sequential or parallel map rendering.
5353
* \param mapSettings Passed to MapRendererJob
5454
* \param image The resulting image
5555
*/

src/server/services/wms/qgswms.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ namespace QgsWms
164164
/**
165165
* \ingroup server
166166
* \class QgsWmsModule
167-
* \brief Service module specialized for WMS
167+
* \brief Module specialized for WMS service
168168
* \since QGIS 3.0
169169
*/
170170
class QgsWmsModule: public QgsServiceModule

0 commit comments

Comments
 (0)