Wexus2 0.20
wexus::OpenDatabases Class Reference

#include <OpenDatabases.h>

List of all members.

Classes

class  Handle

Public Member Functions

 ~OpenDatabases ()
 destructor

Static Public Member Functions

static OpenDatabasesthreadInstance (void)
static QSqlDatabase & database (const QString &filename)
 uses threadInstance

Protected Member Functions

 OpenDatabases (void)
 constructor, called by threadInstance when needed

Detailed Description

A per-thread class that managers all the open QSqlDatabase connections held by a thread.

We need to use something like this because QSqlDatabase objects can only be used in the threads that created them, hense each thread needs its own set.

Author:
Aleksander Demko

Member Function Documentation

static OpenDatabases* wexus::OpenDatabases::threadInstance ( void  ) [static]

Returns the "static-like" instance for this thread.

Author:
Aleksander Demko

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Enumerator