dbus/properties: remove non bindable based dbus property impl

This commit is contained in:
outfoxxed 2024-11-21 19:54:07 -08:00
parent 324fe9274d
commit ec143d6119
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
2 changed files with 0 additions and 115 deletions

View file

@ -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,