forked from quickshell/quickshell
dbus/properties: allow removing to/from wire transforms
Useful when properties are only read/written in one direction.
This commit is contained in:
parent
ac50767873
commit
0e9e593078
3 changed files with 23 additions and 21 deletions
|
|
@ -91,7 +91,6 @@ struct DBusDataTransform<qs::service::upower::UPowerDeviceState::Enum> {
|
|||
using Wire = quint32;
|
||||
using Data = qs::service::upower::UPowerDeviceState::Enum;
|
||||
static DBusResult<Data> fromWire(Wire wire);
|
||||
static Wire toWire(const Data& value);
|
||||
};
|
||||
|
||||
template <>
|
||||
|
|
@ -99,7 +98,6 @@ struct DBusDataTransform<qs::service::upower::UPowerDeviceType::Enum> {
|
|||
using Wire = quint32;
|
||||
using Data = qs::service::upower::UPowerDeviceType::Enum;
|
||||
static DBusResult<Data> fromWire(Wire wire);
|
||||
static Wire toWire(const Data& value);
|
||||
};
|
||||
|
||||
template <>
|
||||
|
|
@ -107,7 +105,6 @@ struct DBusDataTransform<qs::service::upower::PowerPercentage> {
|
|||
using Wire = qreal;
|
||||
using Data = qreal;
|
||||
static DBusResult<Data> fromWire(Wire wire);
|
||||
static Wire toWire(const Data& value);
|
||||
};
|
||||
|
||||
} // namespace qs::dbus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue