#include <object.h>
|
| | 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 () |
| |
Prototype of KexiDB object, handles result of last operation.
Definition at line 34 of file object.h.
◆ Object()
◆ ~Object()
◆ askQuestion()
| int Object::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 |
|
) |
| |
|
protectedvirtual |
◆ clearError()
| void Object::clearError |
( |
| ) |
|
|
virtual |
◆ debugError()
| void Object::debugError |
( |
| ) |
|
◆ drv_clearServerResult()
| virtual void KexiDB::Object::drv_clearServerResult |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ error()
| bool KexiDB::Object::error |
( |
| ) |
const |
|
inline |
- Returns
- true if there was error during last operation on the object.
Definition at line 38 of file object.h.
◆ errorMsg()
| const TQString & KexiDB::Object::errorMsg |
( |
| ) |
const |
|
inline |
- Returns
- (localized) error message if there was error during last operation on the object, else: 0.
Definition at line 42 of file object.h.
◆ errorNum()
| int KexiDB::Object::errorNum |
( |
| ) |
const |
|
inline |
- Returns
- error number of if there was error during last operation on the object, else: 0.
Definition at line 46 of file object.h.
◆ msgTitle()
| TQString KexiDB::Object::msgTitle |
( |
| ) |
const |
|
inline |
- Returns
- message title that sometimes is provided and prepended to the main warning/error message. Used by MessageHandler.
Definition at line 100 of file object.h.
◆ previousServerResult()
| int KexiDB::Object::previousServerResult |
( |
| ) |
const |
|
inline |
- Returns
- previous server result number, for error displaying purposes.
Definition at line 49 of file object.h.
◆ previousServerResultName()
| TQString KexiDB::Object::previousServerResultName |
( |
| ) |
const |
|
inline |
◆ recentSQLString()
| const TQString KexiDB::Object::recentSQLString |
( |
| ) |
const |
|
inline |
- Returns
- sql string of actually executed SQL statement, usually using drv_executeSQL(). If there was error during executing SQL statement, before, that string is returned instead.
Definition at line 105 of file object.h.
◆ serverErrorMsg()
| TQString Object::serverErrorMsg |
( |
| ) |
|
|
virtual |
◆ serverResult()
| int Object::serverResult |
( |
| ) |
|
|
virtual |
◆ serverResultName()
| TQString Object::serverResultName |
( |
| ) |
|
|
virtual |
◆ setError() [1/5]
| void KexiDB::Object::setError |
( |
const TQString & |
msg | ) |
|
|
protectedvirtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Also sets title.
Definition at line 69 of file object.cpp.
◆ setError() [2/5]
| void Object::setError |
( |
const TQString & |
title, |
|
|
const TQString & |
msg |
|
) |
| |
|
protectedvirtual |
◆ setError() [3/5]
| void KexiDB::Object::setError |
( |
int |
code = ERR_OTHER, |
|
|
const TQString & |
msg = TQString() |
|
) |
| |
|
protectedvirtual |
Sets the (localized) error code to code and message to msg. You have to set at least nonzero error code code, although it is also adviced to set descriptive message msg. Eventually, if you omit all parameters, ERR_OTHER code will be set and default message for this will be set. Use this in KexiDB::Object subclasses to informa the world about your object's state.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Sets error code to ERR_OTHER. Use this if you don't care about setting error code.
Definition at line 53 of file object.cpp.
◆ setError() [4/5]
| void Object::setError |
( |
KexiDB::Object * |
obj, |
|
|
const TQString & |
prependMessage = TQString() |
|
) |
| |
|
protected |
◆ setError() [5/5]
| void Object::setError |
( |
KexiDB::Object * |
obj, |
|
|
int |
code, |
|
|
const TQString & |
prependMessage = TQString() |
|
) |
| |
|
protectedvirtual |
Copies the (localized) error message and code from other KexiDB::Object with custom error code.
Definition at line 96 of file object.cpp.
◆ MessageTitle
◆ m_errMsg
| TQString KexiDB::Object::m_errMsg |
|
protected |
◆ m_errorSql
| TQString KexiDB::Object::m_errorSql |
|
protected |
◆ m_serverErrorMsg
| TQString KexiDB::Object::m_serverErrorMsg |
|
protected |
◆ m_serverResult
| int KexiDB::Object::m_serverResult |
|
protected |
◆ m_serverResultName
| TQString KexiDB::Object::m_serverResultName |
|
protected |
◆ m_sql
| TQString KexiDB::Object::m_sql |
|
protected |
used to store of actually executed SQL statement
Definition at line 161 of file object.h.
The documentation for this class was generated from the following files:
|