| 
    QGIS API Documentation
    3.14.0-Pi (9f7028fd23)
    
   | 
 
 
 
 
Go to the documentation of this file.
   20 #include "qgsconfig.h" 
   26 #include <fcgi_stdio.h> 
   29 #include <QFontDatabase> 
   38     return FCGX_Accept( &FCGI_stdin->fcgx_stream, &FCGI_stdout->fcgx_stream, &FCGI_stderr->fcgx_stream, &environ );
 
   44 int main( 
int argc, 
char *argv[] )
 
   55   const char *display = getenv( 
"DISPLAY" );
 
   56   bool withDisplay = 
true;
 
   60     qputenv( 
"QT_QPA_PLATFORM", 
"offscreen" );
 
   64   QgsApplication app( argc, argv, withDisplay, QString(), QStringLiteral( 
"server" ) );
 
   66 #ifdef HAVE_SERVER_PYTHON_PLUGINS 
  
int main(int argc, char *argv[])
 
void handleRequest(QgsServerRequest &request, QgsServerResponse &response, const QgsProject *project=nullptr)
Handles the request.
 
void sendError(int code, const QString &message) override
Send error This method delegates error handling at the server level.
 
Class defining fcgi request.
 
Class defining fcgi response.
 
QgsServerRequest::Method method() const
 
static void exitQgis()
deletes provider registry and map layer registry
 
bool hasError() const
Returns true if an error occurred during initialization.
 
static void logMessage(const QString &message, const QString &tag=QString(), Qgis::MessageLevel level=Qgis::Warning, bool notifyUser=true)
Adds a message to the log instance (and creates it if necessary).