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

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

Inheritance diagram for AbstractSqlMigrationWriter:
Collaboration diagram for AbstractSqlMigrationWriter:

Public Types

enum  MigrationObject {
  QuasselUser, Sender, Identity, IdentityNick,
  Network, Buffer, Backlog, IrcServer,
  UserSetting
}

Public Member Functions

virtual bool writeMo (const QuasselUserMO &user)=0
virtual bool writeMo (const IdentityMO &identity)=0
virtual bool writeMo (const IdentityNickMO &identityNick)=0
virtual bool writeMo (const NetworkMO &network)=0
virtual bool writeMo (const BufferMO &buffer)=0
virtual bool writeMo (const SenderMO &sender)=0
virtual bool writeMo (const BacklogMO &backlog)=0
virtual bool writeMo (const IrcServerMO &ircserver)=0
virtual bool writeMo (const UserSettingMO &userSetting)=0
bool migrateFrom (AbstractSqlMigrationReader *reader)
virtual bool postProcess ()

Static Public Member Functions

static QString migrationObject (MigrationObject moType)

Protected Member Functions

void newQuery (const QString &query, QSqlDatabase db)
virtual void resetQuery ()
virtual bool prepareQuery (MigrationObject mo)=0
bool exec ()
bool next ()
QVariant value (int index)
void bindValue (const QString &placeholder, const QVariant &val)
void bindValue (int pos, const QVariant &val)
QSqlError lastError ()
void dumpStatus ()
QString executedQuery ()
QVariantList boundValues ()
virtual bool transaction ()=0
virtual void rollback ()=0
virtual bool commit ()=0

Friends

class AbstractSqlMigrationReader

Detailed Description

Definition at line 315 of file abstractsqlstorage.h.

Member Enumeration Documentation

enum MigrationObject
inherited
Enumerator:
QuasselUser 
Sender 
Identity 
IdentityNick 
Network 
Buffer 
Backlog 
IrcServer 
UserSetting 

Definition at line 247 of file abstractsqlstorage.h.

Member Function Documentation

virtual bool writeMo ( const QuasselUserMO user)
pure virtual
virtual bool writeMo ( const IdentityMO identity)
pure virtual

Implemented in PostgreSqlMigrationWriter.

virtual bool writeMo ( const IdentityNickMO identityNick)
pure virtual

Implemented in PostgreSqlMigrationWriter.

virtual bool writeMo ( const NetworkMO network)
pure virtual

Implemented in PostgreSqlMigrationWriter.

virtual bool writeMo ( const BufferMO buffer)
pure virtual

Implemented in PostgreSqlMigrationWriter.

virtual bool writeMo ( const SenderMO sender)
pure virtual

Implemented in PostgreSqlMigrationWriter.

virtual bool writeMo ( const BacklogMO backlog)
pure virtual

Implemented in PostgreSqlMigrationWriter.

virtual bool writeMo ( const IrcServerMO ircserver)
pure virtual

Implemented in PostgreSqlMigrationWriter.

virtual bool writeMo ( const UserSettingMO userSetting)
pure virtual

Implemented in PostgreSqlMigrationWriter.

bool migrateFrom ( AbstractSqlMigrationReader reader)
inline

Definition at line 328 of file abstractsqlstorage.h.

References AbstractSqlMigrationReader::migrateTo().

virtual bool postProcess ( )
inlinevirtual

Reimplemented in PostgreSqlMigrationWriter.

Definition at line 331 of file abstractsqlstorage.h.

Referenced by AbstractSqlMigrationReader::migrateTo().

void newQuery ( const QString &  query,
QSqlDatabase  db 
)
protectedinherited
virtual bool prepareQuery ( MigrationObject  mo)
protectedpure virtualinherited
bool next ( )
inlineprotectedinherited

Definition at line 269 of file abstractsqlstorage.h.

References AbstractSqlMigrator::_query.

Referenced by SqliteMigrationReader::readMo().

QVariant value ( int  index)
inlineprotectedinherited

Definition at line 270 of file abstractsqlstorage.h.

References AbstractSqlMigrator::_query.

Referenced by SqliteMigrationReader::readMo().

void bindValue ( const QString &  placeholder,
const QVariant &  val 
)
inlineprotectedinherited
void bindValue ( int  pos,
const QVariant &  val 
)
inlineprotectedinherited

Definition at line 272 of file abstractsqlstorage.h.

References AbstractSqlMigrator::_query.

QSqlError lastError ( )
inlineprotectedinherited
QString executedQuery ( )
inlineprotectedinherited

Definition at line 276 of file abstractsqlstorage.h.

References AbstractSqlMigrator::_query.

Referenced by AbstractSqlMigrator::dumpStatus().

QVariantList boundValues ( )
inlineprotectedinherited

Definition at line 404 of file abstractsqlstorage.cpp.

References AbstractSqlMigrator::_query.

Referenced by AbstractSqlMigrator::dumpStatus().

virtual bool transaction ( )
protectedpure virtualinherited
virtual void rollback ( )
protectedpure virtualinherited
virtual bool commit ( )
protectedpure virtualinherited

Friends And Related Function Documentation

friend class AbstractSqlMigrationReader
friend

Definition at line 332 of file abstractsqlstorage.h.


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