# class KXMessages

###

Module | kdeui
Namespace |
Class | KXMessages
Inherits | QWidget

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.

Author Lubos Lunak <l.lunak@kde.org>

### methods

- KXMessages (accept_broadcast, parent, obsolete)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  accept_broadcast | char |
  parent | QWidget |
  obsolete | bool |

  Creates an instance which will receive X messages.

  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)

- KXMessages (accept_broadcast, parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  accept_broadcast | char | NULL
  parent | QWidget | NULL

  Deprecated This method is equivalent to the other constructor with obsolete = true.

- KXMessages (a0, a1)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | char | NULL
  a1 | QWidget | NULL

- broadcastMessage (msg_type, message, screen, obsolete)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  msg_type | char |
  message | QString |
  screen | int |
  obsolete | bool |

  Broadcasts the given message with the given message type.

  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)

- broadcastMessage (msg_type, message)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  msg_type | char |
  message | QString |

  Deprecated This method is equivalent to broadcastMessage() with obsolete = true.

- broadcastMessageX (disp, msg_type, message, screen, obsolete)

  returns bool
  static

  Argument | Type | Default
  --- | --- | ---
  disp | Display |
  msg_type | char |
  message | QString |
  screen | int |
  obsolete | bool |

  Broadcasts the given message with the given message type.

  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

- broadcastMessageX (disp, msg_type, message)

  returns bool
  static

  Argument | Type | Default
  --- | --- | ---
  disp | Display |
  msg_type | char |
  message | QString |

  Deprecated This method is equivalent to broadcastMessageX() with obsolete = true.

- gotMessage (message)

  returns Nothing
  SIGNAL ("gotMessage (const QString&)")

  Argument | Type | Default
  --- | --- | ---
  message | QString |

  Emitted when a message was received.

  message - the message that has been received

- sendMessage (w, msg_type, message, obsolete)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  w | WId |
  msg_type | char |
  message | QString |
  obsolete | bool |

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

  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)

- sendMessage (w, msg_type, message)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  w | WId |
  msg_type | char |
  message | QString |

  Deprecated This method is equivalent to sendMessage() with obsolete = true.

- sendMessageX (disp, w, msg_type, message, obsolete)

  returns bool
  static

  Argument | Type | Default
  --- | --- | ---
  disp | Display |
  w | WId |
  msg_type | char |
  message | QString |
  obsolete | bool |

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

  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

- sendMessageX (disp, w, msg_type, message)

  returns bool
  static

  Argument | Type | Default
  --- | --- | ---
  disp | Display |
  w | WId |
  msg_type | char |
  message | QString |

  Deprecated This method is equivalent to sendMessageX() with obsolete = true.

- x11Event (ev)

  returns bool
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  ev | XEvent |

  Internal