19 #ifndef QGS_OFFLINE_EDITING_H 20 #define QGS_OFFLINE_EDITING_H 59 bool convertToOfflineProject(
const QString& offlineDataPath,
const QString& offlineDbFile,
const QStringList& layerIds,
bool onlySelected =
false );
62 bool isOfflineProject()
const;
69 void progressStarted();
75 void layerProgressUpdated(
int layer,
int numLayers );
86 void progressUpdated(
int progress );
89 void progressStopped();
99 void initializeSpatialMetadata(
sqlite3 *sqlite_handle );
100 bool createSpatialiteDB(
const QString& offlineDbPath );
101 void createLoggingTables(
sqlite3* db );
122 void showWarning(
const QString& message );
125 int getOrCreateLayerId(
sqlite3* db,
const QString& qgisLayerId );
126 int getCommitNo(
sqlite3* db );
127 void increaseCommitNo(
sqlite3* db );
134 int sqlQueryInt(
sqlite3* db,
const QString& sql,
int defaultValue );
140 struct AttributeValueChange
147 AttributeValueChanges sqlQueryAttributeValueChanges(
sqlite3* db,
const QString& sql );
149 struct GeometryChange
155 GeometryChanges sqlQueryGeometryChanges(
sqlite3* db,
const QString& sql );
166 void committedFeaturesRemoved(
const QString& qgisLayerId,
const QgsFeatureIds& deletedFeatureIds );
168 void committedGeometriesChanges(
const QString& qgisLayerId,
const QgsGeometryMap& changedGeometries );
169 void startListenFeatureChanges();
170 void stopListenFeatureChanges();
173 #endif // QGS_OFFLINE_EDITING_H Base class for all map layer types.
Represents a vector layer which manages a vector based data sets.