|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.KIPC
public class KIPC
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 KApplication. Examples are: PaletteChanged and StyleChanged. Messages with id code >= 32 are user messages. KApplication emits the signal kipcMessage(id,arg) for each user message it receives. KIPC is implemented using X11 ClientMessage events.
KApplication#kipcMessage
Field Summary | |
---|---|
static int |
BackgroundChanged
|
static int |
BlockShortcuts
|
static int |
ClipboardConfigChanged
|
static int |
FontChanged
|
static int |
IconChanged
|
static int |
PaletteChanged
A identifier for messages. |
static int |
SettingsChanged
|
static int |
StyleChanged
|
static int |
ToolbarStyleChanged
|
static int |
UserMessage
|
Constructor Summary | |
---|---|
|
KIPC()
|
protected |
KIPC(java.lang.Class dummy)
|
Method Summary | |
---|---|
void |
dispose()
Delete the wrapped C++ instance ahead of finalize() |
protected void |
finalize()
Deletes the wrapped C++ instance |
boolean |
isDisposed()
Has the wrapped C++ instance been deleted? |
static void |
sendMessage(int msg,
long w)
|
static void |
sendMessage(int msg,
long w,
int data)
Send a message to a specific application. |
static void |
sendMessageAll(int msg)
|
static void |
sendMessageAll(int msg,
int data)
Send a message to all KDE application on the current display. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PaletteChanged
public static final int FontChanged
public static final int StyleChanged
public static final int BackgroundChanged
public static final int SettingsChanged
public static final int IconChanged
public static final int ToolbarStyleChanged
public static final int ClipboardConfigChanged
public static final int BlockShortcuts
public static final int UserMessage
Constructor Detail |
---|
protected KIPC(java.lang.Class dummy)
public KIPC()
Method Detail |
---|
public static void sendMessage(int msg, long w, int data)
msg
- The message to send.w
- The window id of a toplevel window of the target application.data
- An optional integer of data.public static void sendMessage(int msg, long w)
public static void sendMessageAll(int msg, int data)
msg
- The message to send.data
- An optional integer of data.public static void sendMessageAll(int msg)
protected void finalize() throws java.lang.InternalError
finalize
in class java.lang.Object
java.lang.InternalError
public void dispose()
public boolean isDisposed()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |