• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • 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 

KDEUI

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal