1QSqlDriverPlugin(3qt)                                    QSqlDriverPlugin(3qt)
2
3
4

NAME

6       QSqlDriverPlugin - Abstract base for custom QSqlDriver plugins
7

SYNOPSIS

9       #include <qsqldriverplugin.h>
10
11   Public Members
12       QSqlDriverPlugin ()
13       ~QSqlDriverPlugin ()
14       virtual QStringList keys () const = 0
15       virtual QSqlDriver * create ( const QString & key ) = 0
16

DESCRIPTION

18       The QSqlDriverPlugin class provides an abstract base for custom
19       QSqlDriver plugins.
20
21       The SQL driver plugin is a simple plugin interface that makes it easy
22       to create your own SQL driver plugins that can be loaded dynamically by
23       Qt.
24
25       Writing a SQL plugin is achieved by subclassing this base class,
26       reimplementing the pure virtual functions keys() and create(), and
27       exporting the class with the Q_EXPORT_PLUGIN macro. See the SQL plugins
28       that come with Qt for example implementations (in the
29       plugins/src/sqldrivers subdirectory of the source distribution). Read
30       the plugins documentation for more information on plugins.
31
32       See also Plugins.
33

MEMBER FUNCTION DOCUMENTATION

QSqlDriverPlugin::QSqlDriverPlugin ()

36       Constructs a SQL driver plugin. This is invoked automatically by the
37       Q_EXPORT_PLUGIN macro.
38

QSqlDriverPlugin::~QSqlDriverPlugin ()

40       Destroys the SQL driver plugin.
41
42       You never have to call this explicitly. Qt destroys a plugin
43       automatically when it is no longer used.
44

QSqlDriver * QSqlDriverPlugin::create ( const QString & key ) [pure virtual]

46       Creates and returns a QSqlDriver object for the driver key key. The
47       driver key is usually the class name of the required driver.
48
49       See also keys().
50

QStringList QSqlDriverPlugin::keys () const [pure virtual]

52       Returns the list of drivers (keys) this plugin supports.
53
54       These keys are usually the class names of the custom drivers that are
55       implemented in the plugin.
56
57       See also create().
58
59

SEE ALSO

61       http://doc.trolltech.com/qsqldriverplugin.html
62       http://www.trolltech.com/faq/tech.html
63
65       Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
66       license file included in the distribution for a complete license
67       statement.
68

AUTHOR

70       Generated automatically from the source code.
71

BUGS

73       If you find a bug in Qt, please report it as described in
74       http://doc.trolltech.com/bughowto.html.  Good bug reports help us to
75       help you. Thank you.
76
77       The definitive Qt documentation is provided in HTML format; it is
78       located at $QTDIR/doc/html and can be read using Qt Assistant or with a
79       web browser. This man page is provided as a convenience for those users
80       who prefer man pages, although this format is not officially supported
81       by Trolltech.
82
83       If you find errors in this manual page, please report them to qt-
84       bugs@trolltech.com.  Please include the name of the manual page
85       (qsqldriverplugin.3qt) and the Qt version (3.3.8).
86
87
88
89Trolltech AS                    2 February 2007          QSqlDriverPlugin(3qt)
Impressum