summaryrefslogtreecommitdiffstats
path: root/test/qt/qpong.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/qt/qpong.cpp')
-rw-r--r--test/qt/qpong.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/test/qt/qpong.cpp b/test/qt/qpong.cpp
deleted file mode 100644
index cad04eb6..00000000
--- a/test/qt/qpong.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-#include <QtCore/QtCore>
-#include <dbus/qdbus.h>
-
-class Pong: public QObject
-{
- Q_OBJECT
-public slots:
-
- void ping(const QDBusMessage &msg)
- {
- QDBusMessage reply = QDBusMessage::methodReply(msg);
- reply << static_cast<QList<QVariant> >(msg);
- reply.setSignature(msg.signature());
- if (!msg.connection().send(reply))
- exit(1);
- }
-};
-
-int main(int argc, char *argv[])
-{
- QCoreApplication app(argc, argv);
-
- QDBusConnection &con = QDBus::sessionBus();
- if (!con.isConnected())
- exit(1);
-
- if (con.busService()->requestName("org.kde.selftest", QDBusBusService::DoNotQueueName).isError())
- exit(2);
-
- Pong pong;
- con.registerObject("/org/kde/selftest", &pong, QDBusConnection::ExportSlots);
-
- printf("ready.\n");
-
- return app.exec();
-}
-
-#include "qpong.moc"