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

KHexEdit

  • sources
  • kde-4.12
  • kdelibs
  • 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 
23 namespace KHE
24 {
25 
47 class 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 
78 template<class T>
79 ClipboardInterface *clipboardInterface( T *t )
80 {
81  return t ? qobject_cast<KHE::ClipboardInterface *>( t ) : 0;
82 }
83 
84 }
85 
86 Q_DECLARE_INTERFACE( KHE::ClipboardInterface, "org.kde.khe.clipboardinterface/1.0" )
87 
88 #endif
KHE::ClipboardInterface::copy
virtual void copy()=0
tries to copy.
KHE::ClipboardInterface
A simple interface for interaction with the clipboard.
Definition: clipboardinterface.h:47
KHE::ClipboardInterface::cut
virtual void cut()=0
tries to cut.
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::clipboardInterface
ClipboardInterface * clipboardInterface(T *t)
tries to get the clipboard interface of t
Definition: clipboardinterface.h:79
KHE::ClipboardInterface::~ClipboardInterface
virtual ~ClipboardInterface()
Definition: clipboardinterface.h:50
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:52:13 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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