![]() |
Deskflow 1.26.0.443
Keyboard and mouse sharing utility
|
#include <PortalClipboard.h>

Classes | |
| struct | SupportedMime |
Static Public Member Functions | |
| static QByteArray | formatMimeTypes (const char *const *mimeTypes) |
| static const SupportedMime * | findSupportedMime (const char *mime) |
| static const SupportedMime * | pickSupportedMime (const char *const *available) |
| static QByteArray | encodeFormat (IClipboard::Format format, const QByteArray &data) |
| static QByteArray | decodeFormat (IClipboard::Format format, const QByteArray &bytes) |
| static QByteArray | readSelectionBytes (XdpSession *session, const char *mime, qint64 maxBytes) |
| static void | claimOwnership (EiClipboard *cache, XdpSession *session) |
| Advertise the cache's formats to the portal selection. | |
| static void | serveSelectionTransfer (EiClipboard *cache, XdpSession *session, const char *mime, uint32_t serial) |
| static bool | readSelectionIntoCache (EiClipboard *cache, XdpSession *session, const char *const *mimeTypes, qint64 maxBytes) |
Static Public Attributes | |
| static constexpr SupportedMime | kSupportedMimes [] |
| static constexpr int | kReadTimeoutMs = 200 |
| static constexpr int | kWriteTimeoutMs = 200 |
| static constexpr qint64 | kChunkBytes = 64 * 1024 |
|
static |
Advertise the cache's formats to the portal selection.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Read every supported format offered by the portal into the cache. Returns true if any data was deposited.
|
static |
Respond to a selection-transfer signal by writing the cache's bytes for mime to the portal-provided fd. Always calls write_done.
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |