signon  8.58
SignonDaemonNS::SecretsDB Class Reference

#include <default-secrets-storage.h>

Inheritance diagram for SignonDaemonNS::SecretsDB:
Collaboration diagram for SignonDaemonNS::SecretsDB:

Public Member Functions

 SecretsDB (const QString &name)
 
bool createTables ()
 
bool clear ()
 
bool updateCredentials (const quint32 id, const QString &username, const QString &password)
 
bool removeCredentials (const quint32 id)
 
bool loadCredentials (const quint32 id, QString &username, QString &password)
 
QVariantMap loadData (quint32 id, quint32 method)
 
bool storeData (quint32 id, quint32 method, const QVariantMap &data)
 
bool removeData (quint32 id, quint32 method)
 
- Public Member Functions inherited from SignonDaemonNS::SqlDatabase
 SqlDatabase (const QString &hostname, const QString &connectionName, int version)
 Constructs a SqlDatabase object using the given hostname. More...
 
virtual ~SqlDatabase ()
 Destroys the SqlDatabase object, closing the database connection. More...
 
bool init ()
 Connects to the DB and if necessary creates the tables. More...
 
virtual bool updateDB (int version)
 
bool connect ()
 Creates the database connection. More...
 
void disconnect ()
 Destroys the database connection. More...
 
bool startTransaction ()
 
bool commit ()
 
void rollback ()
 
bool connected ()
 
void setDatabaseName (const QString &databaseName)
 Sets the database name. More...
 
void setUsername (const QString &username)
 Sets the username for the database connection. More...
 
void setPassword (const QString &password)
 Sets the password for the database connection. More...
 
QString databaseName () const
 
QString username () const
 
QString password () const
 
QSqlQuery newQuery () const
 
QSqlQuery exec (const QString &query)
 Executes a specific database query. More...
 
QSqlQuery exec (QSqlQuery &query)
 Executes a specific database query. More...
 
bool transactionalExec (const QStringList &queryList)
 Executes a specific database set of queryes (INSERTs, UPDATEs, DELETEs) in a transaction context (No nested transactions supported - sqlite reasons). More...
 
bool hasTables () const
 
SignOn::CredentialsDBError lastError () const
 
bool errorOccurred () const
 
void clearError ()
 
QString connectionName () const
 

Friends

class ::TestDatabase
 

Additional Inherited Members

- Static Public Member Functions inherited from SignonDaemonNS::SqlDatabase
static QStringList supportedDrivers ()
 
static QString errorInfo (const QSqlError &error)
 Serializes a SQL error into a string. More...
 
- Protected Member Functions inherited from SignonDaemonNS::SqlDatabase
QStringList queryList (const QString &query_str)
 
QStringList queryList (QSqlQuery &query)
 
void setLastError (const QSqlError &sqlError)
 
- Protected Attributes inherited from SignonDaemonNS::SqlDatabase
int m_version
 
QSqlDatabase m_database
 

Detailed Description

Definition at line 41 of file default-secrets-storage.h.

Constructor & Destructor Documentation

Member Function Documentation

bool SecretsDB::clear ( )
virtual
bool SecretsDB::createTables ( )
virtual
bool SecretsDB::loadCredentials ( const quint32  id,
QString &  username,
QString &  password 
)
QVariantMap SecretsDB::loadData ( quint32  id,
quint32  method 
)
bool SecretsDB::removeCredentials ( const quint32  id)

Friends And Related Function Documentation

friend class ::TestDatabase
friend

Definition at line 43 of file default-secrets-storage.h.


The documentation for this class was generated from the following files: