#include "qbearerengine_p.h"
#include <QEventLoop>
+#include <QMetaMethod>
#include <QTimer>
#include <QThread>
For more details check the Forced vs ALR roaming section in the QNetworkSession
class description.
*/
-void QNetworkSession::connectNotify(const char *signal)
+void QNetworkSession::connectNotify(const QMetaMethod &signal)
{
QObject::connectNotify(signal);
//check for preferredConfigurationChanged() signal connect notification
//This is not required on all platforms
- if (qstrcmp(signal, SIGNAL(preferredConfigurationChanged(QNetworkConfiguration,bool))) == 0)
+ static const QMetaMethod preferredConfigurationChangedSignal =
+ QMetaMethod::fromSignal(&QNetworkSession::preferredConfigurationChanged);
+ if (signal == preferredConfigurationChangedSignal)
d->setALREnabled(true);
}
\sa connectNotify()
*/
-void QNetworkSession::disconnectNotify(const char *signal)
+void QNetworkSession::disconnectNotify(const QMetaMethod &signal)
{
QObject::disconnectNotify(signal);
//check for preferredConfigurationChanged() signal disconnect notification
//This is not required on all platforms
- if (qstrcmp(signal, SIGNAL(preferredConfigurationChanged(QNetworkConfiguration,bool))) == 0)
+ static const QMetaMethod preferredConfigurationChangedSignal =
+ QMetaMethod::fromSignal(&QNetworkSession::preferredConfigurationChanged);
+ if (signal == preferredConfigurationChangedSignal)
d->setALREnabled(false);
}
void usagePoliciesChanged(QNetworkSession::UsagePolicies);
protected:
- virtual void connectNotify(const char *signal);
- virtual void disconnectNotify(const char *signal);
+ virtual void connectNotify(const QMetaMethod &signal);
+ virtual void disconnectNotify(const QMetaMethod &signal);
private:
Q_DISABLE_COPY(QNetworkSession)