diff options
author | Lorn Potter <lorn.potter@nokia.com> | 2010-10-29 00:13:28 (GMT) |
---|---|---|
committer | Lorn Potter <lorn.potter@nokia.com> | 2010-10-29 00:13:28 (GMT) |
commit | 9129a27f733169c9a4baf46b1be1c749dabdfdd8 (patch) | |
tree | 2b7c522eede960a5b626a1ff587165fbf153f9ad /src/plugins/bearer/connman/qconnmanengine.h | |
parent | 746f4b50e9c13c720162f3bcc8795b7ef772fbba (diff) | |
download | Qt-9129a27f733169c9a4baf46b1be1c749dabdfdd8.zip Qt-9129a27f733169c9a4baf46b1be1c749dabdfdd8.tar.gz Qt-9129a27f733169c9a4baf46b1be1c749dabdfdd8.tar.bz2 |
remove the connecting thread, and use async call to dbus instead.
This fixes the case where the connection threads are never stopped until
desctuctor.
Task-number: QTBUG-14836
Reviewed-by: trust me
Diffstat (limited to 'src/plugins/bearer/connman/qconnmanengine.h')
-rw-r--r-- | src/plugins/bearer/connman/qconnmanengine.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/plugins/bearer/connman/qconnmanengine.h b/src/plugins/bearer/connman/qconnmanengine.h index 569bbc7..2a2308f 100644 --- a/src/plugins/bearer/connman/qconnmanengine.h +++ b/src/plugins/bearer/connman/qconnmanengine.h @@ -59,14 +59,12 @@ #include <QMap> #include <QVariant> -#include <QtCore/qthread.h> #ifndef QT_NO_BEARERMANAGEMENT #ifndef QT_NO_DBUS QT_BEGIN_NAMESPACE -class QConnmanConnectThread; class QConnmanEngine : public QBearerEngineImpl { Q_OBJECT @@ -141,33 +139,8 @@ private: bool isRoamingAllowed(const QString &context); protected: bool requiresPolling() const; - QConnmanConnectThread *connThread; }; -class QConnmanConnectThread : public QThread -{ - Q_OBJECT - -public: - QConnmanConnectThread(QObject *parent = 0); - ~QConnmanConnectThread(); - bool keepRunning; - void stop(); - void setServicePath(const QString &path); - void setIdentifier(const QString &id); - -Q_SIGNALS: - void connectionError(const QString &id, QBearerEngineImpl::ConnectionError error); - -protected: - void run(); - QString servicePath; - QString identifier; - -private: - QMutex mutex; - -}; QT_END_NAMESPACE |