• 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 Q_MOC_RUN
34 #define Q_WS_X11
35 #endif // Q_MOC_RUN
36 
37 #ifdef Q_WS_X11
38 #include <X11/X.h>
39 
40 class TQString;
41 
42 class KXMessagesPrivate;
51 // KDE4 - make this internal for TDEStartupInfo only?
52 class TDECORE_EXPORT KXMessages
53  : public TQWidget
54  {
55  Q_OBJECT
56  public:
66  KXMessages( const char* accept_broadcast, TQWidget* parent, bool obsolete );
71  KXMessages( const char* accept_broadcast = NULL, TQWidget* parent = NULL );
72 
73  virtual ~KXMessages();
84  void sendMessage( WId w, const char* msg_type, const TQString& message,
85  bool obsolete );
90  void sendMessage( WId w, const char* msg_type, const TQString& message );
99  void broadcastMessage( const char* msg_type, const TQString& message,
100  int screen, bool obsolete );
105  void broadcastMessage( const char* msg_type, const TQString& message );
106 
120  static bool sendMessageX( Display* disp, WId w, const char* msg_type,
121  const TQString& message, bool obsolete );
126  static bool sendMessageX( Display* disp, WId w, const char* msg_type,
127  const TQString& message );
128 
141  static bool broadcastMessageX( Display* disp, const char* msg_type,
142  const TQString& message, int screen, bool obsolete );
147  static bool broadcastMessageX( Display* disp, const char* msg_type,
148  const TQString& message );
149  signals:
154  void gotMessage( const TQString& message );
155  protected:
159  virtual bool x11Event( XEvent* ev );
160  private:
161  static void send_message_internal( WId w_P, const TQString& msg_P, long mask_P,
162  Display* disp, Atom atom1_P, Atom atom2_P, Window handle_P );
163  TQWidget* handle;
164  Atom accept_atom2;
165  TQCString cached_atom_name_; // KDE4 unused
166  Atom accept_atom1;
167  TQMap< WId, TQCString > incoming_messages;
168  KXMessagesPrivate* d;
169  };
170 
171 #endif
172 #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
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.8.8
This website is maintained by Timothy Pearson.