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

KDEUI

  • sources
  • kde-4.14
  • kdelibs
  • kdeui
  • util
kxmessages.h
Go to the documentation of this file.
1 /****************************************************************************
2 
3  Copyright (C) 2001-2003 Lubos Lunak <l.lunak@kde.org>
4 
5 Permission is hereby granted, free of charge, to any person obtaining a
6 copy of this software and associated documentation files (the "Software"),
7 to deal in the Software without restriction, including without limitation
8 the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 and/or sell copies of the Software, and to permit persons to whom the
10 Software is furnished to do so, subject to the following conditions:
11 
12 The above copyright notice and this permission notice shall be included in
13 all copies or substantial portions of the Software.
14 
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 DEALINGS IN THE SOFTWARE.
22 
23 ****************************************************************************/
24 
25 #ifndef KXMESSAGES_H
26 #define KXMESSAGES_H
27 
28 #include <kdeui_export.h>
29 #include <QtGui/QWidget>
30 #include <QtCore/QMap>
31 #ifdef Q_WS_X11
32 #include <X11/X.h>
33 
34 class QString;
35 
36 class KXMessagesPrivate;
45 // KDE4 - make this internal for KStartupInfo only?
46 class KDEUI_EXPORT KXMessages
47  : public QWidget
48  {
49  Q_OBJECT
50  public:
60  KXMessages( const char* accept_broadcast, QWidget* parent, bool obsolete );
65  explicit KXMessages( const char* accept_broadcast = NULL, QWidget* parent = NULL );
66 
67  virtual ~KXMessages();
78  void sendMessage( WId w, const char* msg_type, const QString& message,
79  bool obsolete );
84  void sendMessage( WId w, const char* msg_type, const QString& message );
93  void broadcastMessage( const char* msg_type, const QString& message,
94  int screen, bool obsolete );
99  void broadcastMessage( const char* msg_type, const QString& message );
100 
114  static bool sendMessageX( Display* disp, WId w, const char* msg_type,
115  const QString& message, bool obsolete );
120  static bool sendMessageX( Display* disp, WId w, const char* msg_type,
121  const QString& message );
122 
135  static bool broadcastMessageX( Display* disp, const char* msg_type,
136  const QString& message, int screen, bool obsolete );
141  static bool broadcastMessageX( Display* disp, const char* msg_type,
142  const QString& message );
143  Q_SIGNALS:
148  void gotMessage( const QString& message );
149  protected:
153  virtual bool x11Event( XEvent* ev );
154  private:
155  static void send_message_internal( WId w_P, const QString& msg_P, long mask_P,
156  Display* disp, Atom atom1_P, Atom atom2_P, Window handle_P );
157  KXMessagesPrivate * const d;
158  };
159 
160 #endif
161 #endif
162 
Atom
unsigned long Atom
Definition: kapplication.h:29
message
void message(KMessage::MessageType messageType, const QString &text, const QString &caption=QString())
QWidget
KXMessages
Sending string messages to other applications using the X Client Messages.
Definition: kxmessages.h:46
QWidget::x11Event
virtual bool x11Event(XEvent *event)
QString
Window
kdeui_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • 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