• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEUI

Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
KXMessages Class Reference

#include <kxmessages.h>

Inheritance diagram for KXMessages:
Inheritance graph
[legend]

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.

Author
Lubos Lunak l.lun.nosp@m.ak@k.nosp@m.de.or.nosp@m.g

Definition at line 46 of file kxmessages.h.

Constructor & Destructor Documentation

KXMessages::KXMessages ( const char *  accept_broadcast,
QWidget *  parent,
bool  obsolete 
)

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
obsoletealways set to false (needed for backwards compatibility with KDE3.1 and older)

Definition at line 66 of file kxmessages.cpp.

KXMessages::KXMessages ( const char *  accept_broadcast = NULL,
QWidget *  parent = NULL 
)
explicit
Deprecated:
This method is equivalent to the other constructor with obsolete = true.

Definition at line 48 of file kxmessages.cpp.

KXMessages::~KXMessages ( )
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_typethe type of the message
messagethe message itself
screenX11 screen to use, -1 for the default
obsoletealways 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.

bool KXMessages::broadcastMessageX ( Display *  disp,
const char *  msg_type,
const QString &  message,
int  screen,
bool  obsolete 
)
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
screenX11 screen to use, -1 for the default
obsoletealways 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.

bool KXMessages::broadcastMessageX ( Display *  disp,
const char *  msg_type,
const QString &  message 
)
static
Deprecated:
This method is equivalent to broadcastMessageX() with obsolete = true.

Definition at line 119 of file kxmessages.cpp.

void KXMessages::gotMessage ( const QString &  message)
signal

Emitted when a message was received.

Parameters
messagethe 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
wX11 handle for the destination window
msg_typethe type of the message
messagethe message itself
obsoletealways 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.

bool KXMessages::sendMessageX ( Display *  disp,
WId  w,
const char *  msg_type,
const QString &  message,
bool  obsolete 
)
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
obsoletealways 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.

bool KXMessages::sendMessageX ( Display *  disp,
WId  w,
const char *  msg_type,
const QString &  message 
)
static
Deprecated:
This method is equivalent to sendMessageX() with obsolete = true.

Definition at line 142 of file kxmessages.cpp.

bool KXMessages::x11Event ( XEvent *  ev)
protectedvirtual

Definition at line 189 of file kxmessages.cpp.


The documentation for this class was generated from the following files:
  • kxmessages.h
  • kxmessages.cpp
This file is part of the KDE documentation.
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.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal