Use new plugin system for network bearer plugins.
Change-Id: Ic4a28d379033518f75d0e3e449ddf012109ed9ea Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
This commit is contained in:
parent
b1995f2c96
commit
5f320e2f97
3
src/plugins/bearer/connman/connman.json
Normal file
3
src/plugins/bearer/connman/connman.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"Keys": [ "connman" ]
|
||||
}
|
@ -15,6 +15,8 @@ SOURCES += main.cpp \
|
||||
qconnmanengine.cpp \
|
||||
../qnetworksession_impl.cpp
|
||||
|
||||
OTHER_FILES += connman.json
|
||||
|
||||
DESTDIR = $$QT.network.plugins/bearer
|
||||
target.path += $$[QT_INSTALL_PLUGINS]/bearer
|
||||
INSTALLS += target
|
||||
|
@ -51,6 +51,9 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
class QConnmanEnginePlugin : public QBearerEnginePlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QBearerEngineFactoryInterface" FILE "connman.json")
|
||||
|
||||
public:
|
||||
QConnmanEnginePlugin();
|
||||
~QConnmanEnginePlugin();
|
||||
@ -84,10 +87,9 @@ QBearerEngine *QConnmanEnginePlugin::create(const QString &key) const
|
||||
return 0;
|
||||
}
|
||||
|
||||
Q_EXPORT_STATIC_PLUGIN(QConnmanEnginePlugin)
|
||||
Q_EXPORT_PLUGIN2(qconnmanbearer, QConnmanEnginePlugin)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "main.moc"
|
||||
|
||||
#endif
|
||||
#endif // QT_NO_BEARERMANAGEMENT
|
||||
|
3
src/plugins/bearer/corewlan/corewlan.json
Normal file
3
src/plugins/bearer/corewlan/corewlan.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"Keys": [ "corewlan" ]
|
||||
}
|
@ -19,6 +19,8 @@ SOURCES += main.cpp \
|
||||
|
||||
OBJECTIVE_SOURCES += qcorewlanengine.mm
|
||||
|
||||
OTHER_FILES += corewlan.json
|
||||
|
||||
DESTDIR = $$QT.network.plugins/bearer
|
||||
target.path += $$[QT_INSTALL_PLUGINS]/bearer
|
||||
INSTALLS += target
|
||||
|
@ -51,6 +51,9 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
class QCoreWlanEnginePlugin : public QBearerEnginePlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QBearerEngineFactoryInterface" FILE "corewlan.json")
|
||||
|
||||
public:
|
||||
QCoreWlanEnginePlugin();
|
||||
~QCoreWlanEnginePlugin();
|
||||
@ -80,9 +83,8 @@ QBearerEngine *QCoreWlanEnginePlugin::create(const QString &key) const
|
||||
return 0;
|
||||
}
|
||||
|
||||
Q_EXPORT_STATIC_PLUGIN(QCoreWlanEnginePlugin)
|
||||
Q_EXPORT_PLUGIN2(qcorewlanbearer, QCoreWlanEnginePlugin)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "main.moc"
|
||||
|
||||
#endif // QT_NO_BEARERMANAGEMENT
|
||||
|
3
src/plugins/bearer/generic/generic.json
Normal file
3
src/plugins/bearer/generic/generic.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"Keys": [ "generic" ]
|
||||
}
|
@ -11,6 +11,8 @@ SOURCES += qgenericengine.cpp \
|
||||
../qnetworksession_impl.cpp \
|
||||
main.cpp
|
||||
|
||||
OTHER_FILES += generic.json
|
||||
|
||||
DESTDIR = $$QT.network.plugins/bearer
|
||||
target.path += $$[QT_INSTALL_PLUGINS]/bearer
|
||||
INSTALLS += target
|
||||
|
@ -51,6 +51,9 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
class QGenericEnginePlugin : public QBearerEnginePlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QBearerEngineFactoryInterface" FILE "generic.json")
|
||||
|
||||
public:
|
||||
QGenericEnginePlugin();
|
||||
~QGenericEnginePlugin();
|
||||
@ -80,9 +83,8 @@ QBearerEngine *QGenericEnginePlugin::create(const QString &key) const
|
||||
return 0;
|
||||
}
|
||||
|
||||
Q_EXPORT_STATIC_PLUGIN(QGenericEnginePlugin)
|
||||
Q_EXPORT_PLUGIN2(qgenericbearer, QGenericEnginePlugin)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "main.moc"
|
||||
|
||||
#endif // QT_NO_BEARERMANAGEMENT
|
||||
|
@ -92,6 +92,9 @@ static void resolveLibrary()
|
||||
|
||||
class QNativeWifiEnginePlugin : public QBearerEnginePlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QBearerEngineFactoryInterface" FILE "nativewifi.json")
|
||||
|
||||
public:
|
||||
QNativeWifiEnginePlugin();
|
||||
~QNativeWifiEnginePlugin();
|
||||
@ -135,9 +138,8 @@ QBearerEngine *QNativeWifiEnginePlugin::create(const QString &key) const
|
||||
return engine;
|
||||
}
|
||||
|
||||
Q_EXPORT_STATIC_PLUGIN(QNativeWifiEnginePlugin)
|
||||
Q_EXPORT_PLUGIN2(qnativewifibearer, QNativeWifiEnginePlugin)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "main.moc"
|
||||
|
||||
#endif // QT_NO_BEARERMANAGEMENT
|
||||
|
3
src/plugins/bearer/nativewifi/nativewifi.json
Normal file
3
src/plugins/bearer/nativewifi/nativewifi.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"Keys": [ "nativewifi" ]
|
||||
}
|
@ -12,6 +12,8 @@ SOURCES += main.cpp \
|
||||
qnativewifiengine.cpp \
|
||||
../qnetworksession_impl.cpp
|
||||
|
||||
OTHER_FILES += nativewifi.json
|
||||
|
||||
DESTDIR = $$QT.network.plugins/bearer
|
||||
target.path += $$[QT_INSTALL_PLUGINS]/bearer
|
||||
INSTALLS += target
|
||||
|
@ -52,6 +52,9 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
class QNetworkManagerEnginePlugin : public QBearerEnginePlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QBearerEngineFactoryInterface" FILE "networkmanager.json")
|
||||
|
||||
public:
|
||||
QNetworkManagerEnginePlugin();
|
||||
~QNetworkManagerEnginePlugin();
|
||||
@ -86,10 +89,9 @@ QBearerEngine *QNetworkManagerEnginePlugin::create(const QString &key) const
|
||||
return 0;
|
||||
}
|
||||
|
||||
Q_EXPORT_STATIC_PLUGIN(QNetworkManagerEnginePlugin)
|
||||
Q_EXPORT_PLUGIN2(qnmbearer, QNetworkManagerEnginePlugin)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "main.moc"
|
||||
|
||||
#endif // QT_NO_DBUS
|
||||
#endif // QT_NO_BEARERMANAGEMENT
|
||||
|
3
src/plugins/bearer/networkmanager/networkmanager.json
Normal file
3
src/plugins/bearer/networkmanager/networkmanager.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"Keys": [ "networkmanager" ]
|
||||
}
|
@ -15,6 +15,8 @@ SOURCES += main.cpp \
|
||||
qnetworkmanagerengine.cpp \
|
||||
../qnetworksession_impl.cpp
|
||||
|
||||
OTHER_FILES += networkmanager.json
|
||||
|
||||
DESTDIR = $$QT.network.plugins/bearer
|
||||
target.path += $$[QT_INSTALL_PLUGINS]/bearer
|
||||
INSTALLS += target
|
||||
|
@ -49,6 +49,9 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
class QNlaEnginePlugin : public QBearerEnginePlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QBearerEngineFactoryInterface" FILE "nla.json")
|
||||
|
||||
public:
|
||||
QNlaEnginePlugin();
|
||||
~QNlaEnginePlugin();
|
||||
@ -78,7 +81,6 @@ QBearerEngine *QNlaEnginePlugin::create(const QString &key) const
|
||||
return 0;
|
||||
}
|
||||
|
||||
Q_EXPORT_STATIC_PLUGIN(QNlaEnginePlugin)
|
||||
Q_EXPORT_PLUGIN2(qnlabearer, QNlaEnginePlugin)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "main.moc"
|
||||
|
3
src/plugins/bearer/nla/nla.json
Normal file
3
src/plugins/bearer/nla/nla.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"Keys": [ "nla" ]
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
TARGET = qnlabearer
|
||||
load(qt_plugin)
|
||||
|
||||
QT = core network
|
||||
QT = core core-private network network-private
|
||||
|
||||
!wince* {
|
||||
LIBS += -lWs2_32
|
||||
@ -18,6 +18,8 @@ SOURCES += main.cpp \
|
||||
qnlaengine.cpp \
|
||||
../qnetworksession_impl.cpp
|
||||
|
||||
OTHER_FILES += nla.json
|
||||
|
||||
DESTDIR = $$QT.network.plugins/bearer
|
||||
target.path += $$[QT_INSTALL_PLUGINS]/bearer
|
||||
INSTALLS += target
|
||||
|
Loading…
Reference in New Issue
Block a user