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

Public Functions

 QSqlQueryPrivate (QSqlResult *result)
 
 ~QSqlQueryPrivate ()
 

Static Public Functions

static QSqlQueryPrivateshared_null ()
 

Public Variables

QAtomicInt ref
 
QSqlResultsqlResult
 

Detailed Description

Definition at line 57 of file qsqlquery.cpp.

Constructors and Destructors

◆ QSqlQueryPrivate()

QSqlQueryPrivate::QSqlQueryPrivate ( QSqlResult result)
Warning
This function is not part of the public interface.

Definition at line 82 of file qsqlquery.cpp.

Referenced by QSqlQuery::QSqlQuery().

83  : ref(1), sqlResult(result)
84 {
85  if (!sqlResult)
86  sqlResult = nullResult();
87 }
QSqlResult * sqlResult
Definition: qsqlquery.cpp:63
QAtomicInt ref
Definition: qsqlquery.cpp:62

◆ ~QSqlQueryPrivate()

QSqlQueryPrivate::~QSqlQueryPrivate ( )

Definition at line 89 of file qsqlquery.cpp.

90 {
91  QSqlResult *nr = nullResult();
92  if (!nr || sqlResult == nr)
93  return;
94  delete sqlResult;
95 }
QSqlResult * sqlResult
Definition: qsqlquery.cpp:63
The QSqlResult class provides an abstract interface for accessing data from specific SQL databases...
Definition: qsqlresult.h:63

Functions

◆ shared_null()

static QSqlQueryPrivate* QSqlQueryPrivate::shared_null ( )
static

Referenced by QSqlQuery::QSqlQuery().

Properties

◆ ref

QAtomicInt QSqlQueryPrivate::ref

Definition at line 62 of file qsqlquery.cpp.

Referenced by Q_GLOBAL_STATIC_WITH_ARGS().

◆ sqlResult

QSqlResult* QSqlQueryPrivate::sqlResult

Definition at line 63 of file qsqlquery.cpp.

Referenced by QSqlQueryPrivate(), and ~QSqlQueryPrivate().


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