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

KDEUI

kxmessages.h
Go to the documentation of this file.
00001 /****************************************************************************
00002 
00003  Copyright (C) 2001-2003 Lubos Lunak        <l.lunak@kde.org>
00004 
00005 Permission is hereby granted, free of charge, to any person obtaining a
00006 copy of this software and associated documentation files (the "Software"),
00007 to deal in the Software without restriction, including without limitation
00008 the rights to use, copy, modify, merge, publish, distribute, sublicense,
00009 and/or sell copies of the Software, and to permit persons to whom the
00010 Software is furnished to do so, subject to the following conditions:
00011 
00012 The above copyright notice and this permission notice shall be included in
00013 all copies or substantial portions of the Software.
00014 
00015 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00016 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00017 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
00018 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00019 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00020 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00021 DEALINGS IN THE SOFTWARE.
00022 
00023 ****************************************************************************/
00024 
00025 #ifndef KXMESSAGES_H
00026 #define KXMESSAGES_H
00027 
00028 #include <kdeui_export.h>
00029 #include <QtGui/QWidget>
00030 #include <QtCore/QMap>
00031 #ifdef Q_WS_X11
00032 #include <X11/X.h>
00033 
00034 class QString;
00035 
00036 class KXMessagesPrivate;
00045 // KDE4 - make this internal for KStartupInfo only?
00046 class KDEUI_EXPORT KXMessages
00047     : public QWidget
00048     {
00049     Q_OBJECT
00050     public:
00060         KXMessages( const char* accept_broadcast, QWidget* parent, bool obsolete );
00065         explicit KXMessages( const char* accept_broadcast = NULL, QWidget* parent = NULL );
00066 
00067         virtual ~KXMessages();
00078         void sendMessage( WId w, const char* msg_type, const QString& message,
00079             bool obsolete );
00084         void sendMessage( WId w, const char* msg_type, const QString& message );
00093         void broadcastMessage( const char* msg_type, const QString& message,
00094             int screen, bool obsolete );
00099         void broadcastMessage( const char* msg_type, const QString& message );
00100 
00114         static bool sendMessageX( Display* disp, WId w, const char* msg_type,
00115             const QString& message, bool obsolete );
00120         static bool sendMessageX( Display* disp, WId w, const char* msg_type,
00121             const QString& message );
00122 
00135         static bool broadcastMessageX( Display* disp, const char* msg_type,
00136             const QString& message, int screen, bool obsolete );
00141         static bool broadcastMessageX( Display* disp, const char* msg_type,
00142             const QString& message );
00143     Q_SIGNALS:
00148         void gotMessage( const QString& message );
00149     protected:
00153         virtual bool x11Event( XEvent* ev );
00154     private:
00155         static void send_message_internal( WId w_P, const QString& msg_P, long mask_P,
00156             Display* disp, Atom atom1_P, Atom atom2_P, Window handle_P );
00157         KXMessagesPrivate * const d;
00158     };
00159 
00160 #endif
00161 #endif
00162 
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 20:53:08 by doxygen 1.8.0 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.8.3 API Reference

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