kexi

KexiDB::ConnectionDataBase Class Reference

Inheritance diagram for KexiDB::ConnectionDataBase:

KexiDB::ConnectionData KexiProjectConnectionData List of all members.

Detailed Description

Definition at line 38 of file connectiondata.h.


Public Member Functions

 ConnectionDataBase ()

Public Attributes

QString caption
QString description
int id
QString driverName
QString hostName
unsigned short int port
bool useLocalSocketFile
QString localSocketFileName
QString password
bool savePassword
QString userName

Protected Attributes

QString m_fileName
QString m_dbPath
QString m_dbFileName

Member Data Documentation

The caption of the connection.

Captions are optional for identyfying given connection by name eg. for users.

Definition at line 49 of file connectiondata.h.

The additional description for the connection.

Definition at line 54 of file connectiondata.h.

Used for identifying a single piece of data in a set.

Optional ID used for identifying a single piece data in a set. ConnectionData::ConstList for example) This is set automatically when needed. By default: -1.

Definition at line 63 of file connectiondata.h.

the name of the driver that should be used to create a connection

Name (unique, not i18n'd) of driver that is used (or should be used) to create a connection. If you pass this ConnectionData object to KexiDB::Driver::createConnection() to create connection, the driverName member will be updated with a valid KexiDB driver name. In other situations the driverName member may be used to store information what driver should be used to perform connection, before we get an appropriate driver object from DriverManager.

Definition at line 76 of file connectiondata.h.

Host name used for the remote connection.

Can be empty if the connection is not remote. If it is empty "localhost" is used.

Definition at line 83 of file connectiondata.h.

Port used for the remote connection.

The default is 0, what means we use don't change the database engine's default port.

Definition at line 90 of file connectiondata.h.

True if local socket file should be used instead of TCP/IP port.

Only meaningful for connections with localhost as server. True by default, so local communication can be optimized, and users can avoid problems with TCP/IP connections disabled by firewalls.

If true, hostName and port will be ignored and localSocketFileName will be used. On MS Windows this option is often ignored and TCP/IP connection to the localhost is performed.

Definition at line 102 of file connectiondata.h.

Name of local (named) socket file.

For local connections only. If empty, it's driver will try to locate existing local socket file. Empty by default.

Definition at line 110 of file connectiondata.h.

Password used for the connection.

Can be empty string or null. If it is empty (equal to ""), empty password is passed to the driver. If it is null (QString::null), no password is passed to the driver. In this case, applications using KexiDB should ask for the password.

Definition at line 118 of file connectiondata.h.

True if password should be saved to a file for the connection.

False by default, in most cases can be set to true when nonempty password has been loaded from a file. For instance, this flag can be then shown for a user as a checkbox.

Definition at line 127 of file connectiondata.h.

Username used for the connection.

Can be empty.

Definition at line 133 of file connectiondata.h.

The filename for file-based databases.

For file-based database engines like SQLite, fileName is used instead hostName and port

Definition at line 142 of file connectiondata.h.

Absolute path to the database file.

Will be empty if database is not file-based

Definition at line 149 of file connectiondata.h.

Filename of the database file.

Will be empty if database is not file-based

Definition at line 156 of file connectiondata.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys