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

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

Inheritance diagram for PostgreSqlStorage:
Collaboration diagram for PostgreSqlStorage:

Public Types

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

Public Slots

virtual bool isAvailable () const
virtual QString displayName () const
virtual QString description () const
virtual QStringList setupKeys () const
virtual QVariantMap setupDefaults () 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

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

Protected Member Functions

virtual bool initDbSession (QSqlDatabase &db)
 Initialize db specific features on connect.
virtual void setConnectionProperties (const QVariantMap &properties)
virtual QString driverName ()
virtual QString hostName ()
virtual int port ()
virtual QString databaseName ()
virtual QString userName ()
virtual QString password ()
virtual int installedSchemaVersion ()
virtual bool updateSchemaVersion (int newVersion)
virtual bool setupSchemaVersion (int version)
void safeExec (QSqlQuery &query)
bool beginTransaction (QSqlDatabase &db)
bool beginReadOnlyTransaction (QSqlDatabase &db)
QSqlQuery executePreparedQuery (const QString &queryname, const QVariantList &params, QSqlDatabase &db)
QSqlQuery executePreparedQuery (const QString &queryname, const QVariant &param, QSqlDatabase &db)
void deallocateQuery (const QString &queryname, const QSqlDatabase &db)
void savePoint (const QString &handle, const QSqlDatabase &db)
void rollbackSavePoint (const QString &handle, const QSqlDatabase &db)
void releaseSavePoint (const QString &handle, const QSqlDatabase &db)
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 ()
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)
QSqlQuery prepareAndExecuteQuery (const QString &queryname, const QString &paramstring, QSqlDatabase &db)
QSqlQuery prepareAndExecuteQuery (const QString &queryname, QSqlDatabase &db)

Private Attributes

QString _hostName
int _port
QString _databaseName
QString _userName
QString _password

Detailed Description

Definition at line 29 of file postgresqlstorage.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

PostgreSqlStorage ( QObject *  parent = 0)

Definition at line 29 of file postgresqlstorage.cpp.

~PostgreSqlStorage ( )
virtual

Definition at line 36 of file postgresqlstorage.cpp.

Member Function Documentation

AbstractSqlMigrationWriter * createMigrationWriter ( )
virtual

Reimplemented from AbstractSqlStorage.

Definition at line 41 of file postgresqlstorage.cpp.

References _databaseName, _hostName, _password, _port, _userName, and setConnectionProperties().

bool isAvailable ( ) const
virtualslot

Definition at line 55 of file postgresqlstorage.cpp.

QString displayName ( ) const
virtualslot

Definition at line 63 of file postgresqlstorage.cpp.

QString description ( ) const
virtualslot

Definition at line 69 of file postgresqlstorage.cpp.

QStringList setupKeys ( ) const
virtualslot

Definition at line 76 of file postgresqlstorage.cpp.

QVariantMap setupDefaults ( ) const
virtualslot

Definition at line 88 of file postgresqlstorage.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
BufferInfo getBufferInfo ( UserId  user,
const BufferId bufferId 
)
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
bool initDbSession ( QSqlDatabase &  )
protectedvirtual

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 from AbstractSqlStorage.

Definition at line 99 of file postgresqlstorage.cpp.

void setConnectionProperties ( const QVariantMap &  properties)
protectedvirtual

Implements AbstractSqlStorage.

Definition at line 151 of file postgresqlstorage.cpp.

References _databaseName, _hostName, _password, _port, and _userName.

Referenced by createMigrationWriter().

virtual QString driverName ( )
inlineprotectedvirtual

Implements AbstractSqlStorage.

Definition at line 108 of file postgresqlstorage.h.

virtual QString hostName ( )
inlineprotectedvirtual

Reimplemented from AbstractSqlStorage.

Definition at line 109 of file postgresqlstorage.h.

References _hostName.

virtual int port ( )
inlineprotectedvirtual

Reimplemented from AbstractSqlStorage.

Definition at line 110 of file postgresqlstorage.h.

References _port.

virtual QString databaseName ( )
inlineprotectedvirtual

Implements AbstractSqlStorage.

Definition at line 111 of file postgresqlstorage.h.

References _databaseName.

virtual QString userName ( )
inlineprotectedvirtual

Reimplemented from AbstractSqlStorage.

Definition at line 112 of file postgresqlstorage.h.

References _userName.

virtual QString password ( )
inlineprotectedvirtual

Reimplemented from AbstractSqlStorage.

Definition at line 113 of file postgresqlstorage.h.

References _password.

Referenced by validateUser().

int installedSchemaVersion ( )
protectedvirtual
bool updateSchemaVersion ( int  newVersion)
protectedvirtual
bool setupSchemaVersion ( int  version)
protectedvirtual
QSqlQuery executePreparedQuery ( const QString &  queryname,
const QVariantList &  params,
QSqlDatabase &  db 
)
protected

Definition at line 1725 of file postgresqlstorage.cpp.

References prepareAndExecuteQuery().

Referenced by logMessage(), logMessages(), and requestMsgs().

QSqlQuery executePreparedQuery ( const QString &  queryname,
const QVariant &  param,
QSqlDatabase &  db 
)
protected

Definition at line 1751 of file postgresqlstorage.cpp.

References prepareAndExecuteQuery().

void deallocateQuery ( const QString &  queryname,
const QSqlDatabase &  db 
)
protected

Definition at line 1765 of file postgresqlstorage.cpp.

void savePoint ( const QString &  handle,
const QSqlDatabase &  db 
)
inlineprotected

Definition at line 126 of file postgresqlstorage.h.

Referenced by logMessage(), and logMessages().

void rollbackSavePoint ( const QString &  handle,
const QSqlDatabase &  db 
)
inlineprotected

Definition at line 127 of file postgresqlstorage.h.

Referenced by logMessage(), and logMessages().

void releaseSavePoint ( const QString &  handle,
const QSqlDatabase &  db 
)
inlineprotected

Definition at line 128 of file postgresqlstorage.h.

Referenced by logMessage(), and logMessages().

QSqlQuery prepareAndExecuteQuery ( const QString &  queryname,
const QString &  paramstring,
QSqlDatabase &  db 
)
private
QSqlQuery prepareAndExecuteQuery ( const QString &  queryname,
QSqlDatabase &  db 
)
inlineprivate

Definition at line 134 of file postgresqlstorage.h.

References prepareAndExecuteQuery().

Referenced by prepareAndExecuteQuery().

virtual AbstractSqlMigrationReader* createMigrationReader ( )
inlinevirtualinherited

Reimplemented in SqliteStorage.

Definition at line 41 of file abstractsqlstorage.h.

Referenced by Core::getMigrationReader().

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

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 addUser(), and SqliteStorage::addUser().

void userRenamed ( UserId  ,
const QString &  newname 
)
signalinherited

Sent when a user has been renamed.

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

void userRemoved ( UserId  )
signalinherited

Sent when a user has been removed.

Referenced by delUser(), and SqliteStorage::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

QString _hostName
private

Definition at line 136 of file postgresqlstorage.h.

Referenced by createMigrationWriter(), hostName(), and setConnectionProperties().

int _port
private

Definition at line 137 of file postgresqlstorage.h.

Referenced by createMigrationWriter(), port(), and setConnectionProperties().

QString _databaseName
private
QString _userName
private

Definition at line 139 of file postgresqlstorage.h.

Referenced by createMigrationWriter(), setConnectionProperties(), and userName().

QString _password
private

Definition at line 140 of file postgresqlstorage.h.

Referenced by createMigrationWriter(), password(), and setConnectionProperties().


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