QGIS API Documentation 3.39.0-Master (d85f3c2a281)
Loading...
Searching...
No Matches
qgsauthconfigurationstoragesqlite.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsauthconfigurationstoragesqlite.h - QgsAuthConfigurationStorageSqlite
3
4 ---------------------
5 begin : 20.6.2024
6 copyright : (C) 2024 by Alessandro Pasotti
7 email : elpaso at itopen dot it
8 ***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16#ifndef QGSAUTHCONFIGURATIONSTORAGESQLITE_H
17#define QGSAUTHCONFIGURATIONSTORAGESQLITE_H
18
20
21#define SIP_NO_FILE
22
24
25#include <QObject>
26#include <QRecursiveMutex>
27#include <QSqlDatabase>
28
33class QgsAuthConfigurationStorageSqlite : public QgsAuthConfigurationStorageDb
34{
35 Q_OBJECT
36
37 // QgsAuthConfigurationStorageDb interface
38 public:
39
40 QgsAuthConfigurationStorageSqlite( const QString &databasePath );
41
42 bool initialize() override;
43 QList<QgsAuthConfigurationStorage::SettingParameter> settingsParameters() const override;
44 QString description() const override;
45 QString type( ) const override;
46
47 private:
48
49 bool tableExists( const QString &table ) const override;
50 void checkCapabilities() override;
51
52};
54
55#endif // QGSAUTHCONFIGURATIONSTORAGESQLITE_H
QSqlDatabase based implementation of QgsAuthConfigurationStorage.
virtual bool tableExists(const QString &table) const
Returns true if the specified table exists in the database, false otherwise.
virtual void checkCapabilities()
Checks the capabilities of the storage.
QList< QgsAuthConfigurationStorage::SettingParameter > settingsParameters() const override
Returns a list of the settings accepted by the storage.
bool initialize() override
Initializes the storage.
QString type() const override
Returns the type of the storage implementation.
QString description() const override
Returns a human readable localized description of the storage implementation (e.g.