From a929c9a3b465db8b7e17b9b39936c612c2621a7c Mon Sep 17 00:00:00 2001 From: "John (J5) Palmieri" Date: Fri, 14 Jul 2006 16:20:12 +0000 Subject: * Remove all bindings --- test/qt/qpong.cpp | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 test/qt/qpong.cpp (limited to 'test/qt/qpong.cpp') 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 -#include - -class Pong: public QObject -{ - Q_OBJECT -public slots: - - void ping(const QDBusMessage &msg) - { - QDBusMessage reply = QDBusMessage::methodReply(msg); - reply << static_cast >(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" -- cgit