org.kde.koala
Class KIPC
public
class
KIPC
extends Object
implements 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 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.
Author: Geert Jansen
See Also: KApplication
UNKNOWN: This class implements a very simple IPC mechanism for KDE.
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, int data)
Send a message to a specific application. |
static void | sendMessage(int msg, long w) |
static void | sendMessageAll(int msg, int data)
Send a message to all KDE application on the current display. |
static void | sendMessageAll(int msg) |
public static final int BackgroundChanged
public static final int BlockShortcuts
public static final int ClipboardConfigChanged
public static final int FontChanged
public static final int IconChanged
public static final int PaletteChanged
A identifier for messages. Messages below UserMessage are system
messages, messages above can be defined by the user.
UNKNOWN: A identifier for messages.
public static final int SettingsChanged
public static final int StyleChanged
public static final int ToolbarStyleChanged
public static final int UserMessage
protected KIPC(Class dummy)
public KIPC()
public void dispose()
Delete the wrapped C++ instance ahead of finalize()
protected void finalize()
Deletes the wrapped C++ instance
public boolean isDisposed()
Has the wrapped C++ instance been deleted?
public static void sendMessage(int msg, long w, int data)
Send a message to a specific application.
Parameters: msg The message to send. w The window id of a toplevel window of the target application. data An optional integer of data.
UNKNOWN: Send a message to a specific application.
public static void sendMessage(int msg, long w)
public static void sendMessageAll(int msg, int data)
Send a message to all KDE application on the current display.
Parameters: msg The message to send. data An optional integer of data.
UNKNOWN: Send a message to all KDE application on the current display.
public static void sendMessageAll(int msg)