summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/KIPC.java
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2014-01-08 20:06:00 +0100
committerSlávek Banko <slavek.banko@axis.cz>2014-01-08 20:06:00 +0100
commit636f509299122d02087c6fd62e1e4a46dbd22026 (patch)
tree70e43efceeb5b00e7f19cdac8da44928bd2fb459 /tdejava/koala/org/trinitydesktop/koala/KIPC.java
parent719b61750c08343f530068ed4127623aeac71cf0 (diff)
downloadtdebindings-636f509299122d02087c6fd62e1e4a46dbd22026.tar.gz
tdebindings-636f509299122d02087c6fd62e1e4a46dbd22026.zip
Rename many classes to avoid conflicts with KDE
Diffstat (limited to 'tdejava/koala/org/trinitydesktop/koala/KIPC.java')
-rw-r--r--tdejava/koala/org/trinitydesktop/koala/KIPC.java76
1 files changed, 76 insertions, 0 deletions
diff --git a/tdejava/koala/org/trinitydesktop/koala/KIPC.java b/tdejava/koala/org/trinitydesktop/koala/KIPC.java
new file mode 100644
index 00000000..c6a9ef61
--- /dev/null
+++ b/tdejava/koala/org/trinitydesktop/koala/KIPC.java
@@ -0,0 +1,76 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.trinitydesktop.koala;
+
+import org.trinitydesktop.qt.Qt;
+import org.trinitydesktop.qt.QtSupport;
+
+/**
+
+ This class implements a very simple IPC mechanism for KDE. You can send
+ a message of a predefined type to either a specific application, or to all
+ KDE application on the current display. The message can carry one integer of
+ data.
+ KIPC is mainly used in KDE for sending "Change Messages", i.e. a message to
+ all KDE apps that a certain setting (the font, for example) has changed.
+ For anything more complex it is recommended to use DCOP -- the Desktop
+ Communications Protocol.
+ Messages with id code < 32 are called "System Messages". These are
+ directly handled by TDEApplication. Examples are: PaletteChanged and
+ StyleChanged. Messages with id code >= 32 are user messages. TDEApplication
+ emits the signal kipcMessage(id,arg) for each user message it receives.
+ KIPC is implemented using X11 ClientMessage events.
+ @author Geert Jansen <jansen@kde.org>
+
+ @short This class implements a very simple IPC mechanism for KDE.
+ @see TDEApplication#kipcMessage
+
+*/
+public class KIPC implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KIPC(Class dummy){}
+
+ /**
+ A identifier for messages. Messages below UserMessage are system
+ messages, messages above can be defined by the user.
+ @short A identifier for messages.
+ */
+ public static final int PaletteChanged = 0;
+ public static final int FontChanged = 1;
+ public static final int StyleChanged = 2;
+ public static final int BackgroundChanged = 3;
+ public static final int SettingsChanged = 4;
+ public static final int IconChanged = 5;
+ public static final int ToolbarStyleChanged = 6;
+ public static final int ClipboardConfigChanged = 7;
+ public static final int BlockShortcuts = 8;
+ public static final int UserMessage = 32;
+
+ public KIPC() {
+ newKIPC();
+ }
+ private native void newKIPC();
+ /**
+ Send a message to a specific application.
+ @param msg The message to send.
+ @param w The window id of a toplevel window of the target application.
+ @param data An optional integer of data.
+ @short Send a message to a specific application.
+ */
+ public static native void sendMessage(int msg, long w, int data);
+ public static native void sendMessage(int msg, long w);
+ /**
+ Send a message to all KDE application on the current display.
+ @param msg The message to send.
+ @param data An optional integer of data.
+ @short Send a message to all KDE application on the current display.
+ */
+ public static native void sendMessageAll(int msg, int data);
+ public static native void sendMessageAll(int msg);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}