KexiDB::DriverManager Class Reference
#include <drivermanager.h>
Inheritance diagram for KexiDB::DriverManager:

Detailed Description
Database driver management, e.g. finding and loading drivers.
Definition at line 42 of file drivermanager.h.
Public Types | |
| typedef QMap< QString, KService::Ptr > | ServicesMap |
Public Member Functions | |
| DriverManager () | |
| virtual | ~DriverManager () |
| Driver * | driver (const QString &name) |
| const QStringList | driverNames () |
| const KexiDB::Driver::InfoMap | driversInfo () |
| KexiDB::Driver::Info | driverInfo (const QString &name) |
| KService::Ptr | serviceInfo (const QString &name) |
| const ServicesMap & | services () |
| QString | lookupByMime (const QString &mimeType) |
| virtual QString | serverErrorMsg () |
| server error is set if there is error at KService level (useful for debugging) | |
| virtual int | serverResult () |
| virtual QString | serverResultName () |
| QString | possibleProblemsInfoMsg () const |
Protected Member Functions | |
| virtual void | drv_clearServerResult () |
Member Typedef Documentation
|
|
Definition at line 45 of file drivermanager.h. |
Constructor & Destructor Documentation
|
|
Definition at line 275 of file drivermanager.cpp. References KexiDB::DriverManagerInternal::incRefCount(). |
|
|
Definition at line 286 of file drivermanager.cpp. References KexiDB::DriverManagerInternal::decRefCount(), KexiDBDbg, and KexiDB::DriverManagerInternal::m_refCount. |
Member Function Documentation
|
|
Tries to load db driver with named name name. The name is case insensitive.
Definition at line 388 of file drivermanager.cpp. References KexiDB::DriverManagerInternal::driver(), KexiDB::Object::error(), and KexiDB::Object::setError(). Referenced by KexiMigration::KexiMigrate::checkIfDestinationDatabaseOverwritingNeedsAccepting(), KexiMigration::MySQLMigrate::MySQLMigrate(), KexiMigration::KexiMigrate::performImport(), KexiMigration::PqxxMigrate::PqxxMigrate(), and SQLiteAdminTools::vacuum(). |
|
|
Definition at line 343 of file drivermanager.cpp. References KexiDB::DriverManagerInternal::driverInfo(), driversInfo(), KexiDB::Object::error(), and KexiDB::Object::setError(). Referenced by KexiStartupHandler::init(), KexiDB::ConnectionData::serverInfoString(), and KexiProjectSelectorWidget::setProjectSet(). |
|
|
returns list of available drivers names. That drivers can be loaded by first use of driver() method. Definition at line 333 of file drivermanager.cpp. References KexiDB::Object::error(), KexiDB::DriverManagerInternal::lookupDrivers(), and KexiDB::DriverManagerInternal::m_services. |
|
|
returns information list of available drivers. That drivers can be loaded by first use of driver() method. Definition at line 307 of file drivermanager.cpp. References KexiDB::Driver::Info::allowImportingTo, KexiDB::Driver::Info::caption, KexiDB::Driver::Info::comment, KexiDB::Driver::Info::fileBased, KexiDB::Driver::Info::fileDBMimeType, KexiDB::DriverManagerInternal::lookupDrivers(), KexiDB::DriverManagerInternal::m_driversInfo, KexiDB::DriverManagerInternal::m_services, and KexiDB::Driver::Info::name. Referenced by driverInfo(). |
|
|
Clears number of last server operation's result stored as a single integer. Formally, this integer should be set to value that means "NO ERRORS" or "OK". This method is called by clearError(). For reimplementation. By default does nothing.
Reimplemented from KexiDB::Object. Definition at line 411 of file drivermanager.cpp. References KexiDB::DriverManagerInternal::m_serverErrMsg, KexiDB::DriverManagerInternal::m_serverResultName, and KexiDB::DriverManagerInternal::m_serverResultNum. |
|
|
Looks up a drivers list by MIME type of database file. Only file-based database drivers are checked. The lookup is case insensitive.
Definition at line 375 of file drivermanager.cpp. References KexiDB::DriverManagerInternal::lookupDrivers(), KexiDB::DriverManagerInternal::m_services_by_mimetype, and KexiDB::Object::setError(). Referenced by KexiDB::Driver::defaultFileBasedDriverName(). |
|
|
HTML information about possible problems encountered. It's displayed in 'details' section, if an error encountered. Currently it contains a list of incompatible db drivers. Used in KexiStartupHandler::detectDriverForFile(). Definition at line 418 of file drivermanager.cpp. References KexiDB::DriverManagerInternal::possibleProblems. |
|
|
server error is set if there is error at KService level (useful for debugging)
Reimplemented from KexiDB::Object. Definition at line 396 of file drivermanager.cpp. References KexiDB::DriverManagerInternal::m_serverErrMsg. |
|
|
Reimplemented from KexiDB::Object. Definition at line 401 of file drivermanager.cpp. References KexiDB::DriverManagerInternal::m_serverResultNum. |
|
|
Reimplemented from KexiDB::Object. Definition at line 406 of file drivermanager.cpp. References KexiDB::DriverManagerInternal::m_serverResultName. |
|
|
Definition at line 352 of file drivermanager.cpp. References KexiDB::Object::clearError(), ERR_DRIVERMANAGER, KexiDB::DriverManagerInternal::lookupDrivers(), KexiDB::DriverManagerInternal::m_services_lcase, and KexiDB::Object::setError(). |
|
|
Definition at line 368 of file drivermanager.cpp. References KexiDB::DriverManagerInternal::lookupDrivers(), and KexiDB::DriverManagerInternal::m_services. |
The documentation for this class was generated from the following files:
