Wexus2 0.20
|
#include <OpenDatabases.h>
Classes | |
class | Handle |
Public Member Functions | |
~OpenDatabases () | |
destructor | |
Static Public Member Functions | |
static OpenDatabases * | threadInstance (void) |
static QSqlDatabase & | database (const QString &filename) |
uses threadInstance | |
Protected Member Functions | |
OpenDatabases (void) | |
constructor, called by threadInstance when needed |
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.
static OpenDatabases* wexus::OpenDatabases::threadInstance | ( | void | ) | [static] |
Returns the "static-like" instance for this thread.