void QConnmanManagerInterface::connectNotify(const char *signal)
{
- if (signal == SIGNAL(propertyChanged(QString,QDBusVariant))) {
+ if (strcmp(signal + 1, "propertyChanged(QString,QDBusVariant)") == 0) {
if(!connection().connect(QLatin1String(CONNMAN_SERVICE),
QLatin1String(CONNMAN_MANAGER_PATH),
QLatin1String(CONNMAN_MANAGER_INTERFACE),
}
}
- if (signal == SIGNAL(stateChanged(QString))) {
+ if (strcmp(signal + 1, "stateChanged(QString)") == 0) {
if (!connection().connect(QLatin1String(CONNMAN_SERVICE),
QLatin1String(CONNMAN_MANAGER_PATH),
QLatin1String(CONNMAN_MANAGER_INTERFACE),
}
}
- if (signal == SIGNAL(propertyChangedContext(QString,QString,QDBusVariant))) {
- QConnmanDBusHelper *helper;
- helper = new QConnmanDBusHelper(this);
+ if (strcmp(signal + 1, "propertyChangedContext(QString,QString,QDBusVariant)") == 0) {
+ QConnmanDBusHelper *helper = new QConnmanDBusHelper(this);
connmanConnection.connect(QLatin1String(CONNMAN_SERVICE),
QLatin1String(CONNMAN_MANAGER_PATH),
}
}
-void QConnmanManagerInterface::disconnectNotify(const char *signal)
-{
- if (signal == SIGNAL(propertyChanged(QString,QVariant))) {
-
- }
-}
-
QVariant QConnmanManagerInterface::getProperty(const QString &property)
{
QVariant var;
void QConnmanProfileInterface::connectNotify(const char *signal)
{
- if (signal == SIGNAL(propertyChanged(QString,QDBusVariant))) {
+ if (strcmp(signal + 1, "propertyChanged(QString,QDBusVariant)") == 0) {
connmanConnection.connect(QLatin1String(CONNMAN_SERVICE),
this->path(),
QLatin1String(CONNMAN_PROFILE_INTERFACE),
}
}
-void QConnmanProfileInterface::disconnectNotify(const char *signal)
-{
- if (signal == SIGNAL(propertyChanged(QString,QVariant))) {
-
- }
-}
-
QVariantMap QConnmanProfileInterface::getProperties()
{
QDBusReply<QVariantMap > reply = this->call(QLatin1String("GetProperties"));
void QConnmanServiceInterface::connectNotify(const char *signal)
{
- if (signal == SIGNAL(propertyChanged(QString,QDBusVariant))) {
+ if (strcmp(signal + 1, "propertyChanged(QString,QDBusVariant)") == 0) {
connmanConnection.connect(QLatin1String(CONNMAN_SERVICE),
this->path(),
QLatin1String(CONNMAN_SERVICE_INTERFACE),
QLatin1String("PropertyChanged"),
this,SIGNAL(propertyChanged(QString,QDBusVariant)));
}
- if (signal == SIGNAL(propertyChangedContext(QString,QString,QDBusVariant))) {
+ if (strcmp(signal + 1, "propertyChangedContext(QString,QString,QDBusVariant)") == 0) {
QConnmanDBusHelper *helper;
helper = new QConnmanDBusHelper(this);
}
}
-void QConnmanServiceInterface::disconnectNotify(const char *signal)
-{
- if (signal == SIGNAL(propertyChanged(QString,QVariant))) {
-
- }
-}
-
QVariantMap QConnmanServiceInterface::getProperties()
{
if(this->isValid()) {
void QConnmanTechnologyInterface::connectNotify(const char *signal)
{
- if (signal == SIGNAL(propertyChanged(QString,QDBusVariant))) {
+ if (strcmp(signal + 1, "propertyChanged(QString,QDBusVariant)") == 0) {
connmanConnection.connect(QLatin1String(CONNMAN_SERVICE),
this->path(),
QLatin1String(CONNMAN_TECHNOLOGY_INTERFACE),
QLatin1String("PropertyChanged"),
this,SIGNAL(propertyChanged(QString,QDBusVariant)));
}
- if (signal == SIGNAL(propertyChangedContext(QString,QString,QDBusVariant))) {
+ if (strcmp(signal + 1, "propertyChangedContext(QString,QString,QDBusVariant)") == 0) {
QConnmanDBusHelper *helper;
helper = new QConnmanDBusHelper(this);
}
}
-void QConnmanTechnologyInterface::disconnectNotify(const char *signal)
-{
- if (signal == SIGNAL(propertyChanged(QString,QVariant))) {
-
- }
-}
-
QVariantMap QConnmanTechnologyInterface::getProperties()
{
QDBusReply<QVariantMap> reply = this->call(QLatin1String("GetProperties"));
void QConnmanAgentInterface::connectNotify(const char *signal)
{
- if (signal == SIGNAL(propertyChanged(QString,QDBusVariant))) {
+ if (strcmp(signal + 1, "propertyChanged(QString,QDBusVariant)") == 0) {
// connmanConnection.connect(QLatin1String(CONNMAN_SERVICE),
// this->path(),
// QLatin1String(CONNMAN_NETWORK_INTERFACE),
}
}
-void QConnmanAgentInterface::disconnectNotify(const char *signal)
-{
- if (signal == SIGNAL(propertyChanged(QString,QDBusVariant))) {
-
- }
-}
-
void QConnmanAgentInterface::release()
{