KDEUI
#include <kxmessages.h>
Signals | |
void | gotMessage (const QString &message) |
Public Member Functions | |
KXMessages (const char *accept_broadcast, QWidget *parent, bool obsolete) | |
KXMessages (const char *accept_broadcast=NULL, QWidget *parent=NULL) | |
virtual | ~KXMessages () |
void | broadcastMessage (const char *msg_type, const QString &message, int screen, bool obsolete) |
void | broadcastMessage (const char *msg_type, const QString &message) |
void | sendMessage (WId w, const char *msg_type, const QString &message, bool obsolete) |
void | sendMessage (WId w, const char *msg_type, const QString &message) |
Static Public Member Functions | |
static bool | broadcastMessageX (Display *disp, const char *msg_type, const QString &message, int screen, bool obsolete) |
static bool | broadcastMessageX (Display *disp, const char *msg_type, const QString &message) |
static bool | sendMessageX (Display *disp, WId w, const char *msg_type, const QString &message, bool obsolete) |
static bool | sendMessageX (Display *disp, WId w, const char *msg_type, const QString &message) |
Protected Member Functions | |
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 DBUS instead.
Definition at line 46 of file kxmessages.h.
Constructor & Destructor Documentation
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 obsolete always set to false (needed for backwards compatibility with KDE3.1 and older)
Definition at line 66 of file kxmessages.cpp.
|
explicit |
- Deprecated:
- This method is equivalent to the other constructor with obsolete = true.
Definition at line 48 of file kxmessages.cpp.
|
virtual |
Definition at line 85 of file kxmessages.cpp.
Member Function Documentation
void KXMessages::broadcastMessage | ( | const char * | msg_type, |
const QString & | message, | ||
int | screen, | ||
bool | obsolete | ||
) |
Broadcasts the given message with the given message type.
- Parameters
-
msg_type the type of the message message the message itself screen X11 screen to use, -1 for the default obsolete always set to false (needed for backwards compatibility with KDE3.1 and older)
Definition at line 96 of file kxmessages.cpp.
void KXMessages::broadcastMessage | ( | const char * | msg_type, |
const QString & | message | ||
) |
- Deprecated:
- This method is equivalent to broadcastMessage() with obsolete = true.
Definition at line 91 of file kxmessages.cpp.
|
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 screen X11 screen to use, -1 for the default obsolete always set to false (needed for backwards compatibility with KDE3.1 and older)
- Returns
- false when an error occurred, true otherwise
Definition at line 125 of file kxmessages.cpp.
|
static |
- Deprecated:
- This method is equivalent to broadcastMessageX() with obsolete = true.
Definition at line 119 of file kxmessages.cpp.
|
signal |
Emitted when a message was received.
- Parameters
-
message the message that has been received
void KXMessages::sendMessage | ( | WId | w, |
const char * | msg_type, | ||
const QString & | message, | ||
bool | obsolete | ||
) |
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 obsolete always set to false (needed for backwards compatibility with KDE3.1 and older)
Definition at line 111 of file kxmessages.cpp.
void KXMessages::sendMessage | ( | WId | w, |
const char * | msg_type, | ||
const QString & | message | ||
) |
- Deprecated:
- This method is equivalent to sendMessage() with obsolete = true.
Definition at line 106 of file kxmessages.cpp.
|
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 obsolete always set to false (needed for backwards compatibility with KDE3.1 and older)
- Returns
- false when an error occurred, true otherwise
Definition at line 148 of file kxmessages.cpp.
|
static |
- Deprecated:
- This method is equivalent to sendMessageX() with obsolete = true.
Definition at line 142 of file kxmessages.cpp.
|
protectedvirtual |
Definition at line 189 of file kxmessages.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.