Qt 4.8
Public Functions | Public Variables | List of all members
QIBaseDriverPrivate Class Reference

Public Functions

bool isError (const char *msg, QSqlError::ErrorType typ=QSqlError::UnknownError)
 
 QIBaseDriverPrivate (QIBaseDriver *d)
 

Public Variables

QMap< QString, QIBaseEventBuffer * > eventBuffers
 
isc_db_handle ibase
 
QIBaseDriverq
 
ISC_STATUS status [20]
 
QTextCodectc
 
isc_tr_handle trans
 

Detailed Description

Definition at line 311 of file qsql_ibase.cpp.

Constructors and Destructors

◆ QIBaseDriverPrivate()

QIBaseDriverPrivate::QIBaseDriverPrivate ( QIBaseDriver d)
inline

Definition at line 314 of file qsql_ibase.cpp.

314 : q(d), ibase(0), trans(0), tc(0) {}
isc_tr_handle trans
Definition: qsql_ibase.cpp:331
QIBaseDriver * q
Definition: qsql_ibase.cpp:329
isc_db_handle ibase
Definition: qsql_ibase.cpp:330

Functions

◆ isError()

bool QIBaseDriverPrivate::isError ( const char *  msg,
QSqlError::ErrorType  typ = QSqlError::UnknownError 
)
inline

Definition at line 316 of file qsql_ibase.cpp.

Referenced by QIBaseDriver::beginTransaction(), QIBaseDriver::commitTransaction(), QIBaseDriver::open(), and QIBaseDriver::rollbackTransaction().

317  {
318  QString imsg;
319  ISC_LONG sqlcode;
320  if (!getIBaseError(imsg, status, sqlcode, tc))
321  return false;
322 
323  q->setLastError(QSqlError(QCoreApplication::translate("QIBaseDriver", msg),
324  imsg, typ, int(sqlcode)));
325  return true;
326  }
The QSqlError class provides SQL database error information.
Definition: qsqlerror.h:53
QIBaseDriver * q
Definition: qsql_ibase.cpp:329
The QString class provides a Unicode character string.
Definition: qstring.h:83
static QString translate(const char *context, const char *key, const char *disambiguation=0, Encoding encoding=CodecForTr)
static bool getIBaseError(QString &msg, ISC_STATUS *status, ISC_LONG &sqlcode, QTextCodec *tc)
Definition: qsql_ibase.cpp:73
ISC_STATUS status[20]
Definition: qsql_ibase.cpp:333
virtual void setLastError(const QSqlError &e)
This function is used to set the value of the last error, error, that occurred on the database...
Definition: qsqldriver.cpp:350

Properties

◆ eventBuffers

QMap<QString, QIBaseEventBuffer*> QIBaseDriverPrivate::eventBuffers

◆ ibase

isc_db_handle QIBaseDriverPrivate::ibase

◆ q

QIBaseDriver* QIBaseDriverPrivate::q

Definition at line 329 of file qsql_ibase.cpp.

◆ status

ISC_STATUS QIBaseDriverPrivate::status[20]

◆ tc

QTextCodec* QIBaseDriverPrivate::tc

Definition at line 332 of file qsql_ibase.cpp.

Referenced by QIBaseDriver::open().

◆ trans

isc_tr_handle QIBaseDriverPrivate::trans

The documentation for this class was generated from the following file: