Skip to content

Class AppController

ClassList > AppController

Application operations that AppInterface delegates to the app.

  • #include <appcontroller.h>

Inherited by the following classes: QgisMobileapp

Public Functions

Type Name
virtual void clearProject () = 0
Clears the currently opened project.
virtual bool loadProjectFile (const QString & path, const QString & name=QString()) = 0
Loads a project file (.qgs/.qgz) or standalone dataset from path , labelled__name .
virtual bool print (const QString & layoutName) = 0
Prints the project layout matching layoutName to PDF.
virtual bool printAtlasFeatures (const QString & layoutName, const QList< long long > & featureIds) = 0
Prints the atlas-driven layout layoutName for__featureIds to PDF.
virtual bool readProjectBoolEntry (const QString & scope, const QString & key, bool def=false) const = 0
Reads a bool project entry at scope /__key (__def if absent).
virtual double readProjectDoubleEntry (const QString & scope, const QString & key, double def=0.0) const = 0
Reads a double project entry at scope /__key (__def if absent).
virtual QString readProjectEntry (const QString & scope, const QString & key, const QString & def=QString()) const = 0
Reads a string project entry at scope /__key (__def if absent).
virtual void readProjectFile () = 0
Reads the content of the loaded project.
virtual int readProjectNumEntry (const QString & scope, const QString & key, int def=0) const = 0
Reads an int project entry at scope /__key (__def if absent).
virtual void reloadProjectFile () = 0
Reloads the currently opened project.
virtual void setScreenDimmerTimeout (int timeoutSeconds) = 0
Sets the screen dimmer timeout in seconds (0 disables dimming).
virtual ~AppController () = default

Public Functions Documentation

function clearProject

Clears the currently opened project.

virtual void AppController::clearProject () = 0


function loadProjectFile

Loads a project file (.qgs/.qgz) or standalone dataset from path , labelled__name .

virtual bool AppController::loadProjectFile (
    const QString & path,
    const QString & name=QString()
) = 0


function print

Prints the project layout matching layoutName to PDF.

virtual bool AppController::print (
    const QString & layoutName
) = 0


function printAtlasFeatures

Prints the atlas-driven layout layoutName for__featureIds to PDF.

virtual bool AppController::printAtlasFeatures (
    const QString & layoutName,
    const QList< long long > & featureIds
) = 0


function readProjectBoolEntry

Reads a bool project entry at scope /__key (__def if absent).

virtual bool AppController::readProjectBoolEntry (
    const QString & scope,
    const QString & key,
    bool def=false
) const = 0


function readProjectDoubleEntry

Reads a double project entry at scope /__key (__def if absent).

virtual double AppController::readProjectDoubleEntry (
    const QString & scope,
    const QString & key,
    double def=0.0
) const = 0


function readProjectEntry

Reads a string project entry at scope /__key (__def if absent).

virtual QString AppController::readProjectEntry (
    const QString & scope,
    const QString & key,
    const QString & def=QString()
) const = 0


function readProjectFile

Reads the content of the loaded project.

virtual void AppController::readProjectFile () = 0


function readProjectNumEntry

Reads an int project entry at scope /__key (__def if absent).

virtual int AppController::readProjectNumEntry (
    const QString & scope,
    const QString & key,
    int def=0
) const = 0


function reloadProjectFile

Reloads the currently opened project.

virtual void AppController::reloadProjectFile () = 0


function setScreenDimmerTimeout

Sets the screen dimmer timeout in seconds (0 disables dimming).

virtual void AppController::setScreenDimmerTimeout (
    int timeoutSeconds
) = 0


function ~AppController

virtual AppController::~AppController () = default


The documentation for this class was generated from the following file src/core/appcontroller.h