normalise signal/slot signatures [QtDBus tests]
Change-Id: I4a0441d37e455dce28072ee3650b2062bec65759 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
bb73c085a6
commit
b5b165ffb3
|
|
@ -63,7 +63,7 @@ public:
|
|||
m_conn("none"),
|
||||
obj(NULL)
|
||||
{
|
||||
connect(this, SIGNAL(newConnection(const QDBusConnection&)), SLOT(handleConnection(const QDBusConnection&)));
|
||||
connect(this, SIGNAL(newConnection(QDBusConnection)), SLOT(handleConnection(QDBusConnection)));
|
||||
}
|
||||
|
||||
~MyServer()
|
||||
|
|
@ -164,4 +164,4 @@ int main(int argc, char *argv[])
|
|||
return app.exec();
|
||||
}
|
||||
|
||||
#include "qmyserver.moc"
|
||||
#include "qmyserver.moc"
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ public:
|
|||
: QDBusServer(addr, parent),
|
||||
m_conn("none")
|
||||
{
|
||||
connect(this, SIGNAL(newConnection(const QDBusConnection&)), SLOT(handleConnection(const QDBusConnection&)));
|
||||
connect(this, SIGNAL(newConnection(QDBusConnection)), SLOT(handleConnection(QDBusConnection)));
|
||||
reset();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -393,7 +393,7 @@ public:
|
|||
m_path(path),
|
||||
m_connections()
|
||||
{
|
||||
connect(this, SIGNAL(newConnection(const QDBusConnection&)), SLOT(handleConnection(const QDBusConnection&)));
|
||||
connect(this, SIGNAL(newConnection(QDBusConnection)), SLOT(handleConnection(QDBusConnection)));
|
||||
}
|
||||
|
||||
bool registerObject(const QDBusConnection& c)
|
||||
|
|
@ -605,7 +605,7 @@ public:
|
|||
MyServer2(QString addr, QObject* parent) : QDBusServer(addr, parent),
|
||||
m_conn("none")
|
||||
{
|
||||
connect(this, SIGNAL(newConnection(const QDBusConnection&)), SLOT(handleConnection(const QDBusConnection&)));
|
||||
connect(this, SIGNAL(newConnection(QDBusConnection)), SLOT(handleConnection(QDBusConnection)));
|
||||
}
|
||||
|
||||
QDBusConnection connection()
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ public:
|
|||
: QDBusServer(addr, parent),
|
||||
m_conn("none")
|
||||
{
|
||||
connect(this, SIGNAL(newConnection(const QDBusConnection&)), SLOT(handleConnection(const QDBusConnection&)));
|
||||
connect(this, SIGNAL(newConnection(QDBusConnection)), SLOT(handleConnection(QDBusConnection)));
|
||||
}
|
||||
|
||||
public slots:
|
||||
|
|
@ -152,4 +152,4 @@ int main(int argc, char *argv[])
|
|||
return app.exec();
|
||||
}
|
||||
|
||||
#include "qmyserver.moc"
|
||||
#include "qmyserver.moc"
|
||||
|
|
|
|||
|
|
@ -350,7 +350,7 @@ void tst_QDBusInterface::invalidAfterServiceOwnerChanged()
|
|||
QDBusInterface invalidInterface("com.example.Test", "/");
|
||||
QVERIFY(!invalidInterface.isValid());
|
||||
|
||||
QTestEventLoop::instance().connect(connIface, SIGNAL(serviceOwnerChanged(QString, QString, QString)),
|
||||
QTestEventLoop::instance().connect(connIface, SIGNAL(serviceOwnerChanged(QString,QString,QString)),
|
||||
SLOT(exitLoop()));
|
||||
QVERIFY(connIface->registerService("com.example.Test") == QDBusConnectionInterface::ServiceRegistered);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue