Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
DragMarshalling.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
8#include <PhosphorProtocol/phosphorprotocol_export.h>
9
11
12#include <QDBusArgument>
13#include <QDBusMetaType>
14
19
20namespace PhosphorProtocol {
21
22PHOSPHORPROTOCOL_EXPORT QDBusArgument& operator<<(QDBusArgument& arg, const DragPolicy& p);
23PHOSPHORPROTOCOL_EXPORT const QDBusArgument& operator>>(const QDBusArgument& arg, DragPolicy& p);
24PHOSPHORPROTOCOL_EXPORT QDBusArgument& operator<<(QDBusArgument& arg, const DragOutcome& o);
25PHOSPHORPROTOCOL_EXPORT const QDBusArgument& operator>>(const QDBusArgument& arg, DragOutcome& o);
26
27static_assert(PhosphorDBus::HasDBusStreaming<DragPolicy>::value, "DragPolicy missing QDBusArgument operators");
28static_assert(PhosphorDBus::HasDBusStreaming<DragOutcome>::value, "DragOutcome missing QDBusArgument operators");
29
30} // namespace PhosphorProtocol
D-Bus marshalling for the autotile value types (see AutotileTypes.h).
Definition AutotileMarshalling.h:16
PHOSPHORPROTOCOL_EXPORT QDBusArgument & operator<<(QDBusArgument &arg, const TileRequestEntry &e)
PHOSPHORPROTOCOL_EXPORT const QDBusArgument & operator>>(const QDBusArgument &arg, TileRequestEntry &e)
Compile-time check that a type has QDBusArgument streaming operators.
Definition Streaming.h:27
Drag outcome — daemon-authoritative decision about what to apply at drag end.
Definition DragTypes.h:85
Drag policy — daemon-authoritative decision about how a drag should be handled.
Definition DragTypes.h:58