You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

44 lines
1.1 KiB

/**************************************************************************
Copyright (c) 2002 by Salvador E. Tropea (SET)
Covered by the GPL license.
Description:
OS independent clipboard system class. Uses to access the OS clipboard.
***************************************************************************/
class TScreen;
class TVDOSClipboard;
class TVWin32Clipboard;
class TVX11Clipboard;
class TVOSClipboard
{
public:
TVOSClipboard() {};
~TVOSClipboard() { if (destroy) destroy(); };
static int (*copy)(int id, const char *buffer, unsigned len);
static char *(*paste)(int id, unsigned &length);
static const
char *getName() { return name; };
static int isAvailable() { return available; };
static const
char *getError();
static void clearError() { error=0; };
protected:
static void (*destroy)();
static const char *name;
static int available;
static int error;
static int errors;
static const char **nameErrors;
friend class TScreen;
friend class TVDOSClipboard;
friend class TVX11Clipboard;
friend class TVWin32Clipboard;
};