#include <qwaylandclipboard.h>
|
static void | forceRoundtrip (struct wl_display *display) |
|
static void | keyboardFocus (void *data, struct wl_selection_offer *selection_offer, struct wl_input_device *input_device) |
|
static void | offer (void *data, struct wl_selection_offer *selection_offer, const char *type) |
|
static void | syncCallback (void *data) |
|
Definition at line 251 of file qwaylandclipboard.cpp.
◆ QWaylandClipboard()
Definition at line 165 of file qwaylandclipboard.cpp.
static QWaylandClipboard * clipboard
QWaylandDisplay * mDisplay
QWaylandMimeData * mMimeDataIn
struct wl_selection_offer * mOffer
◆ ~QWaylandClipboard()
QWaylandClipboard::~QWaylandClipboard |
( |
| ) |
|
Definition at line 171 of file qwaylandclipboard.cpp.
174 wl_selection_offer_destroy(
mOffer);
QWaylandMimeData * mMimeDataIn
QList< QWaylandSelection * > mSelections
struct wl_selection_offer * mOffer
Q_OUTOFLINE_TEMPLATE void qDeleteAll(ForwardIterator begin, ForwardIterator end)
◆ createSelectionOffer()
void QWaylandClipboard::createSelectionOffer |
( |
uint32_t |
id | ) |
|
Definition at line 256 of file qwaylandclipboard.cpp.
Referenced by QWaylandDisplay::displayHandleGlobal().
260 wl_selection_offer_destroy(
mOffer);
QWaylandDisplay * mDisplay
QStringList mOfferedMimeTypes
void clear()
Removes all items from the list.
static void offer(void *data, struct wl_selection_offer *selection_offer, const char *type)
static const struct wl_selection_offer_listener selectionOfferListener
struct wl_selection_offer * mOffer
struct wl_display * wl_display() const
◆ forceRoundtrip()
void QWaylandClipboard::forceRoundtrip |
( |
struct wl_display * |
display | ) |
|
|
staticprivate |
Definition at line 189 of file qwaylandclipboard.cpp.
Referenced by retrieveData().
193 wl_display_iterate(
display, WL_DISPLAY_WRITABLE);
195 wl_display_iterate(
display, WL_DISPLAY_READABLE);
Q_GUI_EXPORT EGLDisplay display()
static void syncCallback(void *data)
◆ keyboardFocus()
void QWaylandClipboard::keyboardFocus |
( |
void * |
data, |
|
|
struct wl_selection_offer * |
selection_offer, |
|
|
struct wl_input_device * |
input_device |
|
) |
| |
|
staticprivate |
Definition at line 275 of file qwaylandclipboard.cpp.
281 wl_selection_offer_destroy(selection_offer);
static QWaylandClipboard * clipboard
QWaylandClipboardSignalEmitter mEmitter
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
QList< QWaylandSelection * > mSelections
static const char * data(const QByteArray &arr)
struct wl_selection_offer * mOffer
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ mimeData()
Reimplemented from QPlatformClipboard.
Definition at line 221 of file qwaylandclipboard.cpp.
QWaylandMimeData * mMimeDataIn
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
void setFormats(const QStringList &formatList)
QList< QWaylandSelection * > mSelections
QStringList mOfferedMimeTypes
struct wl_selection_offer * mOffer
T & last()
Returns a reference to the last item in the list.
◆ offer()
void QWaylandClipboard::offer |
( |
void * |
data, |
|
|
struct wl_selection_offer * |
selection_offer, |
|
|
const char * |
type |
|
) |
| |
|
staticprivate |
Definition at line 266 of file qwaylandclipboard.cpp.
Referenced by createSelectionOffer().
static QWaylandClipboard * clipboard
void append(const T &t)
Inserts value at the end of the list.
QStringList mOfferedMimeTypes
static const char * data(const QByteArray &arr)
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ retrieveData()
Definition at line 198 of file qwaylandclipboard.cpp.
Referenced by QWaylandMimeData::retrieveData_sys().
204 if (pipe(pipefd) == -1) {
205 qWarning(
"QWaylandClipboard: pipe() failed");
215 while ((n = read(pipefd[0], &buf,
sizeof buf)) > 0)
216 content.append(buf, n);
The QVariant class acts like a union for the most common Qt data types.
QWaylandDisplay * mDisplay
The QByteArray class provides an array of bytes.
static void forceRoundtrip(struct wl_display *display)
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
QStringList mOfferedMimeTypes
Q_CORE_EXPORT void qWarning(const char *,...)
QByteArray toLatin1() const Q_REQUIRED_RESULT
Returns a Latin-1 representation of the string as a QByteArray.
const char * constData() const
Returns a pointer to the data stored in the byte array.
struct wl_selection_offer * mOffer
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
struct wl_display * wl_display() const
◆ setMimeData()
Reimplemented from QPlatformClipboard.
Definition at line 234 of file qwaylandclipboard.cpp.
242 qWarning(
"QWaylandClipboard::setMimeData: No input devices");
QWaylandDisplay * mDisplay
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
void append(const T &t)
Inserts value at the end of the list.
QList< QWaylandSelection * > mSelections
Q_CORE_EXPORT void qWarning(const char *,...)
The QMimeData class provides a container for data that records information about its MIME type...
QList< QWaylandInputDevice * > inputDevices() const
◆ supportsMode()
◆ syncCallback()
void QWaylandClipboard::syncCallback |
( |
void * |
data | ) |
|
|
staticprivate |
◆ unregisterSelection()
◆ mDisplay
◆ mEmitter
◆ mMimeDataIn
◆ mOffer
struct wl_selection_offer* QWaylandClipboard::mOffer |
|
private |
◆ mOfferedMimeTypes
◆ mSelections
◆ selectionOfferListener
const struct wl_selection_offer_listener QWaylandClipboard::selectionOfferListener |
|
staticprivate |
The documentation for this class was generated from the following files: