Qt 4.8
|
#include "qsql_ibase.h"
#include <qcoreapplication.h>
#include <qdatetime.h>
#include <qvariant.h>
#include <qsqlerror.h>
#include <qsqlfield.h>
#include <qsqlindex.h>
#include <qsqlquery.h>
#include <qlist.h>
#include <qvector.h>
#include <qtextcodec.h>
#include <qmutex.h>
#include <stdlib.h>
#include <limits.h>
#include <math.h>
#include <qdebug.h>
#include <QVarLengthArray>
Go to the source code of this file.
Classes | |
class | QIBaseDriverPrivate |
struct | QIBaseEventBuffer |
class | QIBaseResultPrivate |
Macros | |
#define | FBVERSION SQL_DIALECT_V6 |
#define | SQLDA_CURRENT_VERSION SQLDA_VERSION1 |
Typedefs | |
typedef QMap< void *, QIBaseDriver * > | QIBaseBufferDriverMap |
Enumerations | |
enum | { QIBaseChunkSize = SHRT_MAX / 2 } |
Functions | |
static char * | createArrayBuffer (char *buffer, const QList< QVariant > &list, QVariant::Type type, short curDim, ISC_ARRAY_DESC *arrayDesc, QString &error, QTextCodec *tc) |
static void | createDA (XSQLDA *&sqlda) |
static void | delDA (XSQLDA *&sqlda) |
static QByteArray | encodeString (QTextCodec *tc, const QString &str) |
static void | enlargeDA (XSQLDA *&sqlda, int n) |
template<typename T > | |
static char * | fillList (char *buffer, const QList< QVariant > &list, T *=0) |
template<> | |
char * | fillList< float > (char *buffer, const QList< QVariant > &list, float *) |
static QDate | fromDate (char *buffer) |
static QTime | fromTime (char *buffer) |
static QDateTime | fromTimeStamp (char *buffer) |
static bool | getIBaseError (QString &msg, ISC_STATUS *status, ISC_LONG &sqlcode, QTextCodec *tc) |
static void | initDA (XSQLDA *sqlda) |
Q_GLOBAL_STATIC (QMutex, qMutex) | |
static isc_callback | qEventCallback (char *result, short length, char *updated) |
static char * | qFillBufferWithString (char *buffer, const QString &string, short buflen, bool varying, bool array, QTextCodec *tc) |
static void | qFreeEventBuffer (QIBaseEventBuffer *eBuffer) |
static QVariant::Type | qIBaseTypeName (int iType, bool hasScale) |
static QVariant::Type | qIBaseTypeName2 (int iType, bool hasScale) |
static char * | readArrayBuffer (QList< QVariant > &list, char *buffer, short curDim, short *numElements, ISC_ARRAY_DESC *arrayDesc, QTextCodec *tc) |
static ISC_DATE | toDate (const QDate &t) |
template<typename T > | |
static QList< QVariant > | toList (char **buf, int count, T *=0) |
template<> | |
QList< QVariant > | toList< long > (char **buf, int count, long *) |
static ISC_TIME | toTime (const QTime &t) |
static ISC_TIMESTAMP | toTimeStamp (const QDateTime &dt) |
#define FBVERSION SQL_DIALECT_V6 |
Definition at line 62 of file qsql_ibase.cpp.
Referenced by QIBaseResult::exec(), QIBaseResult::gotoNext(), and QIBaseResult::prepare().
#define SQLDA_CURRENT_VERSION SQLDA_VERSION1 |
Definition at line 65 of file qsql_ibase.cpp.
Referenced by createDA(), and enlargeDA().
typedef QMap<void *, QIBaseDriver *> QIBaseBufferDriverMap |
Definition at line 337 of file qsql_ibase.cpp.
anonymous enum |
Enumerator | |
---|---|
QIBaseChunkSize |
Definition at line 68 of file qsql_ibase.cpp.
|
static |
Definition at line 675 of file qsql_ibase.cpp.
Referenced by QIBaseResultPrivate::writeArray().
|
static |
|
static |
Definition at line 155 of file qsql_ibase.cpp.
Referenced by QIBaseResultPrivate::cleanup(), and QIBaseResult::exec().
|
static |
Definition at line 289 of file qsql_ibase.cpp.
Referenced by QKeySequence::operator>=(), QIBaseResult::prepare(), and qFillBufferWithString().
|
static |
|
static |
Definition at line 625 of file qsql_ibase.cpp.
Definition at line 637 of file qsql_ibase.cpp.
Referenced by createArrayBuffer().
|
static |
Definition at line 277 of file qsql_ibase.cpp.
Referenced by QIBaseResult::gotoNext(), and readArrayBuffer().
|
static |
Definition at line 258 of file qsql_ibase.cpp.
Referenced by QIBaseResult::gotoNext(), and readArrayBuffer().
|
static |
Definition at line 238 of file qsql_ibase.cpp.
Referenced by QIBaseResult::gotoNext(), and readArrayBuffer().
|
static |
Definition at line 73 of file qsql_ibase.cpp.
Referenced by QIBaseDriverPrivate::isError(), and QIBaseResultPrivate::isError().
|
static |
Q_GLOBAL_STATIC | ( | QMutex | , |
qMutex | |||
) |
|
static |
Definition at line 1727 of file qsql_ibase.cpp.
Referenced by QIBaseDriver::handle(), QIBaseDriver::qHandleEventNotification(), and QIBaseDriver::subscribeToNotificationImplementation().
|
static |
Definition at line 650 of file qsql_ibase.cpp.
Referenced by createArrayBuffer(), and QIBaseResult::exec().
|
static |
Definition at line 341 of file qsql_ibase.cpp.
Referenced by QIBaseDriver::close(), QIBaseDriver::subscribeToNotificationImplementation(), and QIBaseDriver::unsubscribeFromNotificationImplementation().
|
static |
Definition at line 167 of file qsql_ibase.cpp.
Referenced by QIBaseDriver::primaryIndex(), QIBaseDriver::record(), and QIBaseResultPrivate::writeArray().
|
static |
Definition at line 199 of file qsql_ibase.cpp.
Referenced by QIBaseResult::gotoNext(), and QIBaseResult::record().
|
static |
Definition at line 496 of file qsql_ibase.cpp.
Referenced by QIBaseResultPrivate::fetchArray().
|
static |
Definition at line 268 of file qsql_ibase.cpp.
Referenced by createArrayBuffer(), QIBaseResult::exec(), and QVariant::swap().
Definition at line 472 of file qsql_ibase.cpp.
Referenced by Maemo::appendVariantToDBusMessage(), QEventDispatcherWin32::createInternalHwnd(), operator<<(), QVector< QPoint >::operator<<(), QTreeModel::sortItems(), and QVariant::swap().
|
static |
Definition at line 252 of file qsql_ibase.cpp.
Referenced by createArrayBuffer(), QIBaseResult::exec(), and QVariant::swap().
|
static |
Definition at line 228 of file qsql_ibase.cpp.
Referenced by createArrayBuffer(), and QIBaseResult::exec().