/*************************************************************************** clipboardinterface.h - description ------------------- begin : Sat Sep 13 2003 copyright : (C) 2003 by Friedrich W. H. Kossebau email : Friedrich.W.H@Kossebau.de ***************************************************************************/ /*************************************************************************** * * * This library is free software; you can redistribute it and/or * * modify it under the terms of the GNU Library General Public * * License version 2 as published by the Free Software Foundation. * * * ***************************************************************************/ #ifndef CLIPBOARDINTERFACE_H #define CLIPBOARDINTERFACE_H namespace KHE { /** * @short A simple interface for interaction with the clipboard * * This interface enables the interaction with the clipboard. It relies on the * possibilities of signal/slot so a class B that implements this interface * should be derived from TQObject. When connecting to a signal or a slot * the class B has to be used, not the interface. *
* Example:
* \code
* KHE::ClipboardInterface *Clipboard = KHE::clipboardInterface( BytesEditWidget );
* if( Clipboard )
* {
* � // Yes, use BytesEditWidget, not Clipboard, because that's the TQObject, indeed hacky...
* � connect( BytesEditWidget, TQ_SIGNAL(copyAvailable(bool)), this, TQ_SLOT(offerCopy(bool)) );
* }
* \endcode
*
* @author Friedrich W. H. Kossebau