QGIS/python/core/auto_generated/qgsofflineediting.sip.in

106 lines
3.0 KiB
Plaintext
Raw Normal View History

2017-04-07 08:50:57 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsofflineediting.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsOfflineEditing : QObject
{
2017-04-07 08:50:57 +02:00
%TypeHeaderCode
2017-04-07 08:50:57 +02:00
#include "qgsofflineediting.h"
%End
public:
2014-05-27 23:22:50 +02:00
enum ProgressMode
{
2014-06-02 21:00:51 +02:00
CopyFeatures,
ProcessFeatures,
AddFields,
AddFeatures,
RemoveFeatures,
UpdateFeatures,
UpdateGeometries
};
QgsOfflineEditing();
2017-04-07 08:50:57 +02:00
bool convertToOfflineProject( const QString &offlineDataPath, const QString &offlineDbFile, const QStringList &layerIds, bool onlySelected = false );
%Docstring
2017-12-15 10:36:55 -04:00
Convert current project for offline editing
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param offlineDataPath: Path to offline db file
:param offlineDbFile: Offline db file name
:param layerIds: List of layer names to convert
:param onlySelected: Only copy selected features from layers where a selection is present
2017-04-07 08:50:57 +02:00
%End
bool isOfflineProject() const;
2017-04-07 08:50:57 +02:00
%Docstring
Returns true if current project is offline
2017-04-07 08:50:57 +02:00
%End
void synchronize();
2017-04-07 08:50:57 +02:00
%Docstring
Synchronize to remote layers
%End
signals:
2017-04-07 08:50:57 +02:00
void progressStarted();
2017-04-07 08:50:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
The signal is emitted when the process has started.
2017-04-07 08:50:57 +02:00
%End
void layerProgressUpdated( int layer, int numLayers );
2017-04-07 08:50:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Is emitted whenever a new layer is being processed.
It is possible to estimate the progress of the complete operation by
comparing the index of the current ``layer`` to the total amount
``numLayers``.
2017-04-07 08:50:57 +02:00
%End
void progressModeSet( QgsOfflineEditing::ProgressMode mode, int maximum );
2017-04-07 08:50:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Is emitted when the mode for the progress of the current operation is
set.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param mode: progress mode
:param maximum: total number of entities to process in the current operation
2017-04-07 08:50:57 +02:00
%End
void progressUpdated( int progress );
2017-04-07 08:50:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Emitted with the progress of the current mode
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param progress: current index of processed entities
2017-04-07 08:50:57 +02:00
%End
void progressStopped();
2017-04-07 08:50:57 +02:00
%Docstring
Emitted when the processing of all layers has finished
%End
void warning( const QString &title, const QString &message );
%Docstring
2017-12-15 10:36:55 -04:00
Emitted when a warning needs to be displayed.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param title: title string for message
:param message: A descriptive message for the warning
2017-04-07 08:50:57 +02:00
%End
2015-02-02 16:02:16 +11:00
};
2017-04-07 08:50:57 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsofflineediting.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/