Qt 4.8
|
#include <qxlibclipboard.h>
Public Functions | |
QByteArray | clipboardReadIncrementalProperty (Window win, Atom property, int nbytes, bool nullterm) |
bool | clipboardReadProperty (Window win, Atom property, bool deleteProperty, QByteArray *buffer, int *size, Atom *type, int *format) const |
QByteArray | getDataInFormat (Atom modeAtom, Atom fmtatom) |
void | handleSelectionRequest (XEvent *event) |
QMimeData * | mimeData (QClipboard::Mode mode) |
Window | owner () const |
QXlibClipboard (QXlibScreen *screen) | |
Window | requestor () const |
QXlibScreen * | screen () const |
void | setMimeData (QMimeData *data, QClipboard::Mode mode) |
void | setRequestor (Window window) |
bool | supportsMode (QClipboard::Mode mode) const |
Public Functions inherited from QPlatformClipboard | |
void | emitChanged (QClipboard::Mode mode) |
virtual | ~QPlatformClipboard () |
Private Functions | |
Atom | sendSelection (QMimeData *d, Atom target, Window window, Atom property) |
Atom | sendTargetsSelection (QMimeData *d, Window window, Atom property) |
void | setOwner (Window window) |
Properties | |
QMimeData * | m_clientClipboard |
QMimeData * | m_clientSelection |
Window | m_owner |
Window | m_requestor |
QXlibScreen * | m_screen |
QMimeData * | m_xClipboard |
QMimeData * | m_xSelection |
Static Private Attributes | |
static const int | clipboard_timeout = 5000 |
Definition at line 49 of file qxlibclipboard.h.
QXlibClipboard::QXlibClipboard | ( | QXlibScreen * | screen | ) |
Definition at line 152 of file qxlibclipboard.cpp.
QByteArray QXlibClipboard::clipboardReadIncrementalProperty | ( | Window | win, |
Atom | property, | ||
int | nbytes, | ||
bool | nullterm | ||
) |
Definition at line 583 of file qxlibclipboard.cpp.
Referenced by getDataInFormat().
bool QXlibClipboard::clipboardReadProperty | ( | Window | win, |
Atom | property, | ||
bool | deleteProperty, | ||
QByteArray * | buffer, | ||
int * | size, | ||
Atom * | type, | ||
int * | format | ||
) | const |
Definition at line 471 of file qxlibclipboard.cpp.
Referenced by clipboardReadIncrementalProperty(), getDataInFormat(), and handleSelectionRequest().
QByteArray QXlibClipboard::getDataInFormat | ( | Atom | modeAtom, |
Atom | fmtatom | ||
) |
Definition at line 641 of file qxlibclipboard.cpp.
Referenced by QXlibClipboardMime::formats_sys().
void QXlibClipboard::handleSelectionRequest | ( | XEvent * | event | ) |
Definition at line 348 of file qxlibclipboard.cpp.
Referenced by QXlibScreen::handleSelectionRequest().
|
virtual |
Reimplemented from QPlatformClipboard.
Definition at line 164 of file qxlibclipboard.cpp.
Window QXlibClipboard::owner | ( | ) | const |
Definition at line 262 of file qxlibclipboard.cpp.
Referenced by mimeData(), and setMimeData().
Window QXlibClipboard::requestor | ( | ) | const |
Definition at line 241 of file qxlibclipboard.cpp.
Referenced by getDataInFormat(), and handleSelectionRequest().
QXlibScreen * QXlibClipboard::screen | ( | ) | const |
Definition at line 236 of file qxlibclipboard.cpp.
Referenced by clipboardReadIncrementalProperty(), clipboardReadProperty(), QXlibClipboardMime::empty(), QXlibClipboardMime::formats_sys(), getDataInFormat(), handleSelectionRequest(), mimeData(), sendSelection(), and sendTargetsSelection().
|
private |
Definition at line 304 of file qxlibclipboard.cpp.
Referenced by handleSelectionRequest().
|
private |
Definition at line 283 of file qxlibclipboard.cpp.
Referenced by handleSelectionRequest().
|
virtual |
Reimplemented from QPlatformClipboard.
Definition at line 190 of file qxlibclipboard.cpp.
|
private |
Definition at line 275 of file qxlibclipboard.cpp.
Referenced by owner().
void QXlibClipboard::setRequestor | ( | Window | window | ) |
Definition at line 254 of file qxlibclipboard.cpp.
Referenced by clipboardReadIncrementalProperty(), and requestor().
|
virtual |
Reimplemented from QPlatformClipboard.
Definition at line 228 of file qxlibclipboard.cpp.
|
staticprivate |
Definition at line 90 of file qxlibclipboard.h.
Referenced by clipboardReadIncrementalProperty(), and getDataInFormat().
|
private |
Definition at line 82 of file qxlibclipboard.h.
Referenced by handleSelectionRequest(), mimeData(), and setMimeData().
|
private |
Definition at line 85 of file qxlibclipboard.h.
Referenced by handleSelectionRequest(), mimeData(), and setMimeData().
|
private |
Definition at line 88 of file qxlibclipboard.h.
Referenced by owner(), and setOwner().
|
private |
Definition at line 87 of file qxlibclipboard.h.
Referenced by requestor(), and setRequestor().
|
private |
Definition at line 79 of file qxlibclipboard.h.
Referenced by owner(), requestor(), screen(), setMimeData(), setOwner(), and setRequestor().
|
private |
Definition at line 81 of file qxlibclipboard.h.
Referenced by mimeData().
|
private |
Definition at line 84 of file qxlibclipboard.h.
Referenced by mimeData().