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

KDEUI

  • 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
5Permission is hereby granted, free of charge, to any person obtaining a
6copy of this software and associated documentation files (the "Software"),
7to deal in the Software without restriction, including without limitation
8the rights to use, copy, modify, merge, publish, distribute, sublicense,
9and/or sell copies of the Software, and to permit persons to whom the
10Software is furnished to do so, subject to the following conditions:
11
12The above copyright notice and this permission notice shall be included in
13all copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21DEALINGS 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
34class QString;
35
36class KXMessagesPrivate;
45// KDE4 - make this internal for KStartupInfo only?
46class 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
KXMessages
Sending string messages to other applications using the X Client Messages.
Definition: kxmessages.h:48
KXMessages::gotMessage
void gotMessage(const QString &message)
Emitted when a message was received.
QWidget
Atom
unsigned long Atom
Definition: kapplication.h:40
kdeui_export.h
message
void message(KMessage::MessageType messageType, const QString &text, const QString &caption=QString())
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
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