QT_BEGIN_NAMESPACE
-struct Q_NETWORK_EXPORT QBearerEngineFactoryInterface : public QFactoryInterface
-{
- virtual QBearerEngine *create(const QString &key) const = 0;
-};
-
#define QBearerEngineFactoryInterface_iid "org.qt-project.Qt.QBearerEngineFactoryInterface"
-Q_DECLARE_INTERFACE(QBearerEngineFactoryInterface, QBearerEngineFactoryInterface_iid)
-class Q_NETWORK_EXPORT QBearerEnginePlugin : public QObject, public QBearerEngineFactoryInterface
+class Q_NETWORK_EXPORT QBearerEnginePlugin : public QObject
{
Q_OBJECT
- Q_INTERFACES(QBearerEngineFactoryInterface:QFactoryInterface)
-
public:
explicit QBearerEnginePlugin(QObject *parent = 0);
virtual ~QBearerEnginePlugin();
- virtual QStringList keys() const = 0;
virtual QBearerEngine *create(const QString &key) const = 0;
};
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QBearerEngineFactoryInterface" FILE "blackberry.json")
public:
- QStringList keys() const;
QBearerEngine *create(const QString &key) const;
};
-QStringList QBBEnginePlugin::keys() const
-{
- return QStringList() << QStringLiteral("blackberry");
-}
-
QBearerEngine *QBBEnginePlugin::create(const QString &key) const
{
if (key == QStringLiteral("blackberry"))
QConnmanEnginePlugin();
~QConnmanEnginePlugin();
- QStringList keys() const;
QBearerEngine *create(const QString &key) const;
};
{
}
-QStringList QConnmanEnginePlugin::keys() const
-{
- return QStringList() << QLatin1String("connman");
-}
-
QBearerEngine *QConnmanEnginePlugin::create(const QString &key) const
{
if (key == QLatin1String("connman")) {
QCoreWlanEnginePlugin();
~QCoreWlanEnginePlugin();
- QStringList keys() const;
QBearerEngine *create(const QString &key) const;
};
{
}
-QStringList QCoreWlanEnginePlugin::keys() const
-{
- return QStringList() << QLatin1String("corewlan");
-}
-
QBearerEngine *QCoreWlanEnginePlugin::create(const QString &key) const
{
if (key == QLatin1String("corewlan"))
QGenericEnginePlugin();
~QGenericEnginePlugin();
- QStringList keys() const;
QBearerEngine *create(const QString &key) const;
};
{
}
-QStringList QGenericEnginePlugin::keys() const
-{
- return QStringList() << QLatin1String("generic");
-}
-
QBearerEngine *QGenericEnginePlugin::create(const QString &key) const
{
if (key == QLatin1String("generic"))
QNativeWifiEnginePlugin();
~QNativeWifiEnginePlugin();
- QStringList keys() const;
QBearerEngine *create(const QString &key) const;
};
{
}
-QStringList QNativeWifiEnginePlugin::keys() const
-{
- return QStringList() << QLatin1String("nativewifi");
-}
-
QBearerEngine *QNativeWifiEnginePlugin::create(const QString &key) const
{
if (key != QLatin1String("nativewifi"))
QNetworkManagerEnginePlugin();
~QNetworkManagerEnginePlugin();
- QStringList keys() const;
QBearerEngine *create(const QString &key) const;
};
{
}
-QStringList QNetworkManagerEnginePlugin::keys() const
-{
- return QStringList() << QLatin1String("networkmanager");
-}
-
QBearerEngine *QNetworkManagerEnginePlugin::create(const QString &key) const
{
if (key == QLatin1String("networkmanager")) {
QNlaEnginePlugin();
~QNlaEnginePlugin();
- QStringList keys() const;
QBearerEngine *create(const QString &key) const;
};
{
}
-QStringList QNlaEnginePlugin::keys() const
-{
- return QStringList() << QLatin1String("nla");
-}
-
QBearerEngine *QNlaEnginePlugin::create(const QString &key) const
{
if (key == QLatin1String("nla"))