CopperSpice API  1.7.2
QSqlDriverCreatorBase Class Referenceabstract

The QSqlDriverCreatorBase class is the base class for SQL driver factories. More...

Inheritance diagram for QSqlDriverCreatorBase:
QSqlDriverCreator< T >

Public Methods

virtual ~QSqlDriverCreatorBase ()
 
virtual QSqlDrivercreateObject () const = 0
 

Detailed Description

The QSqlDriverCreatorBase class is the base class for SQL driver factories. Reimplement createObject() to return an instance of the specific QSqlDriver subclass that you want to provide.

See QSqlDatabase::registerSqlDriver() for details.

See also
QSqlDriverCreator

Constructor & Destructor Documentation

QSqlDriverCreatorBase::~QSqlDriverCreatorBase ( )
inlinevirtual

Destroys the SQL driver creator object.

Method Documentation

QSqlDriver * QSqlDriverCreatorBase::createObject ( ) const
pure virtual

Reimplement this function to returns a new instance of a QSqlDriver subclass.

Implemented in QSqlDriverCreator< T >.