From 636f509299122d02087c6fd62e1e4a46dbd22026 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Wed, 8 Jan 2014 20:06:00 +0100 Subject: Rename many classes to avoid conflicts with KDE --- dcopjava/binding/org/kde/DCOP/Client.java | 63 ------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 dcopjava/binding/org/kde/DCOP/Client.java (limited to 'dcopjava/binding/org/kde/DCOP/Client.java') diff --git a/dcopjava/binding/org/kde/DCOP/Client.java b/dcopjava/binding/org/kde/DCOP/Client.java deleted file mode 100644 index 55ba943e..00000000 --- a/dcopjava/binding/org/kde/DCOP/Client.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.kde.DCOP; - - -public class Client -{ - // attach to DCOP server as 'anonymous' - public native boolean attach(); - - // attach to DCOP server using appName as key - public native String registerAs(String appName); - - // report if we are registered at the server - public native boolean isRegistered(); - - // return the registered application id - public native String appId(); - - // suspend DCOP processing - public native void suspend(); - - // resume DCOP processing - public native void resume(); - - // detach from the DCOP server - public native boolean detach(); - - // report if we are attached to DCOP server - public native boolean isAttached(); - - // send a command to the server - public native boolean send(String remApp, String remObj, String remFun, byte[] data); - - // send a command string to the server - public native boolean send(String remApp, String remObj, String remFun, String data); - - // call a function and get the result - public native Response call(String remApp, String remObj, String remFun, byte[] data, boolean eventLoop); - - // Checks whether remApp is registered with the DCOP server. - public native boolean isApplicationRegistered ( String remApp); - - public static void main(String[] args) - { - Client client = new Client(); - - System.out.println("Registering as: " + client.registerAs("Java-App")); - if (client.isAttached()) - System.out.println("Attached!"); - - client.send("kdesktop", "KDesktopIface", "selectAll()", ""); - - java.io.ByteArrayOutputStream bs = new java.io.ByteArrayOutputStream(); - Response res = client.call("kdesktop", "KDesktopIface", "selectedURLs()", bs.toByteArray(), false); - System.out.println("Result type: " + res.returnType); - } - - static - { - System.loadLibrary("javadcop"); - } - -} - -- cgit v1.2.3