72 bool convertToOfflineProject(
const QString &offlineDataPath,
const QString &offlineDbFile,
const QStringList &layerIds,
bool onlySelected =
false, ContainerType containerType = SpatiaLite,
const QString &layerNameSuffix = u
" (offline)"_s );
75 bool isOfflineProject()
const;
82 void synchronize(
bool useTransaction =
false );
121 void warning(
const QString &title,
const QString &message );
124 void initializeSpatialMetadata(
sqlite3 *sqlite_handle );
126 void createLoggingTables(
sqlite3 *db );
144 void showWarning(
const QString &message );
147 int getOrCreateLayerId(
sqlite3 *db,
const QString &qgisLayerId );
148 int getCommitNo(
sqlite3 *db );
149 void increaseCommitNo(
sqlite3 *db );
155 int sqlExec(
sqlite3 *db,
const QString &sql );
156 int sqlQueryInt(
sqlite3 *db,
const QString &sql,
int defaultValue );
157 QString sqlQueryStr(
sqlite3 *db,
const QString &sql, QString &defaultValue );
158 QList<int> sqlQueryInts(
sqlite3 *db,
const QString &sql );
159 QString sqlEscape( QString value )
const;
161 QList<QgsField> sqlQueryAttributesAdded(
sqlite3 *db,
const QString &sql );
164 struct AttributeValueChange
170 typedef QList<AttributeValueChange> AttributeValueChanges;
171 AttributeValueChanges sqlQueryAttributeValueChanges(
sqlite3 *db,
const QString &sql );
173 struct GeometryChange
178 typedef QList<GeometryChange> GeometryChanges;
179 GeometryChanges sqlQueryGeometryChanges(
sqlite3 *db,
const QString &sql );
182 void setupLayer( QgsMapLayer *layer );
183 void committedAttributesAdded(
const QString &qgisLayerId,
const QList<QgsField> &addedAttributes );
184 void committedFeaturesAdded(
const QString &qgisLayerId,
const QgsFeatureList &addedFeatures );
185 void committedFeaturesRemoved(
const QString &qgisLayerId,
const QgsFeatureIds &deletedFeatureIds );
186 void committedAttributeValuesChanges(
const QString &qgisLayerId,
const QgsChangedAttributesMap &changedAttrsMap );
187 void committedGeometriesChanges(
const QString &qgisLayerId,
const QgsGeometryMap &changedGeometries );
188 void startListenFeatureChanges();
189 void stopListenFeatureChanges();