diff options
| author | John (J5) Palmieri <johnp@redhat.com> | 2006-07-14 16:20:12 +0000 | 
|---|---|---|
| committer | John (J5) Palmieri <johnp@redhat.com> | 2006-07-14 16:20:12 +0000 | 
| commit | a929c9a3b465db8b7e17b9b39936c612c2621a7c (patch) | |
| tree | d1764257d1bd56f8e6a044516ccfc9bc44f7f9f5 /test/qt/qpong.cpp | |
| parent | 5efe8e7f1d97931710558495a951e0b35afbfb72 (diff) | |
* Remove all bindings
Diffstat (limited to 'test/qt/qpong.cpp')
| -rw-r--r-- | test/qt/qpong.cpp | 38 | 
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"  | 
