• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

  • tdecore
kxmessages.h
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 <tqwidget.h>
29 #include <tqcstring.h>
30 #include <tqmap.h>
31 #include <tdelibs_export.h>
32 
33 #ifdef TQ_WS_X11
34 #include <X11/X.h>
35 
36 class TQString;
37 
38 class KXMessagesPrivate;
47 // KDE4 - make this internal for TDEStartupInfo only?
48 class TDECORE_EXPORT KXMessages
49  : public TQWidget
50  {
51  TQ_OBJECT
52  public:
62  KXMessages( const char* accept_broadcast, TQWidget* parent, bool obsolete );
67  KXMessages( const char* accept_broadcast = NULL, TQWidget* parent = NULL );
68 
69  virtual ~KXMessages();
80  void sendMessage( WId w, const char* msg_type, const TQString& message,
81  bool obsolete );
86  void sendMessage( WId w, const char* msg_type, const TQString& message );
95  void broadcastMessage( const char* msg_type, const TQString& message,
96  int screen, bool obsolete );
101  void broadcastMessage( const char* msg_type, const TQString& message );
102 
116  static bool sendMessageX( Display* disp, WId w, const char* msg_type,
117  const TQString& message, bool obsolete );
122  static bool sendMessageX( Display* disp, WId w, const char* msg_type,
123  const TQString& message );
124 
137  static bool broadcastMessageX( Display* disp, const char* msg_type,
138  const TQString& message, int screen, bool obsolete );
143  static bool broadcastMessageX( Display* disp, const char* msg_type,
144  const TQString& message );
145  signals:
150  void gotMessage( const TQString& message );
151  protected:
155  virtual bool x11Event( XEvent* ev );
156  private:
157  static void send_message_internal( WId w_P, const TQString& msg_P, long mask_P,
158  Display* disp, Atom atom1_P, Atom atom2_P, Window handle_P );
159  TQWidget* handle;
160  Atom accept_atom2;
161  TQCString cached_atom_name_; // KDE4 unused
162  Atom accept_atom1;
163  TQMap< WId, TQCString > incoming_messages;
164  KXMessagesPrivate* d;
165  };
166 
167 #endif
168 #endif

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.1
This website is maintained by Timothy Pearson.