COSXClipboard Class Reference

OS X clipboard implementation. More...

#include <COSXClipboard.h>

Inherits IClipboard.

Inheritance diagram for COSXClipboard:

Inheritance graph
[legend]
Collaboration diagram for COSXClipboard:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 COSXClipboard ()
virtual ~COSXClipboard ()
virtual bool empty ()
 Empty clipboard.
virtual void add (EFormat, const CString &data)
virtual bool open (Time) const
virtual void close () const
 Close clipboard.
virtual Time getTime () const
 Get time.
virtual bool has (EFormat) const
virtual CString get (EFormat) const
bool synchronize ()

Static Public Member Functions

static bool isOwnedBySynergy ()
 Test if clipboard is owned by synergy.

Detailed Description

OS X clipboard implementation.

Definition at line 25 of file COSXClipboard.h.


Member Function Documentation

void COSXClipboard::close (  )  const [virtual]

Close clipboard.

Close the clipboard. close() must match a preceding successful open(). This signals that the clipboard has been filled with all the necessary data or all data has been read. It does not mean the clipboard ownership should be released (if it was taken).

Implements IClipboard.

Definition at line 105 of file COSXClipboard.cpp.

bool COSXClipboard::empty (  )  [virtual]

Empty clipboard.

Take ownership of the clipboard and clear all data from it. This must be called between a successful open() and close(). Return false if the clipboard ownership could not be taken; the clipboard should not be emptied in this case.

Implements IClipboard.

Definition at line 42 of file COSXClipboard.cpp.

IClipboard::Time COSXClipboard::getTime (  )  const [virtual]

Get time.

Return the timestamp passed to the last successful open().

Implements IClipboard.

Definition at line 112 of file COSXClipboard.cpp.


The documentation for this class was generated from the following files:
Generated on Fri Nov 6 00:19:07 2009 for synergy-plus by  doxygen 1.4.7