Eneboo - Documentación para desarrolladores
Métodos públicos | Métodos públicos estáticos | Métodos protegidos estáticos | Atributos protegidos
Referencia de la Clase QSqlDatabaseManager
Diagrama de herencias de QSqlDatabaseManager
QObject Qt Qt

Lista de todos los miembros.

Métodos públicos

 QSqlDatabaseManager (QObject *parent=0, const char *name=0)
 ~QSqlDatabaseManager ()

Métodos públicos estáticos

static QSqlDatabasedatabase (const QString &name, bool open)
static QSqlDatabaseaddDatabase (QSqlDatabase *db, const QString &name)
static void removeDatabase (const QString &name)
static void removeDatabase (QSqlDatabase *db)
static bool contains (const QString &name)
static QDriverDictdriverDict ()

Métodos protegidos estáticos

static QSqlDatabaseManagerinstance ()

Atributos protegidos

QDict< QSqlDatabasedbDict
QDriverDictdrDict

Documentación del constructor y destructor

QSqlDatabaseManager::QSqlDatabaseManager ( QObject parent = 0,
const char *  name = 0 
)

Constructs an SQL database manager.

QSqlDatabaseManager::~QSqlDatabaseManager ( )

Destroys the object and frees any allocated resources. All open database connections are closed. All database connections are deleted.


Documentación de las funciones miembro

QSqlDatabase * QSqlDatabaseManager::addDatabase ( QSqlDatabase db,
const QString name 
) [static]

Adds a database to the SQL connection manager. The database connection is referred to by name. The newly added database connection is returned. This function will only return 0 if it is called before a QApplication object has been instantiated. Use the output of drivers() to determine whether a particular driver is available or not.

The returned QSqlDatabase object is owned by the framework and must not be deleted. If you want to explicitly remove the connection, use removeDatabase().

Ver también:
QSqlDatabase database()
bool QSqlDatabaseManager::contains ( const QString name) [static]

Returns TRUE if the list of database connections contains name; otherwise returns FALSE.

QSqlDatabase * QSqlDatabaseManager::database ( const QString name,
bool  open 
) [static]

Returns the database connection called name. If open is TRUE, the database connection is opened. If name does not exist in the list of managed databases, 0 is returned.

QDriverDict * QSqlDatabaseManager::driverDict ( ) [static]
QSqlDatabaseManager * QSqlDatabaseManager::instance ( ) [static, protected]
void QSqlDatabaseManager::removeDatabase ( const QString name) [static]

Removes the database connection name from the SQL connection manager.

Atención:
There should be no open queries on the database connection when this function is called, otherwise a resource leak will occur.
void QSqlDatabaseManager::removeDatabase ( QSqlDatabase db) [static]

Removes the database connection db from the SQL connection manager. The QSqlDatabase object is destroyed when it is removed from the manager.

Atención:
The db pointer is not valid after this function has been called.

Documentación de los datos miembro


La documentación para esta clase fue generada a partir del siguiente fichero:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'