Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
kdecore
kdecore
kdecore
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 "kdelibs_export.h"
27
36
class
KDECORE_EXPORT
KClipboardSynchronizer
:
public
TQObject
37
{
38
Q_OBJECT
39
40
public
:
42
friend
class
KlipperWidget;
43
friend
class
KApplication
;
44
49
static
KClipboardSynchronizer
*
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
~
KClipboardSynchronizer
();
97
98
private
slots:
99
void
slotSelectionChanged();
100
void
slotClipboardChanged();
101
102
private
:
103
KClipboardSynchronizer
( TQObject *parent = 0,
const
char
*name = 0L );
104
void
setupSignals();
105
106
static
void
setClipboard( TQMimeSource* data, TQClipboard::Mode mode );
107
108
static
KClipboardSynchronizer
*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 KApplication upon kipc message, invoked by klipper
119
static
void
newConfiguration(
int
config );
120
121
};
122
123
#endif // KCLIPBOARD_H
kdecore
Skip menu "kdecore"
Main Page
Modules
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
kdecore
Skip menu "kdecore"
arts
dcop
dnssd
interfaces
interface
library
kspeech
ktexteditor
kabc
kate
kcmshell
kdecore
kded
kdefx
kdeprint
kdesu
kdeui
kdoctools
khtml
kimgio
kinit
kio
bookmarks
httpfilter
kfile
kio
kioexec
kpasswdserver
kssl
kioslave
http
kjs
kmdi
kmdi
knewstuff
kparts
krandr
kresources
kspell2
kunittest
kutils
kwallet
libkmid
libkscreensaver