WARNING: USE THIS SOFTWARE AT YOUR OWN RISK! THIS IS EXPERIMENTAL SOFTWARE NOT INTENDED FOR PRODUCTION USE! Zuble is currently an early stage prototype. As such Zuble is minimally tested and inherently unstable. It is provided for experimental, development, and demonstration purposes only. Zuble QML Types   |  Zuble C++ Classes   |  Zuble Overview
Zuble  0.1
Zuble Framework C++/QML extension API
Public Member Functions | Properties | Private Attributes | List of all members
Zbl::ZsqlError Class Reference

A Javascript wrapper for QSqlError objects. (database sprocket) More...

#include <ZsqlError.h>

Inheritance diagram for Zbl::ZsqlError:
Inheritance graph
[legend]
Collaboration diagram for Zbl::ZsqlError:
Collaboration graph
[legend]

Public Member Functions

 ZsqlError (QObject *parent=0)
 
Q_INVOKABLE bool equals (QObject *other)
 Returns true if specified object is a ZsqlError object with the same value as this object. More...
 
QString getText ()
 
QString getDriverText ()
 
QString getDatabaseText ()
 
QString getErrorType ()
 
int getErrorNumber ()
 
bool isValid ()
 
ZsqlErroroperator= (const ZsqlError &other)
 
ZsqlErroroperator= (const QSqlError &sqlError)
 
bool operator== (const ZsqlError &other) const
 
bool operator== (const QSqlError &other) const
 

Properties

bool valid
 Returns true if an error is set, false otherwise. More...
 
int number
 Returns both database and driver error message text concatenated into a single string. More...
 
QString text
 Returns both database and driver error message text concatenated into a single string. More...
 
QString driverText
 Returns driver error message text. More...
 
QString databaseText
 Returns database error message text. More...
 
QString errorType
 Returns database error type. More...
 

Private Attributes

QSqlError m_error
 

Detailed Description

A Javascript wrapper for QSqlError objects. (database sprocket)

Definition at line 40 of file ZsqlError.h.

Constructor & Destructor Documentation

◆ ZsqlError()

Zbl::ZsqlError::ZsqlError ( QObject *  parent = 0)
explicit

Definition at line 30 of file ZsqlError.cpp.

Member Function Documentation

◆ equals()

bool Zbl::ZsqlError::equals ( QObject *  other)

Returns true if specified object is a ZsqlError object with the same value as this object.

Returns
true if objects are equal, false otherwise

Definition at line 105 of file ZsqlError.cpp.

◆ getDatabaseText()

QString Zbl::ZsqlError::getDatabaseText ( )

Definition at line 45 of file ZsqlError.cpp.

◆ getDriverText()

QString Zbl::ZsqlError::getDriverText ( )

Definition at line 40 of file ZsqlError.cpp.

◆ getErrorNumber()

int Zbl::ZsqlError::getErrorNumber ( )

Definition at line 71 of file ZsqlError.cpp.

◆ getErrorType()

QString Zbl::ZsqlError::getErrorType ( )

Definition at line 50 of file ZsqlError.cpp.

◆ getText()

QString Zbl::ZsqlError::getText ( )

Definition at line 35 of file ZsqlError.cpp.

◆ isValid()

bool Zbl::ZsqlError::isValid ( )

Definition at line 77 of file ZsqlError.cpp.

◆ operator=() [1/2]

ZsqlError & Zbl::ZsqlError::operator= ( const ZsqlError other)

Definition at line 83 of file ZsqlError.cpp.

◆ operator=() [2/2]

ZsqlError & Zbl::ZsqlError::operator= ( const QSqlError &  sqlError)

Definition at line 89 of file ZsqlError.cpp.

◆ operator==() [1/2]

bool Zbl::ZsqlError::operator== ( const ZsqlError other) const

Definition at line 95 of file ZsqlError.cpp.

◆ operator==() [2/2]

bool Zbl::ZsqlError::operator== ( const QSqlError &  other) const

Definition at line 100 of file ZsqlError.cpp.

Member Data Documentation

◆ m_error

QSqlError Zbl::ZsqlError::m_error
private

Property Documentation

◆ databaseText

QString Zbl::ZsqlError::databaseText
read

Returns database error message text.

Returns
error message

Definition at line 81 of file ZsqlError.h.

◆ driverText

QString Zbl::ZsqlError::driverText
read

Returns driver error message text.

Returns
error message

Definition at line 74 of file ZsqlError.h.

◆ errorType

QString Zbl::ZsqlError::errorType
read

Returns database error type.

Returns
error message

Definition at line 88 of file ZsqlError.h.

◆ number

int Zbl::ZsqlError::number
read

Returns both database and driver error message text concatenated into a single string.

Returns
error message

Definition at line 59 of file ZsqlError.h.

◆ text

QString Zbl::ZsqlError::text
read

Returns both database and driver error message text concatenated into a single string.

Returns
error message

Definition at line 67 of file ZsqlError.h.

◆ valid

bool Zbl::ZsqlError::valid
read

Returns true if an error is set, false otherwise.

Returns
true if an error condition exists, false if no error occurred

Definition at line 51 of file ZsqlError.h.


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