class KXMessages

# class KXMessages | Sending string messages to other applications using the X Client Messages. More...
Definition | `#include <kxmessages.h>`
Inherits | QWidget (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KXMessages ( const char* accept_broadcast = NULL, QWidget* parent = NULL )
- virtual ~KXMessages ()
- void sendMessage ( WId w, const char* msg_type, const QString& message )
- void broadcastMessage ( const char* msg_type, const QString& message )

#### Signals

- void gotMessage ( const QString& message )

#### Public Static Methods

- static bool sendMessageX ( Display* disp, WId w, const char* msg_type, const QString& message )
- static bool broadcastMessageX ( Display* disp, const char* msg_type, const QString& message )

#### Protected Methods

- virtual bool x11Event ( XEvent* ev )

## Detailed Description

Sending string messages to other applications using the X Client Messages.

Used internally by KStartupInfo. You usually don't want to use this, use DCOP instead.

KXMessages ( const char* accept_broadcast = NULL, QWidget* parent = NULL ) | ### KXMessages

Creates an instance which will receive X messages.

Parameters:

accept_broadcast | if non-NULL, all broadcast messages with this message type will be received.
parent | the parent of this widget

~KXMessages () | ### ~KXMessages

[virtual]

void sendMessage ( WId w, const char* msg_type, const QString& message ) | ### sendMessage

Sends the given message with the given message type only to given window.

Parameters:

w | X11 handle for the destination window
msg_type | the type of the message
message | the message itself

void broadcastMessage ( const char* msg_type, const QString& message ) | ### broadcastMessage

Broadcasts the given message with the given message type.

Parameters:

msg_type | the type of the message
message | the message itself

bool sendMessageX ( Display* disp, WId w, const char* msg_type, const QString& message ) | ### sendMessageX

[static]

Sends the given message with the given message type only to given window.

Parameters:

disp | X11 connection which will be used instead of qt_x11display()
w | X11 handle for the destination window
msg_type | the type of the message
message | the message itself

Returns: false when an error occurred, true otherwise

bool broadcastMessageX ( Display* disp, const char* msg_type, const QString& message ) | ### broadcastMessageX

[static]

Broadcasts the given message with the given message type.

Parameters:

disp | X11 connection which will be used instead of qt_x11display()
msg_type | the type of the message
message | the message itself

Returns: false when an error occurred, true otherwise

void gotMessage ( const QString& message ) | ### gotMessage

[signal]

Emitted when a message was received.

Parameters:

message | the message that has been received

bool x11Event ( XEvent* ev ) | ### x11Event

[protected virtual]

Reimplemented from QWidget.

- Version: $Id: kxmessages.h,v 1.8 2002/09/09 20:40:54 tjansen Exp $
- Author: Lubos Lunak
- Generated: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:15 2003, using kdoc 2.0a54.