2929#include < qgsunittypes.h>
3030
3131// QField includes
32+ #include " appcontroller.h"
3233#include " appcoordinateoperationhandlers.h"
3334#include " bookmarkmodel.h"
3435#include " clipboardmanager.h"
3536#include " cogoregistry.h"
3637#include " drawingtemplatemodel.h"
3738#include " focusstack.h"
3839#include " pluginmanager.h"
39- #include " qfield_core_export .h"
40+ #include " qfield_app_export .h"
4041#include " qfieldappauthrequesthandler.h"
4142#include " qfieldurlhandler.h"
4243#include " qgsgpkgflusher.h"
@@ -66,14 +67,14 @@ class QgsPrintLayout;
6667#define REGISTER_SINGLETON ( uri, _class, name ) qmlRegisterSingletonType<_class>( uri, 1 , 0 , name, []( QQmlEngine *engine, QJSEngine *scriptEngine ) -> QObject * { Q_UNUSED (engine); Q_UNUSED (scriptEngine); return new _class (); } )
6768
6869/* *
69- * \defgroup core
70- * \brief QField C++ classes
70+ * \defgroup app
71+ * \brief QField application C++ classes
7172 */
7273
7374/* *
74- * \ingroup core
75+ * \ingroup app
7576 */
76- class QFIELD_CORE_EXPORT QgisMobileapp : public QQmlApplicationEngine
77+ class QFIELD_APP_EXPORT QgisMobileapp : public QQmlApplicationEngine, public AppController
7778{
7879 Q_OBJECT
7980 public:
@@ -87,20 +88,20 @@ class QFIELD_CORE_EXPORT QgisMobileapp : public QQmlApplicationEngine
8788 * \param name The project name
8889 * \note The actual loading is done in readProjectFile
8990 */
90- bool loadProjectFile ( const QString &path, const QString &name = QString() );
91+ bool loadProjectFile ( const QString &path, const QString &name = QString() ) override ;
9192
9293 /* *
9394 * Reloads the current project
9495 *
9596 * \note It does not reset the Auth Request Handler.
9697 * \note The actual loading is done in readProjectFile
9798 */
98- void reloadProjectFile ();
99+ void reloadProjectFile () override ;
99100
100101 /* *
101102 * Reads and opens the project file set in the loadProjectFile function
102103 */
103- void readProjectFile ();
104+ void readProjectFile () override ;
104105
105106 /* *
106107 * Reads a string from the specified \a scope and \a key from the currently opened project
@@ -111,7 +112,7 @@ class QFIELD_CORE_EXPORT QgisMobileapp : public QQmlApplicationEngine
111112 *
112113 * \returns entry value as string from \a scope given its \a key
113114 */
114- QString readProjectEntry ( const QString &scope, const QString &key, const QString &def = QString() ) const ;
115+ QString readProjectEntry ( const QString &scope, const QString &key, const QString &def = QString() ) const override ;
115116
116117 /* *
117118 * Reads an integer from the specified \a scope and \a key from the currently opened project
@@ -122,7 +123,7 @@ class QFIELD_CORE_EXPORT QgisMobileapp : public QQmlApplicationEngine
122123 *
123124 * \returns entry value as integer from \a scope given its \a key
124125 */
125- int readProjectNumEntry ( const QString &scope, const QString &key, int def = 0 ) const ;
126+ int readProjectNumEntry ( const QString &scope, const QString &key, int def = 0 ) const override ;
126127
127128 /* *
128129 * Reads a double from the specified \a scope and \a key from the currently opened project
@@ -133,7 +134,7 @@ class QFIELD_CORE_EXPORT QgisMobileapp : public QQmlApplicationEngine
133134 *
134135 * \returns entry value as double from \a scope given its \a key
135136 */
136- double readProjectDoubleEntry ( const QString &scope, const QString &key, double def = 0.0 ) const ;
137+ double readProjectDoubleEntry ( const QString &scope, const QString &key, double def = 0.0 ) const override ;
137138
138139 /* *
139140 * Reads a boolean from the specified \a scope and \a key from the currently opened project
@@ -144,35 +145,35 @@ class QFIELD_CORE_EXPORT QgisMobileapp : public QQmlApplicationEngine
144145 *
145146 * \returns entry value as boolean from \a scope given its \a key
146147 */
147- bool readProjectBoolEntry ( const QString &scope, const QString &key, bool def = false ) const ;
148+ bool readProjectBoolEntry ( const QString &scope, const QString &key, bool def = false ) const override ;
148149
149150 /* *
150151 * Prints a given layout from the currently opened project to a PDF file
151152 * \param layoutName the layout name that will be printed
152153 * \return TRUE if the layout was successfully printed
153154 */
154- bool print ( const QString &layoutName );
155+ bool print ( const QString &layoutName ) override ;
155156
156157 /* *
157158 * Prints a given atlas-driven layout from the currently opened project to one or more PDF files
158159 * \param layoutName the layout name that will be printed
159160 * \param featureIds the features from the atlas coverage vector layer that will be used to print the layout
160161 * \return TRUE if the layout was successfully printed
161162 */
162- bool printAtlasFeatures ( const QString &layoutName, const QList<long long > &featureIds );
163+ bool printAtlasFeatures ( const QString &layoutName, const QList<long long > &featureIds ) override ;
163164
164165 /* *
165166 * Sets the screen dimmer timeout in seconds
166167 * \note setting the timeout value to 0 will disable the screen dimmer
167168 */
168- void setScreenDimmerTimeout ( int timeoutSeconds );
169+ void setScreenDimmerTimeout ( int timeoutSeconds ) override ;
169170
170171 bool event ( QEvent *event ) override ;
171172
172173 /* *
173174 * Clear the currently opened project back to a blank project
174175 */
175- void clearProject ();
176+ void clearProject () override ;
176177
177178 static void initDeclarative ( QQmlEngine *engine );
178179
0 commit comments