{
}
-void QConnmanManagerInterface::connectNotify(const char *signal)
+void QConnmanManagerInterface::connectNotify(const QMetaMethod &signal)
{
-if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QDBusVariant))) {
+ static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QConnmanManagerInterface::propertyChanged);
+ if (signal == propertyChangedSignal) {
if(!connection().connect(QLatin1String(CONNMAN_SERVICE),
QLatin1String(CONNMAN_MANAGER_PATH),
QLatin1String(CONNMAN_MANAGER_INTERFACE),
}
}
- if (QLatin1String(signal) == SIGNAL(stateChanged(QString))) {
+ static const QMetaMethod stateChangedSignal = QMetaMethod::fromSignal(&QConnmanManagerInterface::stateChanged);
+ if (signal == stateChangedSignal) {
if (!connection().connect(QLatin1String(CONNMAN_SERVICE),
QLatin1String(CONNMAN_MANAGER_PATH),
QLatin1String(CONNMAN_MANAGER_INTERFACE),
}
}
- if (QLatin1String(signal) == SIGNAL(propertyChangedContext(QString,QString,QDBusVariant))) {
+ static const QMetaMethod propertyChangedContextSignal = QMetaMethod::fromSignal(&QConnmanManagerInterface::propertyChangedContext);
+ if (signal == propertyChangedContextSignal) {
QConnmanDBusHelper *helper;
helper = new QConnmanDBusHelper(this);
}
}
-void QConnmanManagerInterface::disconnectNotify(const char *signal)
+void QConnmanManagerInterface::disconnectNotify(const QMetaMethod &signal)
{
- if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QVariant))) {
+ static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QConnmanManagerInterface::propertyChanged);
+ if (signal == propertyChangedSignal) {
}
}
{
}
-void QConnmanProfileInterface::connectNotify(const char *signal)
+void QConnmanProfileInterface::connectNotify(const QMetaMethod &signal)
{
- if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QDBusVariant))) {
+ static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QConnmanProfileInterface::propertyChanged);
+ if (signal == propertyChangedSignal) {
dbusConnection.connect(QLatin1String(CONNMAN_SERVICE),
this->path(),
QLatin1String(CONNMAN_PROFILE_INTERFACE),
}
}
-void QConnmanProfileInterface::disconnectNotify(const char *signal)
+void QConnmanProfileInterface::disconnectNotify(const QMetaMethod &signal)
{
- if (QLatin1String(signal) == SIGNAL(propertyChanged(QString, QVariant))) {
+ static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QConnmanProfileInterface::propertyChanged);
+ if (signal == propertyChangedSignal) {
}
}
{
}
-void QConnmanServiceInterface::connectNotify(const char *signal)
+void QConnmanServiceInterface::connectNotify(const QMetaMethod &signal)
{
- if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QDBusVariant))) {
+ static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QConnmanServiceInterface::propertyChanged);
+ if (signal == propertyChangedSignal) {
dbusConnection.connect(QLatin1String(CONNMAN_SERVICE),
this->path(),
QLatin1String(CONNMAN_SERVICE_INTERFACE),
QLatin1String("PropertyChanged"),
this,SIGNAL(propertyChanged(QString,QDBusVariant)));
}
- if (QLatin1String(signal) == SIGNAL(propertyChangedContext(QString,QString,QDBusVariant))) {
+ static const QMetaMethod propertyChangedContextSignal = QMetaMethod::fromSignal(&QConnmanServiceInterface::propertyChangedContext);
+ if (signal == propertyChangedContextSignal) {
QConnmanDBusHelper *helper;
helper = new QConnmanDBusHelper(this);
}
}
-void QConnmanServiceInterface::disconnectNotify(const char *signal)
+void QConnmanServiceInterface::disconnectNotify(const QMetaMethod &signal)
{
- if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QVariant))) {
+ static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QConnmanServiceInterface::propertyChanged);
+ if (signal == propertyChangedSignal) {
}
}
{
}
-void QConnmanTechnologyInterface::connectNotify(const char *signal)
+void QConnmanTechnologyInterface::connectNotify(const QMetaMethod &signal)
{
- if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QDBusVariant))) {
+ static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QConnmanTechnologyInterface::propertyChanged);
+ if (signal == propertyChangedSignal) {
dbusConnection.connect(QLatin1String(CONNMAN_SERVICE),
this->path(),
QLatin1String(CONNMAN_TECHNOLOGY_INTERFACE),
QLatin1String("PropertyChanged"),
this,SIGNAL(propertyChanged(QString,QDBusVariant)));
}
- if (QLatin1String(signal) == SIGNAL(propertyChangedContext(QString,QString,QDBusVariant))) {
+ static const QMetaMethod propertyChangedContextSignal = QMetaMethod::fromSignal(&QConnmanTechnologyInterface::propertyChangedContext);
+ if (signal == propertyChangedContextSignal) {
QConnmanDBusHelper *helper;
helper = new QConnmanDBusHelper(this);
}
}
-void QConnmanTechnologyInterface::disconnectNotify(const char *signal)
+void QConnmanTechnologyInterface::disconnectNotify(const QMetaMethod &signal)
{
- if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QVariant))) {
+ static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QConnmanTechnologyInterface::propertyChanged);
+ if (signal == propertyChangedSignal) {
}
}
{
}
-void QConnmanAgentInterface::connectNotify(const char *signal)
+void QConnmanAgentInterface::connectNotify(const QMetaMethod &signal)
{
- if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QDBusVariant))) {
+ Q_UNUSED(signal);
+// static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QConnmanAgentInterface::propertyChanged);
+// if (signal == propertyChangedSignal) {
// dbusConnection.connect(QLatin1String(CONNMAN_SERVICE),
// this->path(),
// QLatin1String(CONNMAN_NETWORK_INTERFACE),
// QLatin1String("PropertyChanged"),
// this,SIGNAL(propertyChanged(const QString &, QVariant &)));
- }
+// }
}
-void QConnmanAgentInterface::disconnectNotify(const char *signal)
+void QConnmanAgentInterface::disconnectNotify(const QMetaMethod &signal)
{
- if (QLatin1String(signal) == SIGNAL(propertyChanged(QString, QDBusVariant))) {
+ Q_UNUSED(signal);
+// static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QConnmanAgentInterface::propertyChanged);
+// if (signal == propertyChangedSignal) {
- }
+// }
}
}
-void QOfonoManagerInterface::connectNotify(const char *signal)
+void QOfonoManagerInterface::connectNotify(const QMetaMethod &signal)
{
-if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QDBusVariant))) {
+ static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QOfonoManagerInterface::propertyChanged);
+ if (signal == propertyChangedSignal) {
if(!connection().connect(QLatin1String(OFONO_SERVICE),
QLatin1String(OFONO_MANAGER_PATH),
QLatin1String(OFONO_MANAGER_INTERFACE),
}
}
- if (QLatin1String(signal) == SIGNAL(propertyChangedContext(QString,QString,QDBusVariant))) {
+ static const QMetaMethod propertyChangedContextSignal = QMetaMethod::fromSignal(&QOfonoManagerInterface::propertyChangedContext);
+ if (signal == propertyChangedContextSignal) {
QOfonoDBusHelper *helper;
helper = new QOfonoDBusHelper(this);
}
}
-void QOfonoManagerInterface::disconnectNotify(const char *signal)
+void QOfonoManagerInterface::disconnectNotify(const QMetaMethod &signal)
{
- if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QVariant))) {
+ static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QOfonoManagerInterface::propertyChanged);
+ if (signal == propertyChangedSignal) {
}
}
}
-void QOfonoModemInterface::connectNotify(const char *signal)
+void QOfonoModemInterface::connectNotify(const QMetaMethod &signal)
{
- if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QDBusVariant))) {
+ static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QOfonoModemInterface::propertyChanged);
+ if (signal == propertyChangedSignal) {
if(!connection().connect(QLatin1String(OFONO_SERVICE),
this->path(),
QLatin1String(OFONO_MODEM_INTERFACE),
}
}
- if (QLatin1String(signal) == SIGNAL(propertyChangedContext(QString,QString,QDBusVariant))) {
+ static const QMetaMethod propertyChangedContextSignal = QMetaMethod::fromSignal(&QOfonoModemInterface::propertyChangedContext);
+ if (signal == propertyChangedContextSignal) {
QOfonoDBusHelper *helper;
helper = new QOfonoDBusHelper(this);
this,SIGNAL(propertyChangedContext(const QString &,const QString &,const QDBusVariant &)), Qt::UniqueConnection);
}}
-void QOfonoModemInterface::disconnectNotify(const char *signal)
+void QOfonoModemInterface::disconnectNotify(const QMetaMethod &signal)
{
- if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QVariant))) {
+ static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QOfonoModemInterface::propertyChanged);
+ if (signal == propertyChangedSignal) {
}
}
return qdbus_cast<QList <QDBusObjectPath> >(var);
}
-void QOfonoNetworkRegistrationInterface::connectNotify(const char *signal)
+void QOfonoNetworkRegistrationInterface::connectNotify(const QMetaMethod &signal)
{
-if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QDBusVariant))) {
+ static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QOfonoNetworkRegistrationInterface::propertyChanged);
+ if (signal == propertyChangedSignal) {
if(!connection().connect(QLatin1String(OFONO_SERVICE),
this->path(),
QLatin1String(OFONO_NETWORK_REGISTRATION_INTERFACE),
}
}
- if (QLatin1String(signal) == SIGNAL(propertyChangedContext(QString,QString,QDBusVariant))) {
+ static const QMetaMethod propertyChangedContextSignal = QMetaMethod::fromSignal(&QOfonoNetworkRegistrationInterface::propertyChangedContext);
+ if (signal == propertyChangedContextSignal) {
QOfonoDBusHelper *helper;
helper = new QOfonoDBusHelper(this);
}
}
-void QOfonoNetworkRegistrationInterface::disconnectNotify(const char *signal)
+void QOfonoNetworkRegistrationInterface::disconnectNotify(const QMetaMethod &signal)
{
- if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QVariant))) {
+ static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QOfonoNetworkRegistrationInterface::propertyChanged);
+ if (signal == propertyChangedSignal) {
}
}
return qdbus_cast<QStringList>(var);
}
-void QOfonoNetworkOperatorInterface::connectNotify(const char *signal)
+void QOfonoNetworkOperatorInterface::connectNotify(const QMetaMethod &signal)
{
-if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QDBusVariant))) {
- if(!connection().connect(QLatin1String(OFONO_SERVICE),
- this->path(),
- QLatin1String(OFONO_NETWORK_OPERATOR_INTERFACE),
- QLatin1String("PropertyChanged"),
- this,SIGNAL(propertyChanged(const QString &, const QDBusVariant & )))) {
- qWarning() << "PropertyCHanged not connected";
- }
- }
+ Q_UNUSED(signal);
+// static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QOfonoNetworkOperatorInterface::propertyChanged);
+// if (signal == propertyChangedSignal) {
+// if(!connection().connect(QLatin1String(OFONO_SERVICE),
+// this->path(),
+// QLatin1String(OFONO_NETWORK_OPERATOR_INTERFACE),
+// QLatin1String("PropertyChanged"),
+// this,SIGNAL(propertyChanged(const QString &, const QDBusVariant & )))) {
+// qWarning() << "PropertyCHanged not connected";
+// }
+// }
- if (QLatin1String(signal) == SIGNAL(propertyChangedContext(QString,QString,QDBusVariant))) {
- QOfonoDBusHelper *helper;
- helper = new QOfonoDBusHelper(this);
+// static const QMetaMethod propertyChangedContextSignal = QMetaMethod::fromSignal(&QOfonoNetworkOperatorInterface::propertyChangedContext);
+// if (signal == propertyChangedContextSignal) {
+// QOfonoDBusHelper *helper;
+// helper = new QOfonoDBusHelper(this);
- QDBusConnection::systemBus().connect(QLatin1String(OFONO_SERVICE),
- this->path(),
- QLatin1String(OFONO_NETWORK_OPERATOR_INTERFACE),
- QLatin1String("PropertyChanged"),
- helper,SLOT(propertyChanged(QString,QDBusVariant)));
+// QDBusConnection::systemBus().connect(QLatin1String(OFONO_SERVICE),
+// this->path(),
+// QLatin1String(OFONO_NETWORK_OPERATOR_INTERFACE),
+// QLatin1String("PropertyChanged"),
+// helper,SLOT(propertyChanged(QString,QDBusVariant)));
- QObject::connect(helper,SIGNAL(propertyChangedContext(const QString &,const QString &,const QDBusVariant &)),
- this,SIGNAL(propertyChangedContext(const QString &,const QString &,const QDBusVariant &)), Qt::UniqueConnection);
- }
+// QObject::connect(helper,SIGNAL(propertyChangedContext(const QString &,const QString &,const QDBusVariant &)),
+// this,SIGNAL(propertyChangedContext(const QString &,const QString &,const QDBusVariant &)), Qt::UniqueConnection);
+// }
}
-void QOfonoNetworkOperatorInterface::disconnectNotify(const char *signal)
+void QOfonoNetworkOperatorInterface::disconnectNotify(const QMetaMethod &signal)
{
- if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QVariant))) {
+ Q_UNUSED(signal);
+// static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QOfonoNetworkOperatorInterface::propertyChanged);
+// if (signal == propertyChangedSignal) {
- }
+// }
}
QVariant QOfonoNetworkOperatorInterface::getProperty(const QString &property)
return qdbus_cast<QString>(var);
}
-void QOfonoSimInterface::connectNotify(const char *signal)
+void QOfonoSimInterface::connectNotify(const QMetaMethod &signal)
{
-if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QDBusVariant))) {
- if(!connection().connect(QLatin1String(OFONO_SERVICE),
- this->path(),
- QLatin1String(OFONO_SIM_MANAGER_INTERFACE),
- QLatin1String("PropertyChanged"),
- this,SIGNAL(propertyChanged(const QString &, const QDBusVariant & )))) {
- qWarning() << "PropertyCHanged not connected";
- }
- }
+ Q_UNUSED(signal);
+// static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QOfonoSimInterface::propertyChanged);
+// if (signal == propertyChangedSignal) {
+// if(!connection().connect(QLatin1String(OFONO_SERVICE),
+// this->path(),
+// QLatin1String(OFONO_SIM_MANAGER_INTERFACE),
+// QLatin1String("PropertyChanged"),
+// this,SIGNAL(propertyChanged(const QString &, const QDBusVariant & )))) {
+// qWarning() << "PropertyCHanged not connected";
+// }
+// }
- if (QLatin1String(signal) == SIGNAL(propertyChangedContext(QString,QString,QDBusVariant))) {
- QOfonoDBusHelper *helper;
- helper = new QOfonoDBusHelper(this);
+// static const QMetaMethod propertyChangedContextSignal = QMetaMethod::fromSignal(&QOfonoSimInterface::propertyChangedContext);
+// if (signal == propertyChangedContextSignal) {
+// QOfonoDBusHelper *helper;
+// helper = new QOfonoDBusHelper(this);
- QDBusConnection::systemBus().connect(QLatin1String(OFONO_SERVICE),
- this->path(),
- QLatin1String(OFONO_SIM_MANAGER_INTERFACE),
- QLatin1String("PropertyChanged"),
- helper,SLOT(propertyChanged(QString,QDBusVariant)));
+// QDBusConnection::systemBus().connect(QLatin1String(OFONO_SERVICE),
+// this->path(),
+// QLatin1String(OFONO_SIM_MANAGER_INTERFACE),
+// QLatin1String("PropertyChanged"),
+// helper,SLOT(propertyChanged(QString,QDBusVariant)));
- QObject::connect(helper,SIGNAL(propertyChangedContext(const QString &,const QString &,const QDBusVariant &)),
- this,SIGNAL(propertyChangedContext(const QString &,const QString &,const QDBusVariant &)), Qt::UniqueConnection);
- }
+// QObject::connect(helper,SIGNAL(propertyChangedContext(const QString &,const QString &,const QDBusVariant &)),
+// this,SIGNAL(propertyChangedContext(const QString &,const QString &,const QDBusVariant &)), Qt::UniqueConnection);
+// }
}
-void QOfonoSimInterface::disconnectNotify(const char *signal)
+void QOfonoSimInterface::disconnectNotify(const QMetaMethod &signal)
{
- if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QVariant))) {
+ Q_UNUSED(signal);
+// static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QOfonoSimInterface::propertyChanged);
+// if (signal == propertyChangedSignal) {
- }
+// }
}
QVariant QOfonoSimInterface::getProperty(const QString &property)
return qdbus_cast<bool>(var);
}
-void QOfonoDataConnectionManagerInterface::connectNotify(const char *signal)
+void QOfonoDataConnectionManagerInterface::connectNotify(const QMetaMethod &signal)
{
-if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QDBusVariant))) {
- if(!connection().connect(QLatin1String(OFONO_SERVICE),
- this->path(),
- QLatin1String(OFONO_DATA_CONNECTION_MANAGER_INTERFACE),
- QLatin1String("PropertyChanged"),
- this,SIGNAL(propertyChanged(const QString &, const QDBusVariant & )))) {
- qWarning() << "PropertyCHanged not connected";
- }
- }
+ Q_UNUSED(signal);
+// static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QOfonoDataConnectionManagerInterface::propertyChanged);
+// if (signal == propertyChangedSignal) {
+// if(!connection().connect(QLatin1String(OFONO_SERVICE),
+// this->path(),
+// QLatin1String(OFONO_DATA_CONNECTION_MANAGER_INTERFACE),
+// QLatin1String("PropertyChanged"),
+// this,SIGNAL(propertyChanged(const QString &, const QDBusVariant & )))) {
+// qWarning() << "PropertyCHanged not connected";
+// }
+// }
- if (QLatin1String(signal) == SIGNAL(propertyChangedContext(QString,QString,QDBusVariant))) {
- QOfonoDBusHelper *helper;
- helper = new QOfonoDBusHelper(this);
+// static const QMetaMethod propertyChangedContextSignal = QMetaMethod::fromSignal(&QOfonoDataConnectionManagerInterface::propertyChangedContext);
+// if (signal == propertyChangedContextSignal) {
+// QOfonoDBusHelper *helper;
+// helper = new QOfonoDBusHelper(this);
- QDBusConnection::systemBus().connect(QLatin1String(OFONO_SERVICE),
- this->path(),
- QLatin1String(OFONO_DATA_CONNECTION_MANAGER_INTERFACE),
- QLatin1String("PropertyChanged"),
- helper,SLOT(propertyChanged(QString,QDBusVariant)));
+// QDBusConnection::systemBus().connect(QLatin1String(OFONO_SERVICE),
+// this->path(),
+// QLatin1String(OFONO_DATA_CONNECTION_MANAGER_INTERFACE),
+// QLatin1String("PropertyChanged"),
+// helper,SLOT(propertyChanged(QString,QDBusVariant)));
- QObject::connect(helper,SIGNAL(propertyChangedContext(const QString &,const QString &,const QDBusVariant &)),
- this,SIGNAL(propertyChangedContext(const QString &,const QString &,const QDBusVariant &)), Qt::UniqueConnection);
- }
+// QObject::connect(helper,SIGNAL(propertyChangedContext(const QString &,const QString &,const QDBusVariant &)),
+// this,SIGNAL(propertyChangedContext(const QString &,const QString &,const QDBusVariant &)), Qt::UniqueConnection);
+// }
}
-void QOfonoDataConnectionManagerInterface::disconnectNotify(const char *signal)
+void QOfonoDataConnectionManagerInterface::disconnectNotify(const QMetaMethod &signal)
{
- if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QVariant))) {
+ Q_UNUSED(signal);
+// static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QOfonoDataConnectionManagerInterface::propertyChanged);
+// if (signal == propertyChangedSignal) {
- }
+// }
}
QVariant QOfonoDataConnectionManagerInterface::getProperty(const QString &property)
return setProp("AccessPointName", QVariant::fromValue(name));
}
-void QOfonoPrimaryDataContextInterface::connectNotify(const char *signal)
+void QOfonoPrimaryDataContextInterface::connectNotify(const QMetaMethod &signal)
{
-if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QDBusVariant))) {
- if(!connection().connect(QLatin1String(OFONO_SERVICE),
- this->path(),
- QLatin1String(OFONO_DATA_CONTEXT_INTERFACE),
- QLatin1String("PropertyChanged"),
- this,SIGNAL(propertyChanged(const QString &, const QDBusVariant & )))) {
- qWarning() << "PropertyCHanged not connected";
- }
- }
+ Q_UNUSED(signal);
+// static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QOfonoPrimaryDataContextInterface::propertyChanged);
+// if (signal == propertyChangedSignal) {
+// if(!connection().connect(QLatin1String(OFONO_SERVICE),
+// this->path(),
+// QLatin1String(OFONO_DATA_CONTEXT_INTERFACE),
+// QLatin1String("PropertyChanged"),
+// this,SIGNAL(propertyChanged(const QString &, const QDBusVariant & )))) {
+// qWarning() << "PropertyCHanged not connected";
+// }
+// }
- if (QLatin1String(signal) == SIGNAL(propertyChangedContext(QString,QString,QDBusVariant))) {
- QOfonoDBusHelper *helper;
- helper = new QOfonoDBusHelper(this);
+// static const QMetaMethod propertyChangedContextSignal = QMetaMethod::fromSignal(&QOfonoPrimaryDataContextInterface::propertyChangedContext);
+// if (signal == propertyChangedContextSignal) {
+// QOfonoDBusHelper *helper;
+// helper = new QOfonoDBusHelper(this);
- QDBusConnection::systemBus().connect(QLatin1String(OFONO_SERVICE),
- this->path(),
- QLatin1String(OFONO_DATA_CONTEXT_INTERFACE),
- QLatin1String("PropertyChanged"),
- helper,SLOT(propertyChanged(QString,QDBusVariant)));
+// QDBusConnection::systemBus().connect(QLatin1String(OFONO_SERVICE),
+// this->path(),
+// QLatin1String(OFONO_DATA_CONTEXT_INTERFACE),
+// QLatin1String("PropertyChanged"),
+// helper,SLOT(propertyChanged(QString,QDBusVariant)));
- QObject::connect(helper,SIGNAL(propertyChangedContext(const QString &,const QString &,const QDBusVariant &)),
- this,SIGNAL(propertyChangedContext(const QString &,const QString &,const QDBusVariant &)), Qt::UniqueConnection);
- }
+// QObject::connect(helper,SIGNAL(propertyChangedContext(const QString &,const QString &,const QDBusVariant &)),
+// this,SIGNAL(propertyChangedContext(const QString &,const QString &,const QDBusVariant &)), Qt::UniqueConnection);
+// }
}
-void QOfonoPrimaryDataContextInterface::disconnectNotify(const char *signal)
+void QOfonoPrimaryDataContextInterface::disconnectNotify(const QMetaMethod &signal)
{
- if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QVariant))) {
+ Q_UNUSED(signal);
+// static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QOfonoPrimaryDataContextInterface::propertyChanged);
+// if (signal == propertyChangedSignal) {
- }
+// }
}
QVariant QOfonoPrimaryDataContextInterface::getProperty(const QString &property)
{
}
-void QOfonoSmsInterface::connectNotify(const char *signal)
+void QOfonoSmsInterface::connectNotify(const QMetaMethod &signal)
{
- if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QDBusVariant))) {
+ static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QOfonoSmsInterface::propertyChanged);
+ if (signal == propertyChangedSignal) {
if(!connection().connect(QLatin1String(OFONO_SERVICE),
this->path(),
QLatin1String(OFONO_SMS_MANAGER_INTERFACE),
}
}
- if (QLatin1String(signal) == SIGNAL(propertyChangedContext(QString,QString,QDBusVariant))) {
+ static const QMetaMethod propertyChangedContextSignal = QMetaMethod::fromSignal(&QOfonoSmsInterface::propertyChangedContext);
+ if (signal == propertyChangedContextSignal) {
QOfonoDBusHelper *helper;
helper = new QOfonoDBusHelper(this);
this,SIGNAL(propertyChangedContext(const QString &,const QString &,const QDBusVariant &)));
}
- if (QLatin1String(signal) == SIGNAL(immediateMessage(QString,QVariantMap))) {
+ static const QMetaMethod immediateMessageSignal = QMetaMethod::fromSignal(&QOfonoSmsInterface::immediateMessage);
+ if (signal == immediateMessageSignal) {
if(!connection().connect(QLatin1String(OFONO_SERVICE),
this->path(),
QLatin1String(OFONO_SMS_MANAGER_INTERFACE),
}
}
- if (QLatin1String(signal) == SIGNAL(incomingMessage(QString,QVariantMap))) {
+ static const QMetaMethod incomingMessageSignal = QMetaMethod::fromSignal(&QOfonoSmsInterface::incomingMessage);
+ if (signal == incomingMessageSignal) {
if(!connection().connect(QLatin1String(OFONO_SERVICE),
this->path(),
QLatin1String(OFONO_SMS_MANAGER_INTERFACE),
}
}
-void QOfonoSmsInterface::disconnectNotify(const char *signal)
+void QOfonoSmsInterface::disconnectNotify(const QMetaMethod &signal)
{
- if (QLatin1String(signal) == SIGNAL(propertyChanged(QString,QVariant))) {
+ static const QMetaMethod propertyChangedSignal = QMetaMethod::fromSignal(&QOfonoSmsInterface::propertyChanged);
+ if (signal == propertyChangedSignal) {
}
}