#include <phosphor-compositor/include/PhosphorCompositor/DaemonClient.h>
|
| | DaemonClient (QObject *parent=nullptr) |
| |
| | ~DaemonClient () override |
| |
| bool | isDaemonReady () const |
| |
| void | setDragHandler (IDragHandler *handler) |
| |
| void | setGeometryHandler (IGeometryHandler *handler) |
| |
| void | setLifecycleHandler (ILifecycleHandler *handler) |
| |
| void | registerBridge (const QString &compositorId, int apiVersion, const QStringList &capabilities) |
| |
| void | notifyWindowOpened (const QString &windowId, const QString &screenId, int minWidth=0, int minHeight=0) |
| |
| void | notifyWindowOpenedBatch (const PhosphorProtocol::WindowOpenedList &windows) |
| |
| void | notifyWindowClosed (const QString &windowId) |
| |
| void | notifyWindowActivated (const QString &windowId, const QString &screenId) |
| |
| void | beginDrag (const QString &windowId, const QRect &frameGeometry, const QString &startScreenId, int mouseButtons=0) |
| | Canonical drag surface, mirroring org.plasmazones.WindowDrag.
|
| |
| void | updateDragCursor (const QString &windowId, int cursorX, int cursorY, int modifiers=0, int mouseButtons=0) |
| |
| void | endDrag (const QString &windowId, int cursorX, int cursorY, int modifiers=0, int mouseButtons=0, bool cancelled=false) |
| |
| void | notifyCursorScreenChanged (const QString &screenId) |
| |
| void | notifyPrimaryScreen (const QString &screenName) |
| |
| void | queryFloatingWindows () |
| |
| void | querySnappedWindows () |
| |
| void | queryPendingRestoreGeometries () |
| |
| void | queryVirtualScreens (const QString &screenId) |
| |
| void | pruneStaleWindows (const QStringList &liveWindowIds) |
| |
| void | probeDaemonAvailable (int timeoutMs=PhosphorProtocol::Service::DaemonReadyProbeTimeoutMs) |
| |
◆ DaemonClient()
| PhosphorCompositor::DaemonClient::DaemonClient |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ ~DaemonClient()
| PhosphorCompositor::DaemonClient::~DaemonClient |
( |
| ) |
|
|
override |
◆ beginDrag()
| void PhosphorCompositor::DaemonClient::beginDrag |
( |
const QString & |
windowId, |
|
|
const QRect & |
frameGeometry, |
|
|
const QString & |
startScreenId, |
|
|
int |
mouseButtons = 0 |
|
) |
| |
Canonical drag surface, mirroring org.plasmazones.WindowDrag.
The daemon decides and the plugin applies the verdict verbatim, so both ends of the drag are round trips: beginDrag delivers its DragPolicy through dragPolicyReceived and endDrag its DragOutcome through dragOutcomeReceived. Wire those signals before starting a drag. A payload that fails its own validationError() is dropped with a warning rather than emitted. updateDragCursor is the fire-and-forget hot path; the caller throttles it (~30Hz) and only sends it when the policy asked for streaming. On updateDragCursor and endDrag, modifiers / mouseButtons are the compositor's live keyboard/button state, 0 when unknown; beginDrag takes only mouseButtons.
◆ bridgeRegistered
| void PhosphorCompositor::DaemonClient::bridgeRegistered |
( |
const QString & |
sessionId, |
|
|
int |
peerApiVersion |
|
) |
| |
|
signal |
◆ bridgeRejected
| void PhosphorCompositor::DaemonClient::bridgeRejected |
( |
const QString & |
reason | ) |
|
|
signal |
◆ daemonDisconnected
| void PhosphorCompositor::DaemonClient::daemonDisconnected |
( |
| ) |
|
|
signal |
◆ daemonReady
| void PhosphorCompositor::DaemonClient::daemonReady |
( |
| ) |
|
|
signal |
◆ dragOutcomeReceived
Daemon's reply to endDrag.
Not emitted if the call failed or the outcome did not validate.
◆ dragPolicyReceived
Daemon's reply to beginDrag.
Not emitted if the call failed or the policy did not validate.
◆ endDrag()
| void PhosphorCompositor::DaemonClient::endDrag |
( |
const QString & |
windowId, |
|
|
int |
cursorX, |
|
|
int |
cursorY, |
|
|
int |
modifiers = 0, |
|
|
int |
mouseButtons = 0, |
|
|
bool |
cancelled = false |
|
) |
| |
◆ floatingWindowsReceived
| void PhosphorCompositor::DaemonClient::floatingWindowsReceived |
( |
const QStringList & |
windowIds | ) |
|
|
signal |
◆ isDaemonReady()
| bool PhosphorCompositor::DaemonClient::isDaemonReady |
( |
| ) |
const |
|
inline |
◆ notifyCursorScreenChanged()
| void PhosphorCompositor::DaemonClient::notifyCursorScreenChanged |
( |
const QString & |
screenId | ) |
|
◆ notifyPrimaryScreen()
| void PhosphorCompositor::DaemonClient::notifyPrimaryScreen |
( |
const QString & |
screenName | ) |
|
◆ notifyWindowActivated()
| void PhosphorCompositor::DaemonClient::notifyWindowActivated |
( |
const QString & |
windowId, |
|
|
const QString & |
screenId |
|
) |
| |
◆ notifyWindowClosed()
| void PhosphorCompositor::DaemonClient::notifyWindowClosed |
( |
const QString & |
windowId | ) |
|
◆ notifyWindowOpened()
| void PhosphorCompositor::DaemonClient::notifyWindowOpened |
( |
const QString & |
windowId, |
|
|
const QString & |
screenId, |
|
|
int |
minWidth = 0, |
|
|
int |
minHeight = 0 |
|
) |
| |
◆ notifyWindowOpenedBatch()
◆ pendingRestoreGeometriesReceived
| void PhosphorCompositor::DaemonClient::pendingRestoreGeometriesReceived |
( |
const QString & |
json | ) |
|
|
signal |
◆ pendingRestoresAvailable
| void PhosphorCompositor::DaemonClient::pendingRestoresAvailable |
( |
| ) |
|
|
signal |
◆ probeDaemonAvailable()
◆ pruneStaleWindows()
| void PhosphorCompositor::DaemonClient::pruneStaleWindows |
( |
const QStringList & |
liveWindowIds | ) |
|
◆ queryFloatingWindows()
| void PhosphorCompositor::DaemonClient::queryFloatingWindows |
( |
| ) |
|
◆ queryPendingRestoreGeometries()
| void PhosphorCompositor::DaemonClient::queryPendingRestoreGeometries |
( |
| ) |
|
◆ querySnappedWindows()
| void PhosphorCompositor::DaemonClient::querySnappedWindows |
( |
| ) |
|
◆ queryVirtualScreens()
| void PhosphorCompositor::DaemonClient::queryVirtualScreens |
( |
const QString & |
screenId | ) |
|
◆ reapplyGeometriesRequested
| void PhosphorCompositor::DaemonClient::reapplyGeometriesRequested |
( |
| ) |
|
|
signal |
◆ registerBridge()
| void PhosphorCompositor::DaemonClient::registerBridge |
( |
const QString & |
compositorId, |
|
|
int |
apiVersion, |
|
|
const QStringList & |
capabilities |
|
) |
| |
◆ runningWindowsRequested
| void PhosphorCompositor::DaemonClient::runningWindowsRequested |
( |
| ) |
|
|
signal |
◆ setDragHandler()
| void PhosphorCompositor::DaemonClient::setDragHandler |
( |
IDragHandler * |
handler | ) |
|
|
inline |
- Parameters
-
| handler | Not owned; caller retains lifetime. Must outlive this client. |
◆ setGeometryHandler()
| void PhosphorCompositor::DaemonClient::setGeometryHandler |
( |
IGeometryHandler * |
handler | ) |
|
|
inline |
- Parameters
-
| handler | Not owned; caller retains lifetime. Must outlive this client. |
◆ setLifecycleHandler()
| void PhosphorCompositor::DaemonClient::setLifecycleHandler |
( |
ILifecycleHandler * |
handler | ) |
|
|
inline |
- Parameters
-
| handler | Not owned; caller retains lifetime. Must outlive this client. |
◆ settingsChanged
| void PhosphorCompositor::DaemonClient::settingsChanged |
( |
| ) |
|
|
signal |
◆ snapAssistReady
| void PhosphorCompositor::DaemonClient::snapAssistReady |
( |
const QString & |
windowId, |
|
|
const QString & |
screenId, |
|
|
const PhosphorProtocol::EmptyZoneList & |
zones |
|
) |
| |
|
signal |
◆ snappedWindowsReceived
| void PhosphorCompositor::DaemonClient::snappedWindowsReceived |
( |
const QStringList & |
windowIds | ) |
|
|
signal |
◆ updateDragCursor()
| void PhosphorCompositor::DaemonClient::updateDragCursor |
( |
const QString & |
windowId, |
|
|
int |
cursorX, |
|
|
int |
cursorY, |
|
|
int |
modifiers = 0, |
|
|
int |
mouseButtons = 0 |
|
) |
| |
◆ virtualScreensChanged
| void PhosphorCompositor::DaemonClient::virtualScreensChanged |
( |
const QString & |
screenId | ) |
|
|
signal |
◆ virtualScreensReceived
The documentation for this class was generated from the following file: