Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and github-actions[bot] committed Dec 1, 2021
1 parent 656de60 commit c3fe4cc
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/core/auto_generated/qgsapplication.sip.in
Expand Up @@ -84,7 +84,16 @@ to change due to centralization.
static const char *QGIS_ORGANIZATION_NAME;
static const char *QGIS_ORGANIZATION_DOMAIN;
static const char *QGIS_APPLICATION_NAME;

QgsApplication( SIP_PYLIST argv, bool GUIenabled, QString profileFolder = QString(), QString platformName = "desktop" ) / PostHook = __pyQtQAppHook__ / [( int &argc, char **argv, bool GUIenabled, const QString &profileFolder = QString(), const QString &platformName = "desktop" )];
%Docstring
Constructor for QgsApplication.

:param argv: command line arguments
:param GUIenabled: set to ``True`` if a GUI application is required, or ``False`` for a console only application
:param profileFolder: optional string representing the profile to load at startup
:param platformName: the QGIS platform name, e.g., "desktop", "server", "qgis_process" or "external" (for external CLI scripts)
%End
%MethodCode
// The Python interface is a list of argument strings that is modified.

Expand Down
19 changes: 19 additions & 0 deletions src/core/qgsapplication.h
Expand Up @@ -160,8 +160,27 @@ class CORE_EXPORT QgsApplication : public QApplication
static const char *QGIS_ORGANIZATION_DOMAIN;
static const char *QGIS_APPLICATION_NAME;
#ifndef SIP_RUN

/**
* Constructor for QgsApplication.
*
* \param argc command line argument count
* \param argv command line arguments
* \param GUIenabled set to TRUE if a GUI application is required, or FALSE for a console only application
* \param profileFolder optional string representing the profile to load at startup
* \param platformName the QGIS platform name, e.g., "desktop", "server", "qgis_process" or "external" (for external CLI scripts)
*/
QgsApplication( int &argc, char **argv, bool GUIenabled, const QString &profileFolder = QString(), const QString &platformName = "external" );
#else

/**
* Constructor for QgsApplication.
*
* \param argv command line arguments
* \param GUIenabled set to TRUE if a GUI application is required, or FALSE for a console only application
* \param profileFolder optional string representing the profile to load at startup
* \param platformName the QGIS platform name, e.g., "desktop", "server", "qgis_process" or "external" (for external CLI scripts)
*/
QgsApplication( SIP_PYLIST argv, bool GUIenabled, QString profileFolder = QString(), QString platformName = "desktop" ) / PostHook = __pyQtQAppHook__ / [( int &argc, char **argv, bool GUIenabled, const QString &profileFolder = QString(), const QString &platformName = "desktop" )];
% MethodCode
// The Python interface is a list of argument strings that is modified.
Expand Down

0 comments on commit c3fe4cc

Please sign in to comment.