class KXMessages

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

Definition#include <kxmessages.h>
InheritsQWidget (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Signals

Public Static Methods

Protected Methods


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_broadcastif non-NULL, all broadcast messages with this message type will be received.
parentthe 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:
wX11 handle for the destination window
msg_typethe type of the message
messagethe message itself

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

broadcastMessage

Broadcasts the given message with the given message type.

Parameters:
msg_typethe type of the message
messagethe 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:
dispX11 connection which will be used instead of qt_x11display()
wX11 handle for the destination window
msg_typethe type of the message
messagethe 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:
dispX11 connection which will be used instead of qt_x11display()
msg_typethe type of the message
messagethe message itself

Returns: false when an error occurred, true otherwise

void  gotMessage ( const QString& message )

gotMessage

[signal]

Emitted when a message was received.

Parameters:
messagethe message that has been received

bool  x11Event ( XEvent* ev )

x11Event

[protected virtual]

Reimplemented from QWidget.