home *** CD-ROM | disk | FTP | other *** search
/ Geek 6 / Geek-006.iso / linux / video / xmovie-1.5.3.tar.gz / xmovie-1.5.3.tar / xmovie-1.5.3 / guicast / bcclipboard.h < prev    next >
C/C++ Source or Header  |  2000-11-29  |  670b  |  36 lines

  1. #ifndef BCCLIPBOARD_H
  2. #define BCCLIPBOARD_H
  3.  
  4. #include "thread.h"
  5.  
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8. #include <X11/Xatom.h>
  9. #include <X11/Xlib.h>
  10.  
  11. #define PRIMARY_SELECTION 0
  12. #define SECONDARY_SELECTION 1
  13.  
  14. class BC_Clipboard : public Thread
  15. {
  16. public:
  17.     BC_Clipboard(char *display_name);
  18.     ~BC_Clipboard();
  19.  
  20.     int start_clipboard();
  21.     void run();
  22.     int stop_clipboard();
  23.     long clipboard_len(int clipboard_num);
  24.     int to_clipboard(char *data, long len, int clipboard_num);
  25.     int from_clipboard(char *data, long maxlen, int clipboard_num);
  26.  
  27.     Display *display;
  28.     Atom completion_atom;
  29.     Atom primary_atom, secondary_atom;
  30.     Window win;
  31.     char *data[2];
  32.     long length[2];
  33. };
  34.  
  35. #endif
  36.