KWin
|
#include <selection.h>
Signals | |
void | transferFinished (xcb_timestamp_t eventTime) |
Public Member Functions | |
bool | handleXfixesNotify (xcb_xfixes_selection_notify_event_t *event) |
bool | filterEvent (xcb_generic_event_t *event) |
xcb_atom_t | atom () const |
xcb_window_t | window () const |
void | overwriteRequestorWindow (xcb_window_t window) |
Static Public Member Functions | |
static xcb_atom_t | mimeTypeToAtom (const QString &mimeType) |
static xcb_atom_t | mimeTypeToAtomLiteral (const QString &mimeType) |
static QStringList | atomToMimeTypes (xcb_atom_t atom) |
static QString | atomName (xcb_atom_t atom) |
static void | sendSelectionNotify (xcb_selection_request_event_t *event, bool success) |
Protected Member Functions | |
Selection (xcb_atom_t atom, QObject *parent) | |
void | registerXfixes () |
virtual void | doHandleXfixesNotify (xcb_xfixes_selection_notify_event_t *event)=0 |
virtual void | x11OfferLost ()=0 |
virtual void | x11OffersChanged (const QStringList &added, const QStringList &removed)=0 |
virtual bool | handleClientMessage (xcb_client_message_event_t *event) |
void | setWlSource (WlSource *source) |
WlSource * | wlSource () const |
void | createX11Source (xcb_xfixes_selection_notify_event_t *event) |
X11Source * | x11Source () const |
void | ownSelection (bool own) |
void | setWindow (xcb_window_t window) |
Base class representing generic X selections and their respective Wayland counter-parts.
The class needs to be subclassed and adjusted according to the selection, but provides common fucntionality to be expected of all selections.
A selection should exist through the whole runtime of an Xwayland session.
Independently of each other the class holds the currently active source instance and active transfers relative to the represented selection.
Definition at line 44 of file selection.h.
|
protected |
Definition at line 80 of file selection.cpp.
|
inline |
Definition at line 59 of file selection.h.
|
static |
Definition at line 48 of file selection.cpp.
|
static |
Definition at line 63 of file selection.cpp.
|
protected |
Definition at line 184 of file selection.cpp.
|
protectedpure virtual |
Implemented in KWin::Xwl::Dnd.
bool KWin::Xwl::Selection::filterEvent | ( | xcb_generic_event_t * | event | ) |
Definition at line 117 of file selection.cpp.
|
inlineprotectedvirtual |
Reimplemented in KWin::Xwl::Dnd.
Definition at line 80 of file selection.h.
bool KWin::Xwl::Selection::handleXfixesNotify | ( | xcb_xfixes_selection_notify_event_t * | event | ) |
Definition at line 90 of file selection.cpp.
|
static |
Definition at line 29 of file selection.cpp.
|
static |
Definition at line 43 of file selection.cpp.
void KWin::Xwl::Selection::overwriteRequestorWindow | ( | xcb_window_t | window | ) |
Definition at line 216 of file selection.cpp.
|
protected |
Definition at line 198 of file selection.cpp.
|
protected |
Definition at line 159 of file selection.cpp.
|
static |
Definition at line 136 of file selection.cpp.
|
inlineprotected |
Definition at line 97 of file selection.h.
|
protected |
Definition at line 170 of file selection.cpp.
|
signal |
|
inline |
Definition at line 63 of file selection.h.
|
inlineprotected |
Definition at line 86 of file selection.h.
|
protectedpure virtual |
Implemented in KWin::Xwl::Dnd.
|
protectedpure virtual |
Implemented in KWin::Xwl::Dnd.
|
inlineprotected |
Definition at line 91 of file selection.h.