#include <qgsofflineediting.h>
|
| | QgsOfflineEditing () |
| |
| | ~QgsOfflineEditing () |
| |
| bool | convertToOfflineProject (const QString &offlineDataPath, const QString &offlineDbFile, const QStringList &layerIds) |
| | Convert current project for offline editing. More...
|
| |
| bool | isOfflineProject () |
| | Return true if current project is offline. More...
|
| |
| void | synchronize () |
| | Synchronize to remote layers. More...
|
| |
| | QObject (QObject *parent) |
| |
| | QObject (QObject *parent, const char *name) |
| |
| virtual | ~QObject () |
| |
| bool | blockSignals (bool block) |
| |
| QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
| |
| const QObjectList & | children () const |
| |
| const char * | className () const |
| |
| bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
| |
| void | deleteLater () |
| |
| void | destroyed (QObject *obj) |
| |
| bool | disconnect (const QObject *receiver, const char *method) |
| |
| bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
| |
| void | dumpObjectInfo () |
| |
| void | dumpObjectTree () |
| |
| QList< QByteArray > | dynamicPropertyNames () const |
| |
| virtual bool | event (QEvent *e) |
| |
| virtual bool | eventFilter (QObject *watched, QEvent *event) |
| |
| T | findChild (const QString &name) const |
| |
| QList< T > | findChildren (const QRegExp ®Exp) const |
| |
| QList< T > | findChildren (const QString &name) const |
| |
| bool | inherits (const char *className) const |
| |
| void | insertChild (QObject *object) |
| |
| void | installEventFilter (QObject *filterObj) |
| |
| bool | isA (const char *className) const |
| |
| bool | isWidgetType () const |
| |
| void | killTimer (int id) |
| |
| virtual const QMetaObject * | metaObject () const |
| |
| void | moveToThread (QThread *targetThread) |
| |
| const char * | name () const |
| |
| const char * | name (const char *defaultName) const |
| |
| QString | objectName () const |
| |
| QObject * | parent () const |
| |
| QVariant | property (const char *name) const |
| |
| void | removeChild (QObject *object) |
| |
| void | removeEventFilter (QObject *obj) |
| |
| void | setName (const char *name) |
| |
| void | setObjectName (const QString &name) |
| |
| void | setParent (QObject *parent) |
| |
| bool | setProperty (const char *name, const QVariant &value) |
| |
| bool | signalsBlocked () const |
| |
| int | startTimer (int interval) |
| |
| QThread * | thread () const |
| |
|
| bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
| |
| bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
| |
| bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
| |
| bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
| |
| QString | tr (const char *sourceText, const char *disambiguation, int n) |
| |
| QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
| |
| bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
| |
| virtual void | childEvent (QChildEvent *event) |
| |
| virtual void | connectNotify (const char *signal) |
| |
| virtual void | customEvent (QEvent *event) |
| |
| virtual void | disconnectNotify (const char *signal) |
| |
| int | receivers (const char *signal) const |
| |
| QObject * | sender () const |
| |
| int | senderSignalIndex () const |
| |
| virtual void | timerEvent (QTimerEvent *event) |
| |
| QByteArray | normalizeSignalSlot (const char *signalSlot) |
| |
| | objectName |
| |
Definition at line 32 of file qgsofflineediting.h.
◆ ProgressMode
| Enumerator |
|---|
| CopyFeatures | |
| ProcessFeatures | |
| AddFields | |
| AddFeatures | |
| RemoveFeatures | |
| UpdateFeatures | |
| UpdateGeometries | |
Definition at line 37 of file qgsofflineediting.h.
◆ QgsOfflineEditing()
| QgsOfflineEditing::QgsOfflineEditing |
( |
| ) |
|
◆ ~QgsOfflineEditing()
| QgsOfflineEditing::~QgsOfflineEditing |
( |
| ) |
|
◆ convertToOfflineProject()
| bool QgsOfflineEditing::convertToOfflineProject |
( |
const QString & |
offlineDataPath, |
|
|
const QString & |
offlineDbFile, |
|
|
const QStringList & |
layerIds |
|
) |
| |
Convert current project for offline editing.
convert current project to offline project returns offline project file path
- Parameters
-
| offlineDataPath | path to offline db file |
| offlineDbFile | offline db file name |
| layerIds | list of layer names to convert |
Workflow:
- copy layers to spatialite
- create spatialite db at offlineDataPath
- create table for each layer
- add new spatialite layer
- copy features
- save as offline project
- mark offline layers
- remove remote layers
- mark as offline project
Definition at line 80 of file qgsofflineediting.cpp.
◆ isOfflineProject()
| bool QgsOfflineEditing::isOfflineProject |
( |
| ) |
|
◆ layerProgressUpdated
| void QgsOfflineEditing::layerProgressUpdated |
( |
int |
layer, |
|
|
int |
numLayers |
|
) |
| |
|
signal |
Emit a signal that the next layer of numLayers has started processing.
- Parameters
-
| layer | current layer index |
| numLayers | total number of layers |
◆ progressModeSet
Emit a signal that sets the mode for the progress of the current operation.
- Parameters
-
| mode | progress mode |
| maximum | total number of entities to process in the current operation |
◆ progressStarted
| void QgsOfflineEditing::progressStarted |
( |
| ) |
|
|
signal |
Emit a signal that processing has started.
◆ progressStopped
| void QgsOfflineEditing::progressStopped |
( |
| ) |
|
|
signal |
Emit a signal that processing of all layers has finished.
◆ progressUpdated
| void QgsOfflineEditing::progressUpdated |
( |
int |
progress | ) |
|
|
signal |
Emit a signal with the progress of the current mode.
- Parameters
-
| progress | current index of processed entities |
◆ synchronize()
| void QgsOfflineEditing::synchronize |
( |
| ) |
|
◆ warning
| void QgsOfflineEditing::warning |
( |
const QString & |
title, |
|
|
const QString & |
message |
|
) |
| |
|
signal |
Emitted when a warning needs to be displayed.
- Parameters
-
| title | title string for message |
| message | A descriptive message for the warning |
The documentation for this class was generated from the following files: