summaryrefslogtreecommitdiffstats
path: root/dcopjava/binding/org
diff options
context:
space:
mode:
Diffstat (limited to 'dcopjava/binding/org')
-rw-r--r--dcopjava/binding/org/Makefile.am2
-rw-r--r--dcopjava/binding/org/trinitydesktop/DCOP/Client.java (renamed from dcopjava/binding/org/kde/DCOP/Client.java)18
-rw-r--r--dcopjava/binding/org/trinitydesktop/DCOP/DCOPRef.java (renamed from dcopjava/binding/org/kde/DCOP/DCOPRef.java)2
-rw-r--r--dcopjava/binding/org/trinitydesktop/DCOP/Makefile.am (renamed from dcopjava/binding/org/kde/DCOP/Makefile.am)4
-rw-r--r--dcopjava/binding/org/trinitydesktop/DCOP/Response.java (renamed from dcopjava/binding/org/kde/DCOP/Response.java)2
-rw-r--r--dcopjava/binding/org/trinitydesktop/DCOP/Stub.java (renamed from dcopjava/binding/org/kde/DCOP/Stub.java)24
-rw-r--r--dcopjava/binding/org/trinitydesktop/Makefile.am (renamed from dcopjava/binding/org/kde/Makefile.am)0
7 files changed, 26 insertions, 26 deletions
diff --git a/dcopjava/binding/org/Makefile.am b/dcopjava/binding/org/Makefile.am
index 800b92ea..8279b890 100644
--- a/dcopjava/binding/org/Makefile.am
+++ b/dcopjava/binding/org/Makefile.am
@@ -1 +1 @@
-SUBDIRS = kde
+SUBDIRS = trinitydesktop
diff --git a/dcopjava/binding/org/kde/DCOP/Client.java b/dcopjava/binding/org/trinitydesktop/DCOP/Client.java
index 55ba943e..f8e87f72 100644
--- a/dcopjava/binding/org/kde/DCOP/Client.java
+++ b/dcopjava/binding/org/trinitydesktop/DCOP/Client.java
@@ -1,4 +1,4 @@
-package org.kde.DCOP;
+package org.trinitydesktop.DCOP;
public class Client
@@ -6,9 +6,9 @@ public class Client
// attach to DCOP server as 'anonymous'
public native boolean attach();
- // attach to DCOP server using appName as key
+ // 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();
@@ -35,11 +35,11 @@ public class Client
// 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)
+
+ public static void main(String[] args)
{
Client client = new Client();
@@ -53,10 +53,10 @@ public class Client
Response res = client.call("kdesktop", "KDesktopIface", "selectedURLs()", bs.toByteArray(), false);
System.out.println("Result type: " + res.returnType);
}
-
- static
+
+ static
{
- System.loadLibrary("javadcop");
+ System.loadLibrary("javadcop");
}
}
diff --git a/dcopjava/binding/org/kde/DCOP/DCOPRef.java b/dcopjava/binding/org/trinitydesktop/DCOP/DCOPRef.java
index 29d37efd..65e5e039 100644
--- a/dcopjava/binding/org/kde/DCOP/DCOPRef.java
+++ b/dcopjava/binding/org/trinitydesktop/DCOP/DCOPRef.java
@@ -1,4 +1,4 @@
-package org.kde.DCOP;
+package org.trinitydesktop.DCOP;
public class DCOPRef
diff --git a/dcopjava/binding/org/kde/DCOP/Makefile.am b/dcopjava/binding/org/trinitydesktop/DCOP/Makefile.am
index 2019d20a..975d2826 100644
--- a/dcopjava/binding/org/kde/DCOP/Makefile.am
+++ b/dcopjava/binding/org/trinitydesktop/DCOP/Makefile.am
@@ -1,9 +1,9 @@
class_DATA = DCOPRef.class Response.class Client.class Stub.class
-classdir = $(kde_libraries)/java/org/kde/DCOP
+classdir = $(kde_libraries)/java/org/trinitydesktop/DCOP
SUFFIXES = .java .class
.java.class:
- CLASSPATH=$(top_srcdir)/dcopjava/binding $(JAVAC) -d ../../../ -cp ../../../ $(top_srcdir)/dcopjava/binding/org/kde/DCOP/$*.java
+ CLASSPATH=$(top_srcdir)/dcopjava/binding $(JAVAC) -d ../../../ -cp ../../../ $(top_srcdir)/dcopjava/binding/org/trinitydesktop/DCOP/$*.java
CLEANFILES = $(class_DATA)
diff --git a/dcopjava/binding/org/kde/DCOP/Response.java b/dcopjava/binding/org/trinitydesktop/DCOP/Response.java
index 5df99427..aca9fc61 100644
--- a/dcopjava/binding/org/kde/DCOP/Response.java
+++ b/dcopjava/binding/org/trinitydesktop/DCOP/Response.java
@@ -1,4 +1,4 @@
-package org.kde.DCOP;
+package org.trinitydesktop.DCOP;
public class Response
diff --git a/dcopjava/binding/org/kde/DCOP/Stub.java b/dcopjava/binding/org/trinitydesktop/DCOP/Stub.java
index e9267fa5..0a23543a 100644
--- a/dcopjava/binding/org/kde/DCOP/Stub.java
+++ b/dcopjava/binding/org/trinitydesktop/DCOP/Stub.java
@@ -1,4 +1,4 @@
-package org.kde.DCOP;
+package org.trinitydesktop.DCOP;
import java.io.*;
@@ -20,7 +20,7 @@ public class Stub
_client = new Client();
_client.attach();
}
-
+
public String app()
{
return _app;
@@ -31,7 +31,7 @@ public class Stub
return _obj;
}
-
+
public Client client()
{
return _client;
@@ -68,7 +68,7 @@ public class Stub
{
return is.readBoolean();
}
-
+
protected void write_bool(DataOutputStream os, boolean val) throws IOException
{
os.writeBoolean(val);
@@ -78,7 +78,7 @@ public class Stub
{
return is.readShort();
}
-
+
protected void write_short_int(DataOutputStream os, short val) throws IOException
{
os.writeShort(val);
@@ -88,7 +88,7 @@ public class Stub
{
return is.readInt();
}
-
+
protected void write_int(DataOutputStream os, int val) throws IOException
{
os.writeInt(val);
@@ -98,7 +98,7 @@ public class Stub
{
return is.readInt();
}
-
+
protected void write_long_int(DataOutputStream os, int val) throws IOException
{
os.writeInt(val);
@@ -108,7 +108,7 @@ public class Stub
{
return is.readFloat();
}
-
+
protected void write_float(DataOutputStream os, float val) throws IOException
{
os.writeFloat(val);
@@ -118,7 +118,7 @@ public class Stub
{
return is.readDouble();
}
-
+
protected void write_double(DataOutputStream os, double val) throws IOException
{
os.writeDouble(val);
@@ -137,7 +137,7 @@ public class Stub
return b.toString();
}
}
-
+
protected void write_QString(DataOutputStream os, String val) throws IOException
{
os.writeInt(val.length()*2);
@@ -153,7 +153,7 @@ public class Stub
b.append((char)is.readByte());
return b.toString();
}
-
+
protected void write_QCString(DataOutputStream os, String val) throws IOException
{
os.writeInt(val.length()+1);
@@ -170,7 +170,7 @@ public class Stub
result[i] = read_QString(is);
return result;
}
-
+
protected void write_QStringList(DataOutputStream os, String[] val) throws IOException
{
os.writeInt(val.length);
diff --git a/dcopjava/binding/org/kde/Makefile.am b/dcopjava/binding/org/trinitydesktop/Makefile.am
index 4e9d266d..4e9d266d 100644
--- a/dcopjava/binding/org/kde/Makefile.am
+++ b/dcopjava/binding/org/trinitydesktop/Makefile.am