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

tdecore

  • tdecore
kclipboard.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2002 Carsten Pfeiffer <pfeiffer@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2, as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 #ifndef KCLIPBOARD_H
20 #define KCLIPBOARD_H
21 
22 #include <tqclipboard.h>
23 #include <tqmime.h>
24 #include <tqobject.h>
25 #include <tqstrlist.h>
26 #include "tdelibs_export.h"
27 
36 class TDECORE_EXPORT TDEClipboardSynchronizer : public TQObject
37 {
38  TQ_OBJECT
39 
40 public:
42  friend class KlipperWidget;
43  friend class TDEApplication;
44 
49  static TDEClipboardSynchronizer *self();
50 
58  static void setSynchronizing( bool sync );
59 
66  static bool isSynchronizing()
67  {
68  return s_sync;
69  }
70 
80  static void setReverseSynchronizing( bool enable );
81 
89  static bool isReverseSynchronizing()
90  {
91  return s_reverse_sync;
92  }
93 
94 
95 protected:
96  ~TDEClipboardSynchronizer();
97 
98 private slots:
99  void slotSelectionChanged();
100  void slotClipboardChanged();
101 
102 private:
103  TDEClipboardSynchronizer( TQObject *parent = 0, const char *name = 0L );
104  void setupSignals();
105 
106  static void setClipboard( TQMimeSource* data, TQClipboard::Mode mode );
107 
108  static TDEClipboardSynchronizer *s_self;
109  static bool s_sync;
110  static bool s_reverse_sync;
111  static bool s_blocked;
112 
113  class MimeSource;
114 
115 private:
116  // needed by klipper
117  enum Configuration { Synchronize = 1 };
118  // called by TDEApplication upon kipc message, invoked by klipper
119  static void newConfiguration( int config );
120 
121 };
122 
123 #endif // KCLIPBOARD_H
TDEApplication
Controls and provides information to all KDE applications.
Definition: tdeapplication.h:95
TDEClipboardSynchronizer
This class is only for internal use.
Definition: kclipboard.h:37
TDEClipboardSynchronizer::isReverseSynchronizing
static bool isReverseSynchronizing()
Checks whether the Clipboard buffer will be copied to the Selection buffer upon changes.
Definition: kclipboard.h:89
TDEClipboardSynchronizer::isSynchronizing
static bool isSynchronizing()
Checks whether Clipboard and Selection will be synchronized upon changes.
Definition: kclipboard.h:66

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.