|
|
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.