KexiDB::DatabaseProperties Class Reference
#include <dbproperties.h>
Inheritance diagram for KexiDB::DatabaseProperties:

Detailed Description
A set of storable database properties.This is a convenience class that allows to store global dabatase properties without a need for creating and maintain custom table. DatabaseProperties object is accessible only using KexiDB::Connection::databaseProperties() method.
Definition at line 34 of file dbproperties.h.
Public Member Functions | |
| bool | setValue (const QString &name, const QVariant &value) |
| bool | setCaption (const QString &name, const QString &caption) |
| QVariant | value (const QString &name) |
| QString | caption (const QString &name) |
| QStringList | names () |
Protected Member Functions | |
| DatabaseProperties (Connection *conn) | |
| ~DatabaseProperties () | |
Protected Attributes | |
| QGuardedPtr< Connection > | m_conn |
Friends | |
| class | Connection |
Constructor & Destructor Documentation
|
|
Definition at line 25 of file dbproperties.cpp. |
|
|
Definition at line 31 of file dbproperties.cpp. |
Member Function Documentation
|
|
Definition at line 122 of file dbproperties.cpp. References m_conn, and KexiDB::Object::setError(). |
|
|
Definition at line 137 of file dbproperties.cpp. References m_conn, and KexiDB::Object::setError(). |
|
||||||||||||
|
Sets caption for for property name. Usually it shouldn't be translated: trnaslation can be performed before displaying. Definition at line 71 of file dbproperties.cpp. References m_conn, and KexiDB::Object::setError(). Referenced by KexiProject::create(), and KexiProject::createInternalStructures(). |
|
||||||||||||
|
Sets value for property name. Optional caption can be also set. If there's no such property defined, it will be added. Existing value will be overwritten. Note that to execute this method, database must be opened in read-write mode.
Definition at line 35 of file dbproperties.cpp. References m_conn, and KexiDB::Object::setError(). Referenced by KexiProject::create(), and KexiProject::createInternalStructures(). |
|
|
Definition at line 109 of file dbproperties.cpp. References ERR_NO_DB_PROPERTY, and m_conn. Referenced by KexiProject::createInternalStructures(), and KexiProject::initProject(). |
Friends And Related Function Documentation
|
|
Definition at line 63 of file dbproperties.h. |
Member Data Documentation
|
|
Definition at line 62 of file dbproperties.h. Referenced by caption(), names(), setCaption(), setValue(), and value(). |
The documentation for this class was generated from the following files:
