#include <dbproperties.h>
|
| | DatabaseProperties (Connection *conn) |
| |
| | Object (MessageHandler *handler=0) |
| |
| virtual void | setError (int code=ERR_OTHER, const TQString &msg=TQString()) |
| |
| virtual void | setError (const TQString &msg) |
| |
| virtual void | setError (const TQString &title, const TQString &msg) |
| |
| void | setError (KexiDB::Object *obj, const TQString &prependMessage=TQString()) |
| |
| virtual void | setError (KexiDB::Object *obj, int code, const TQString &prependMessage=TQString()) |
| |
| virtual int | askQuestion (const TQString &message, KMessageBox::DialogType dlgType, KMessageBox::ButtonCode defaultResult, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontShowAskAgainName=TQString(), int options=KMessageBox::Notify, MessageHandler *msgHandler=0) |
| |
| virtual void | drv_clearServerResult () |
| |
A set of storable database properties.
- Todo:
- implement TDEConfigBase interface here?
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.
◆ DatabaseProperties()
| DatabaseProperties::DatabaseProperties |
( |
Connection * |
conn | ) |
|
|
protected |
◆ ~DatabaseProperties()
| DatabaseProperties::~DatabaseProperties |
( |
| ) |
|
|
protected |
◆ caption()
| TQString DatabaseProperties::caption |
( |
const TQString & |
name | ) |
|
- Returns
- translated property caption for name. If there's no such property defined for driver, empty string value is returned.
Definition at line 122 of file dbproperties.cpp.
◆ names()
| TQStringList DatabaseProperties::names |
( |
| ) |
|
◆ setCaption()
| bool DatabaseProperties::setCaption |
( |
const TQString & |
name, |
|
|
const TQString & |
caption |
|
) |
| |
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.
◆ setValue()
| bool DatabaseProperties::setValue |
( |
const TQString & |
name, |
|
|
const TQVariant & |
value |
|
) |
| |
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.
- Returns
- true on successful data. Connection
Definition at line 35 of file dbproperties.cpp.
◆ value()
| TQVariant DatabaseProperties::value |
( |
const TQString & |
name | ) |
|
- Returns
- property value for propeName available for this driver. If there's no such property defined for driver, Null TQVariant value is returned.
Definition at line 109 of file dbproperties.cpp.
◆ Connection
◆ m_conn
| TQGuardedPtr<Connection> KexiDB::DatabaseProperties::m_conn |
|
protected |
The documentation for this class was generated from the following files: