• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KHexEdit

  • interfaces
  • khexedit
clipboardinterface.h
Go to the documentation of this file.
1/***************************************************************************
2 clipboardinterface.h - description
3 -------------------
4 begin : Sat Sep 13 2003
5 copyright : (C) 2003 by Friedrich W. H. Kossebau
6 email : kossebau@kde.org
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This library is free software; you can redistribute it and/or *
12 * modify it under the terms of the GNU Library General Public *
13 * License version 2 as published by the Free Software Foundation. *
14 * *
15 ***************************************************************************/
16
17
18#ifndef KHE_CLIPBOARDINTERFACE_H
19#define KHE_CLIPBOARDINTERFACE_H
20
21#include <QtCore/QObject>
22
23namespace KHE
24{
25
47class ClipboardInterface
48{
49 public:
50 virtual ~ClipboardInterface() {}
51
52 public: // slots
54 virtual void copy() = 0;
56 virtual void cut() = 0;
61 virtual void paste() = 0;
62
63 public: // signals
70 virtual void copyAvailable( bool Really ) = 0;
71};
72
73
78template<class T>
79ClipboardInterface *clipboardInterface( T *t )
80{
81 return t ? qobject_cast<KHE::ClipboardInterface *>( t ) : 0;
82}
83
84}
85
86Q_DECLARE_INTERFACE( KHE::ClipboardInterface, "org.kde.khe.clipboardinterface/1.0" )
87
88#endif
KHE::ClipboardInterface
A simple interface for interaction with the clipboard.
Definition: clipboardinterface.h:48
KHE::ClipboardInterface::cut
virtual void cut()=0
tries to cut.
KHE::ClipboardInterface::~ClipboardInterface
virtual ~ClipboardInterface()
Definition: clipboardinterface.h:50
KHE::ClipboardInterface::copy
virtual void copy()=0
tries to copy.
KHE::ClipboardInterface::paste
virtual void paste()=0
tries to paste.
KHE::ClipboardInterface::copyAvailable
virtual void copyAvailable(bool Really)=0
signal: tells whether copy is possible or not.
KHE
KHE (short for KHexEdit) is KDE's namespace for all things related to the viewing/editing of bytes.
Definition: byteseditinterface.h:31
KHE::clipboardInterface
ClipboardInterface * clipboardInterface(T *t)
tries to get the clipboard interface of t
Definition: clipboardinterface.h:79
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHexEdit

Skip menu "KHexEdit"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Members
  • File List
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal