#include "qsqldriverplugin.h"
 
QT_BEGIN_NAMESPACE
 
/*!
    \class QSqlDriverPlugin
    \brief The QSqlDriverPlugin class provides an abstract base for custom QSqlDriver plugins.
\QSqlDriverPlugin
\摘要:该类为定制的QSqlDriver插件提供一个抽象的基类
    \ingroup plugins
    \inmodule QtSql
\内群插件
\嵌入式QtSql
    The SQL driver plugin is a simple plugin interface that makes it
    easy to create your own SQL driver plugins that can be loaded
    dynamically by Qt.
\sql驱动插件是一个简单的插件接口,它使你容易地创建你自己的sql驱动插件,并且通过qt动态的加载
 
    Writing a SQL plugin is achieved by subclassing this base class,
    reimplementing the pure virtual functions keys() and create(), and
    exporting the class with the Q_EXPORT_PLUGIN2() macro. See the SQL
    plugins that come with Qt for example implementations (in the
    \c{plugins/src/sqldrivers} subdirectory of the source
    distribution).
\写一个sql插件是通过子类化这个基类来获得,再次实现纯虚函数keys()create(),使用宏定义Q_EXPORT_PLUGIN2()输出类。看sql插件,同时看qt例子(在\c{plugins/src/sqldrivers}
 
\sa {How to Create Qt Plugins}
\怎样创建qt插件
*/
 
/*!
    \fn QStringList QSqlDriverPlugin::keys() const
 
    Returns the list of drivers (keys) this plugin supports.
 
    These keys are usually the class names of the custom drivers that
    are implemented in the plugin.
 
\sa create()
\该函数返回插件支持的驱动;这些keys是在插件中实现的定制驱动的类名。
*/
 
/*!
    \fn QSqlDriver *QSqlDriverPlugin::create(const QString& key)
 
    Creates and returns a QSqlDriver object for the driver called \a
    key. The driver key is usually the class name of the required
    driver. Keys are case sensitive.
 
\sa keys()
\为叫做key的驱动,创建并返回一个QSqlDriver对象。该驱动的key通常是要求的驱动的类名。Keys是区分大小写的。
*/
 
/*!
    Constructs a SQL driver plugin and sets the parent to \a parent.
This is invoked automatically by the Q_EXPORT_PLUGIN2() macro.
\构造一个sql驱动插件,并设置父系到一个父系(继承)。这被宏Q_EXPORT_PLUGIN2()自动唤醒。
*/
 
QSqlDriverPlugin::QSqlDriverPlugin(QObject *parent)
    : QObject(parent)
{
}
 
/*!
    Destroys the SQL driver plugin.
 
    You never have to call this explicitly. Qt destroys a plugin
    automatically when it is no longer used.
\析构
你不必明确的调用这个析构函数。当他不再使用时,Qt自动毁掉一个插件。
*/
QSqlDriverPlugin::~QSqlDriverPlugin()
{
}
 
QT_END_NAMESPACE