forked from quickshell/quickshell
dbus/properties: remove non bindable based dbus property impl
This commit is contained in:
parent
324fe9274d
commit
ec143d6119
2 changed files with 0 additions and 115 deletions
|
@ -110,24 +110,6 @@ void asyncReadPropertyInternal(
|
|||
QObject::connect(call, &QDBusPendingCallWatcher::finished, &interface, responseCallback);
|
||||
}
|
||||
|
||||
void AbstractDBusProperty::update() {
|
||||
if (this->group == nullptr) {
|
||||
qFatal(logDbusProperties) << "Tried to update dbus property" << this->nameRef()
|
||||
<< "which is not attached to a group";
|
||||
} else {
|
||||
this->group->requestPropertyUpdate(this);
|
||||
}
|
||||
}
|
||||
|
||||
void AbstractDBusProperty::write() {
|
||||
if (this->group == nullptr) {
|
||||
qFatal(logDbusProperties) << "Tried to write dbus property" << this->nameRef()
|
||||
<< "which is not attached to a group";
|
||||
} else {
|
||||
this->group->pushPropertyUpdate(this);
|
||||
}
|
||||
}
|
||||
|
||||
DBusPropertyGroup::DBusPropertyGroup(QVector<DBusPropertyCore*> properties, QObject* parent)
|
||||
: QObject(parent)
|
||||
, properties(std::move(properties)) {}
|
||||
|
@ -157,11 +139,6 @@ void DBusPropertyGroup::setInterface(QDBusAbstractInterface* interface) {
|
|||
}
|
||||
}
|
||||
|
||||
void DBusPropertyGroup::attachProperty(AbstractDBusProperty* property) {
|
||||
this->properties.append(property);
|
||||
property->group = this;
|
||||
}
|
||||
|
||||
void DBusPropertyGroup::attachProperty(DBusPropertyCore* property) {
|
||||
this->properties.append(property);
|
||||
}
|
||||
|
@ -325,8 +302,6 @@ QString DBusPropertyGroup::propertyString(const DBusPropertyCore* property) cons
|
|||
return this->toString() % ':' % property->nameRef();
|
||||
}
|
||||
|
||||
QString AbstractDBusProperty::toString() const { return this->group->propertyString(this); }
|
||||
|
||||
void DBusPropertyGroup::onPropertiesChanged(
|
||||
const QString& interfaceName,
|
||||
const QVariantMap& changedProperties,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue