KexiDB::ConnectionData Class Reference
#include <connectiondata.h>
Inheritance diagram for KexiDB::ConnectionData:

Detailed Description
Database specific connection data, e.g. host, port.Connection data, once configured, can be later stored for reuse.
Definition at line 160 of file connectiondata.h.
Public Types | |
| typedef QPtrList< ConnectionData > | List |
| typedef QPtrListIterator< ConnectionData > | ListIterator |
Public Member Functions | |
| ConnectionData () | |
| ConnectionData (const ConnectionData &) | |
| ~ConnectionData () | |
| ConnectionData & | operator= (const ConnectionData &cd) |
| void | setFileName (const QString &fn) |
| Set the filename used by the connection. | |
| QString | fileName () const |
| Get the filename used by the connection. | |
| QString | dbPath () const |
| The directory the database file is in. | |
| QString | dbFileName () const |
| The file name (without path) of the database file. | |
| QString | serverInfoString (bool addUser=true) const |
| A user-friendly string for the server. | |
Public Attributes | |
| uint | formatVersion |
Protected Attributes | |
| Private * | priv |
Friends | |
| class | Connection |
Member Typedef Documentation
|
|
Definition at line 163 of file connectiondata.h. |
|
|
Definition at line 164 of file connectiondata.h. |
Constructor & Destructor Documentation
|
|
Definition at line 52 of file connectiondata.cpp. |
|
|
Definition at line 60 of file connectiondata.cpp. |
|
|
Definition at line 68 of file connectiondata.cpp. References priv. |
Member Function Documentation
|
|
The file name (without path) of the database file.
Definition at line 204 of file connectiondata.h. Referenced by KexiStartupHandler::init(), and KexiMigration::KexiMigrate::isSourceAndDestinationDataSourceTheSame(). |
|
|
The directory the database file is in.
Definition at line 197 of file connectiondata.h. Referenced by KexiMigration::KexiMigrate::isSourceAndDestinationDataSourceTheSame(), and SQLiteAdminTools::vacuum(). |
|
|
Get the filename used by the connection. For file-based database engines like SQLite, fileName is used instead hostName and port.
Definition at line 190 of file connectiondata.h. Referenced by KexiMigration::PqxxMigrate::drv_connect(), KexiStartupHandler::init(), KexiMigration::KexiMigrate::isSourceAndDestinationDataSourceTheSame(), KexiDB::toMap(), and KexiMainWindowImpl::slotToolsCompactDatabase(). |
|
|
Definition at line 74 of file connectiondata.cpp. References priv. |
|
|
|
Set the filename used by the connection. For file-based database engines, like SQLite, you should use this function to set the file name of the database to use. fn can be either absolute or relative path to the file. Definition at line 85 of file connectiondata.cpp. References file, KexiDB::ConnectionDataBase::m_dbFileName, KexiDB::ConnectionDataBase::m_dbPath, and KexiDB::ConnectionDataBase::m_fileName. Referenced by KexiMainWindowImpl::createBlankProjectData(), KexiStartupHandler::init(), KexiDB::fromMap(), KexiProjectConnectionData::KexiProjectConnectionData(), KexiMainWindowImpl::openProject(), and KexiMainWindowImpl::slotToolsCompactDatabase(). |
Friends And Related Function Documentation
|
|
Definition at line 232 of file connectiondata.h. |
Member Data Documentation
|
|
Definition at line 226 of file connectiondata.h. |
|
|
Definition at line 229 of file connectiondata.h. Referenced by operator=(), and ~ConnectionData(). |
The documentation for this class was generated from the following files:
