Quassel IRC  Pre-Release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
SqliteStorage Class Reference

#include </tmp/quassel/src/core/sqlitestorage.h>

Inheritance diagram for SqliteStorage:
Collaboration diagram for SqliteStorage:

Public Types

enum  State { IsReady, NeedsSetup, NotAvailable }
enum  HashVersion { Sha1, Sha2_512, Latest = Sha2_512 }

Public Slots

bool isAvailable () const
QString displayName () const
virtual QStringList setupKeys () const
virtual QVariantMap setupDefaults () const
QString description () const
virtual UserId addUser (const QString &user, const QString &password)
virtual bool updateUser (UserId user, const QString &password)
virtual void renameUser (UserId user, const QString &newName)
virtual UserId validateUser (const QString &user, const QString &password)
virtual UserId getUserId (const QString &username)
virtual UserId internalUser ()
virtual void delUser (UserId user)
virtual void setUserSetting (UserId userId, const QString &settingName, const QVariant &data)
virtual QVariant getUserSetting (UserId userId, const QString &settingName, const QVariant &defaultData=QVariant())
virtual IdentityId createIdentity (UserId user, CoreIdentity &identity)
virtual bool updateIdentity (UserId user, const CoreIdentity &identity)
virtual void removeIdentity (UserId user, IdentityId identityId)
virtual QList< CoreIdentityidentities (UserId user)
virtual NetworkId createNetwork (UserId user, const NetworkInfo &info)
virtual bool updateNetwork (UserId user, const NetworkInfo &info)
virtual bool removeNetwork (UserId user, const NetworkId &networkId)
virtual QList< NetworkInfonetworks (UserId user)
virtual QList< NetworkIdconnectedNetworks (UserId user)
virtual void setNetworkConnected (UserId user, const NetworkId &networkId, bool isConnected)
virtual QHash< QString, QString > persistentChannels (UserId user, const NetworkId &networkId)
virtual void setChannelPersistent (UserId user, const NetworkId &networkId, const QString &channel, bool isJoined)
virtual void setPersistentChannelKey (UserId user, const NetworkId &networkId, const QString &channel, const QString &key)
virtual QString awayMessage (UserId user, NetworkId networkId)
virtual void setAwayMessage (UserId user, NetworkId networkId, const QString &awayMsg)
virtual QString userModes (UserId user, NetworkId networkId)
virtual void setUserModes (UserId user, NetworkId networkId, const QString &userModes)
virtual BufferInfo bufferInfo (UserId user, const NetworkId &networkId, BufferInfo::Type type, const QString &buffer="", bool create=true)
virtual BufferInfo getBufferInfo (UserId user, const BufferId &bufferId)
virtual QList< BufferInforequestBuffers (UserId user)
virtual QList< BufferIdrequestBufferIdsForNetwork (UserId user, NetworkId networkId)
virtual bool removeBuffer (const UserId &user, const BufferId &bufferId)
virtual bool renameBuffer (const UserId &user, const BufferId &bufferId, const QString &newName)
virtual bool mergeBuffersPermanently (const UserId &user, const BufferId &bufferId1, const BufferId &bufferId2)
virtual void setBufferLastSeenMsg (UserId user, const BufferId &bufferId, const MsgId &msgId)
virtual QHash< BufferId, MsgIdbufferLastSeenMsgIds (UserId user)
virtual void setBufferMarkerLineMsg (UserId user, const BufferId &bufferId, const MsgId &msgId)
virtual QHash< BufferId, MsgIdbufferMarkerLineMsgIds (UserId user)
virtual bool logMessage (Message &msg)
virtual bool logMessages (MessageList &msgs)
virtual QList< MessagerequestMsgs (UserId user, BufferId bufferId, MsgId first=-1, MsgId last=-1, int limit=-1)
virtual QList< MessagerequestAllMsgs (UserId user, MsgId first=-1, MsgId last=-1, int limit=-1)
virtual State init (const QVariantMap &settings=QVariantMap())
virtual bool setup (const QVariantMap &settings=QVariantMap())

Signals

void bufferInfoUpdated (UserId user, const BufferInfo &)
 Sent when a new BufferInfo is created, or an existing one changed somehow.
void bufferRenamed (const QString &newName, const QString &oldName)
 Sent when a Buffer was renamed.
void userAdded (UserId, const QString &username)
 Sent when a new user has been added.
void userRenamed (UserId, const QString &newname)
 Sent when a user has been renamed.
void userRemoved (UserId)
 Sent when a user has been removed.

Public Member Functions

 SqliteStorage (QObject *parent=0)
virtual ~SqliteStorage ()
virtual
AbstractSqlMigrationReader
createMigrationReader ()
virtual
AbstractSqlMigrationWriter
createMigrationWriter ()

Protected Member Functions

virtual void setConnectionProperties (const QVariantMap &)
virtual QString driverName ()
virtual QString databaseName ()
virtual int installedSchemaVersion ()
virtual bool updateSchemaVersion (int newVersion)
virtual bool setupSchemaVersion (int version)
bool safeExec (QSqlQuery &query, int retryCount=0)
virtual void sync ()
 Makes temp data persistent.
QSqlDatabase logDb ()
QString queryString (const QString &queryName, int version)
QString queryString (const QString &queryName)
QStringList setupQueries ()
QStringList upgradeQueries (int ver)
bool upgradeDb ()
bool watchQuery (QSqlQuery &query)
int schemaVersion ()
virtual QString hostName ()
virtual int port ()
virtual QString userName ()
virtual QString password ()
virtual bool initDbSession (QSqlDatabase &)
 Initialize db specific features on connect.
QString hashPassword (const QString &password)
bool checkHashedPassword (const UserId user, const QString &password, const QString &hashedPassword, const Storage::HashVersion version)

Private Member Functions

void bindNetworkInfo (QSqlQuery &query, const NetworkInfo &info)
void bindServerInfo (QSqlQuery &query, const Network::Server &server)
void lockForRead ()
void lockForWrite ()
void unlock ()

Static Private Member Functions

static QString backlogFile ()

Private Attributes

QReadWriteLock _dbLock

Static Private Attributes

static int _maxRetryCount = 150

Detailed Description

Definition at line 30 of file sqlitestorage.h.

Member Enumeration Documentation

enum State
inherited
Enumerator:
IsReady 
NeedsSetup 
NotAvailable 

Definition at line 39 of file storage.h.

enum HashVersion
inherited
Enumerator:
Sha1 
Sha2_512 
Latest 

Definition at line 45 of file storage.h.

Constructor & Destructor Documentation

SqliteStorage ( QObject *  parent = 0)

Definition at line 31 of file sqlitestorage.cpp.

~SqliteStorage ( )
virtual

Definition at line 37 of file sqlitestorage.cpp.

Member Function Documentation

AbstractSqlMigrationReader * createMigrationReader ( )
inlinevirtual

Reimplemented from AbstractSqlStorage.

Definition at line 163 of file sqlitestorage.h.

bool isAvailable ( ) const
slot

Definition at line 42 of file sqlitestorage.cpp.

QString displayName ( ) const
slot

Definition at line 49 of file sqlitestorage.cpp.

virtual QStringList setupKeys ( ) const
inlinevirtualslot

Definition at line 45 of file sqlitestorage.h.

virtual QVariantMap setupDefaults ( ) const
inlinevirtualslot

Definition at line 46 of file sqlitestorage.h.

QString description ( ) const
slot

Definition at line 58 of file sqlitestorage.cpp.

UserId addUser ( const QString &  user,
const QString &  password 
)
virtualslot
bool updateUser ( UserId  user,
const QString &  password 
)
virtualslot
void renameUser ( UserId  user,
const QString &  newName 
)
virtualslot
UserId validateUser ( const QString &  user,
const QString &  password 
)
virtualslot
UserId getUserId ( const QString &  username)
virtualslot
void setUserSetting ( UserId  userId,
const QString &  settingName,
const QVariant &  data 
)
virtualslot
QVariant getUserSetting ( UserId  userId,
const QString &  settingName,
const QVariant &  defaultData = QVariant() 
)
virtualslot
void removeIdentity ( UserId  user,
IdentityId  identityId 
)
virtualslot
bool removeNetwork ( UserId  user,
const NetworkId networkId 
)
virtualslot
void setNetworkConnected ( UserId  user,
const NetworkId networkId,
bool  isConnected 
)
virtualslot
QHash< QString, QString > persistentChannels ( UserId  user,
const NetworkId networkId 
)
virtualslot
void setChannelPersistent ( UserId  user,
const NetworkId networkId,
const QString &  channel,
bool  isJoined 
)
virtualslot
void setPersistentChannelKey ( UserId  user,
const NetworkId networkId,
const QString &  channel,
const QString &  key 
)
virtualslot
QString awayMessage ( UserId  user,
NetworkId  networkId 
)
virtualslot
void setAwayMessage ( UserId  user,
NetworkId  networkId,
const QString &  awayMsg 
)
virtualslot
QString userModes ( UserId  user,
NetworkId  networkId 
)
virtualslot
void setUserModes ( UserId  user,
NetworkId  networkId,
const QString &  userModes 
)
virtualslot
BufferInfo bufferInfo ( UserId  user,
const NetworkId networkId,
BufferInfo::Type  type,
const QString &  buffer = "",
bool  create = true 
)
virtualslot
QList< BufferId > requestBufferIdsForNetwork ( UserId  user,
NetworkId  networkId 
)
virtualslot
bool removeBuffer ( const UserId user,
const BufferId bufferId 
)
virtualslot
bool renameBuffer ( const UserId user,
const BufferId bufferId,
const QString &  newName 
)
virtualslot
bool mergeBuffersPermanently ( const UserId user,
const BufferId bufferId1,
const BufferId bufferId2 
)
virtualslot
void setBufferLastSeenMsg ( UserId  user,
const BufferId bufferId,
const MsgId msgId 
)
virtualslot
void setBufferMarkerLineMsg ( UserId  user,
const BufferId bufferId,
const MsgId msgId 
)
virtualslot
QList< Message > requestMsgs ( UserId  user,
BufferId  bufferId,
MsgId  first = -1,
MsgId  last = -1,
int  limit = -1 
)
virtualslot
QList< Message > requestAllMsgs ( UserId  user,
MsgId  first = -1,
MsgId  last = -1,
int  limit = -1 
)
virtualslot
virtual void setConnectionProperties ( const QVariantMap &  )
inlineprotectedvirtual

Implements AbstractSqlStorage.

Definition at line 107 of file sqlitestorage.h.

virtual QString driverName ( )
inlineprotectedvirtual

Implements AbstractSqlStorage.

Definition at line 108 of file sqlitestorage.h.

virtual QString databaseName ( )
inlineprotectedvirtual

Implements AbstractSqlStorage.

Definition at line 109 of file sqlitestorage.h.

References backlogFile().

int installedSchemaVersion ( )
protectedvirtual

Reimplemented from AbstractSqlStorage.

Definition at line 66 of file sqlitestorage.cpp.

References AbstractSqlStorage::logDb().

bool updateSchemaVersion ( int  newVersion)
protectedvirtual

Implements AbstractSqlStorage.

Definition at line 83 of file sqlitestorage.cpp.

References AbstractSqlStorage::logDb().

bool setupSchemaVersion ( int  version)
protectedvirtual

Implements AbstractSqlStorage.

Definition at line 101 of file sqlitestorage.cpp.

References AbstractSqlStorage::logDb().

QString backlogFile ( )
staticprivate

Definition at line 1708 of file sqlitestorage.cpp.

References Quassel::configDirPath().

Referenced by databaseName().

virtual AbstractSqlMigrationWriter* createMigrationWriter ( )
inlinevirtualinherited

Reimplemented in PostgreSqlStorage.

Definition at line 42 of file abstractsqlstorage.h.

Referenced by Core::getMigrationWriter().

virtual void sync ( )
inlineprotectedvirtualinherited

Makes temp data persistent.

This Method is periodically called by the Quassel Core to make temporary data persistant. This reduces the data loss drastically in the unlikely case of a Core crash.

Implements Storage.

Definition at line 49 of file abstractsqlstorage.h.

QSqlDatabase logDb ( )
protectedinherited

Definition at line 51 of file abstractsqlstorage.cpp.

References AbstractSqlStorage::_connectionPool, AbstractSqlStorage::addConnectionToPool(), AbstractSqlStorage::dbConnect(), and Storage::displayName().

Referenced by PostgreSqlStorage::addUser(), addUser(), PostgreSqlStorage::awayMessage(), awayMessage(), PostgreSqlStorage::beginReadOnlyTransaction(), PostgreSqlStorage::beginTransaction(), PostgreSqlStorage::bufferInfo(), bufferInfo(), PostgreSqlStorage::bufferLastSeenMsgIds(), bufferLastSeenMsgIds(), PostgreSqlStorage::bufferMarkerLineMsgIds(), bufferMarkerLineMsgIds(), SqliteMigrationReader::commit(), PostgreSqlMigrationWriter::commit(), PostgreSqlStorage::connectedNetworks(), connectedNetworks(), PostgreSqlStorage::createIdentity(), createIdentity(), PostgreSqlStorage::createNetwork(), createNetwork(), PostgreSqlStorage::delUser(), delUser(), PostgreSqlStorage::getBufferInfo(), getBufferInfo(), PostgreSqlStorage::getUserId(), getUserId(), PostgreSqlStorage::getUserSetting(), getUserSetting(), PostgreSqlStorage::identities(), identities(), AbstractSqlStorage::init(), installedSchemaVersion(), PostgreSqlStorage::installedSchemaVersion(), PostgreSqlStorage::internalUser(), internalUser(), PostgreSqlStorage::logMessage(), logMessage(), PostgreSqlStorage::logMessages(), logMessages(), PostgreSqlStorage::mergeBuffersPermanently(), mergeBuffersPermanently(), PostgreSqlStorage::networks(), networks(), PostgreSqlStorage::persistentChannels(), persistentChannels(), PostgreSqlMigrationWriter::postProcess(), PostgreSqlStorage::prepareAndExecuteQuery(), SqliteMigrationReader::prepareQuery(), PostgreSqlMigrationWriter::prepareQuery(), PostgreSqlStorage::removeBuffer(), removeBuffer(), PostgreSqlStorage::removeIdentity(), removeIdentity(), PostgreSqlStorage::removeNetwork(), removeNetwork(), PostgreSqlStorage::renameBuffer(), renameBuffer(), PostgreSqlStorage::renameUser(), renameUser(), PostgreSqlStorage::requestAllMsgs(), requestAllMsgs(), PostgreSqlStorage::requestBufferIdsForNetwork(), requestBufferIdsForNetwork(), PostgreSqlStorage::requestBuffers(), requestBuffers(), PostgreSqlStorage::requestMsgs(), requestMsgs(), SqliteMigrationReader::rollback(), PostgreSqlMigrationWriter::rollback(), PostgreSqlStorage::safeExec(), PostgreSqlStorage::setAwayMessage(), setAwayMessage(), PostgreSqlStorage::setBufferLastSeenMsg(), setBufferLastSeenMsg(), PostgreSqlStorage::setBufferMarkerLineMsg(), setBufferMarkerLineMsg(), PostgreSqlStorage::setChannelPersistent(), setChannelPersistent(), SqliteMigrationReader::setMaxId(), PostgreSqlStorage::setNetworkConnected(), setNetworkConnected(), PostgreSqlStorage::setPersistentChannelKey(), setPersistentChannelKey(), AbstractSqlStorage::setup(), setupSchemaVersion(), PostgreSqlStorage::setupSchemaVersion(), PostgreSqlStorage::setUserModes(), setUserModes(), PostgreSqlStorage::setUserSetting(), setUserSetting(), SqliteMigrationReader::transaction(), PostgreSqlMigrationWriter::transaction(), PostgreSqlStorage::updateIdentity(), updateIdentity(), PostgreSqlStorage::updateNetwork(), updateNetwork(), updateSchemaVersion(), PostgreSqlStorage::updateSchemaVersion(), PostgreSqlStorage::updateUser(), updateUser(), AbstractSqlStorage::upgradeDb(), PostgreSqlStorage::userModes(), userModes(), PostgreSqlStorage::validateUser(), and validateUser().

QString queryString ( const QString &  queryName,
int  version 
)
protectedinherited

Definition at line 152 of file abstractsqlstorage.cpp.

References Storage::displayName(), and AbstractSqlStorage::schemaVersion().

Referenced by PostgreSqlStorage::addUser(), addUser(), PostgreSqlStorage::awayMessage(), awayMessage(), PostgreSqlStorage::bufferInfo(), bufferInfo(), PostgreSqlStorage::bufferLastSeenMsgIds(), bufferLastSeenMsgIds(), PostgreSqlStorage::bufferMarkerLineMsgIds(), bufferMarkerLineMsgIds(), PostgreSqlStorage::connectedNetworks(), connectedNetworks(), PostgreSqlStorage::createIdentity(), createIdentity(), PostgreSqlStorage::createNetwork(), createNetwork(), PostgreSqlStorage::delUser(), delUser(), PostgreSqlStorage::getBufferInfo(), getBufferInfo(), PostgreSqlStorage::getUserId(), getUserId(), PostgreSqlStorage::getUserSetting(), getUserSetting(), PostgreSqlStorage::identities(), identities(), PostgreSqlStorage::internalUser(), internalUser(), logMessage(), logMessages(), PostgreSqlStorage::mergeBuffersPermanently(), mergeBuffersPermanently(), PostgreSqlStorage::networks(), networks(), PostgreSqlStorage::persistentChannels(), persistentChannels(), PostgreSqlStorage::prepareAndExecuteQuery(), SqliteMigrationReader::prepareQuery(), PostgreSqlMigrationWriter::prepareQuery(), PostgreSqlStorage::removeBuffer(), removeBuffer(), PostgreSqlStorage::removeIdentity(), removeIdentity(), PostgreSqlStorage::removeNetwork(), removeNetwork(), PostgreSqlStorage::renameBuffer(), renameBuffer(), PostgreSqlStorage::renameUser(), renameUser(), PostgreSqlStorage::requestAllMsgs(), requestAllMsgs(), PostgreSqlStorage::requestBufferIdsForNetwork(), requestBufferIdsForNetwork(), PostgreSqlStorage::requestBuffers(), requestBuffers(), requestMsgs(), PostgreSqlStorage::setAwayMessage(), setAwayMessage(), PostgreSqlStorage::setBufferLastSeenMsg(), setBufferLastSeenMsg(), PostgreSqlStorage::setBufferMarkerLineMsg(), setBufferMarkerLineMsg(), PostgreSqlStorage::setChannelPersistent(), setChannelPersistent(), SqliteMigrationReader::setMaxId(), PostgreSqlStorage::setNetworkConnected(), setNetworkConnected(), PostgreSqlStorage::setPersistentChannelKey(), setPersistentChannelKey(), AbstractSqlStorage::setup(), AbstractSqlStorage::setupQueries(), PostgreSqlStorage::setUserModes(), setUserModes(), PostgreSqlStorage::setUserSetting(), setUserSetting(), PostgreSqlStorage::updateIdentity(), updateIdentity(), PostgreSqlStorage::updateNetwork(), updateNetwork(), PostgreSqlStorage::updateUser(), updateUser(), AbstractSqlStorage::upgradeDb(), AbstractSqlStorage::upgradeQueries(), PostgreSqlStorage::userModes(), userModes(), PostgreSqlStorage::validateUser(), and validateUser().

QString queryString ( const QString &  queryName)
inlineprotectedinherited

Definition at line 54 of file abstractsqlstorage.h.

References AbstractSqlStorage::queryString().

Referenced by AbstractSqlStorage::queryString().

QStringList setupQueries ( )
protectedinherited
QStringList upgradeQueries ( int  ver)
protectedinherited
bool watchQuery ( QSqlQuery &  query)
protectedinherited

Definition at line 267 of file abstractsqlstorage.cpp.

References AbstractSqlStorage::_debug.

Referenced by PostgreSqlStorage::addUser(), PostgreSqlStorage::awayMessage(), awayMessage(), PostgreSqlStorage::bufferInfo(), bufferInfo(), PostgreSqlStorage::bufferLastSeenMsgIds(), bufferLastSeenMsgIds(), PostgreSqlStorage::bufferMarkerLineMsgIds(), bufferMarkerLineMsgIds(), PostgreSqlStorage::connectedNetworks(), connectedNetworks(), PostgreSqlStorage::createIdentity(), createIdentity(), PostgreSqlStorage::createNetwork(), createNetwork(), PostgreSqlStorage::delUser(), PostgreSqlStorage::getBufferInfo(), getBufferInfo(), PostgreSqlStorage::getUserId(), PostgreSqlStorage::getUserSetting(), PostgreSqlStorage::identities(), identities(), PostgreSqlStorage::installedSchemaVersion(), PostgreSqlStorage::internalUser(), PostgreSqlStorage::logMessage(), logMessage(), PostgreSqlStorage::logMessages(), logMessages(), PostgreSqlStorage::mergeBuffersPermanently(), mergeBuffersPermanently(), PostgreSqlStorage::networks(), networks(), PostgreSqlStorage::persistentChannels(), persistentChannels(), PostgreSqlStorage::removeBuffer(), removeBuffer(), PostgreSqlStorage::removeIdentity(), PostgreSqlStorage::removeNetwork(), removeNetwork(), PostgreSqlStorage::renameBuffer(), renameBuffer(), PostgreSqlStorage::renameUser(), PostgreSqlStorage::requestAllMsgs(), requestAllMsgs(), PostgreSqlStorage::requestBufferIdsForNetwork(), requestBufferIdsForNetwork(), PostgreSqlStorage::requestBuffers(), requestBuffers(), PostgreSqlStorage::requestMsgs(), requestMsgs(), PostgreSqlStorage::setAwayMessage(), setAwayMessage(), PostgreSqlStorage::setBufferLastSeenMsg(), setBufferLastSeenMsg(), PostgreSqlStorage::setBufferMarkerLineMsg(), setBufferMarkerLineMsg(), PostgreSqlStorage::setChannelPersistent(), setChannelPersistent(), PostgreSqlStorage::setNetworkConnected(), setNetworkConnected(), PostgreSqlStorage::setPersistentChannelKey(), setPersistentChannelKey(), AbstractSqlStorage::setup(), PostgreSqlStorage::setupSchemaVersion(), PostgreSqlStorage::setUserModes(), setUserModes(), PostgreSqlStorage::setUserSetting(), PostgreSqlStorage::updateIdentity(), updateIdentity(), PostgreSqlStorage::updateNetwork(), updateNetwork(), PostgreSqlStorage::updateSchemaVersion(), PostgreSqlStorage::updateUser(), AbstractSqlStorage::upgradeDb(), PostgreSqlStorage::userModes(), userModes(), and PostgreSqlStorage::validateUser().

virtual QString hostName ( )
inlineprotectedvirtualinherited

Reimplemented in PostgreSqlStorage.

Definition at line 70 of file abstractsqlstorage.h.

Referenced by AbstractSqlStorage::addConnectionToPool().

virtual int port ( )
inlineprotectedvirtualinherited

Reimplemented in PostgreSqlStorage.

Definition at line 71 of file abstractsqlstorage.h.

Referenced by AbstractSqlStorage::addConnectionToPool().

virtual QString userName ( )
inlineprotectedvirtualinherited

Reimplemented in PostgreSqlStorage.

Definition at line 73 of file abstractsqlstorage.h.

Referenced by AbstractSqlStorage::addConnectionToPool().

virtual QString password ( )
inlineprotectedvirtualinherited

Reimplemented in PostgreSqlStorage.

Definition at line 74 of file abstractsqlstorage.h.

Referenced by AbstractSqlStorage::addConnectionToPool().

virtual bool initDbSession ( QSqlDatabase &  )
inlineprotectedvirtualinherited

Initialize db specific features on connect.

This is called every time a connection to a specific SQL backend is established the default implementation does nothing.

When reimplementing this method, don't use logDB() inside this function as this would cause as we're just about to initialize that DB connection.

Reimplemented in PostgreSqlStorage.

Definition at line 83 of file abstractsqlstorage.h.

Referenced by AbstractSqlStorage::dbConnect().

void bufferInfoUpdated ( UserId  user,
const BufferInfo  
)
signalinherited

Sent when a new BufferInfo is created, or an existing one changed somehow.

void bufferRenamed ( const QString &  newName,
const QString &  oldName 
)
signalinherited

Sent when a Buffer was renamed.

void userAdded ( UserId  ,
const QString &  username 
)
signalinherited

Sent when a new user has been added.

Referenced by PostgreSqlStorage::addUser(), and addUser().

void userRenamed ( UserId  ,
const QString &  newname 
)
signalinherited

Sent when a user has been renamed.

Referenced by PostgreSqlStorage::renameUser(), and renameUser().

void userRemoved ( UserId  )
signalinherited

Sent when a user has been removed.

Referenced by PostgreSqlStorage::delUser(), and delUser().

QString hashPassword ( const QString &  password)
protectedinherited
bool checkHashedPassword ( const UserId  user,
const QString &  password,
const QString &  hashedPassword,
const Storage::HashVersion  version 
)
protectedinherited

Member Data Documentation

QReadWriteLock _dbLock
private

Definition at line 123 of file sqlitestorage.h.

Referenced by lockForRead(), lockForWrite(), and unlock().

int _maxRetryCount = 150
staticprivate

Definition at line 124 of file sqlitestorage.h.

Referenced by safeExec().


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