| 281 | } |
| 282 | |
| 283 | void Object::writePropertyRecordToSdBusVTable(const VTable::PropertyItem& property, std::vector<sd_bus_vtable>& vtable) |
| 284 | { |
| 285 | auto vtableItem = !property.setCallback |
| 286 | ? createSdBusVTableReadOnlyPropertyItem( property.name.c_str() |
| 287 | , property.signature.c_str() |
| 288 | , &Object::sdbus_property_get_callback |
| 289 | , property.flags.toSdBusPropertyFlags() ) |
| 290 | : createSdBusVTableWritablePropertyItem( property.name.c_str() |
| 291 | , property.signature.c_str() |
| 292 | , &Object::sdbus_property_get_callback |
| 293 | , &Object::sdbus_property_set_callback |
| 294 | , property.flags.toSdBusWritablePropertyFlags() ); |
| 295 | vtable.push_back(std::move(vtableItem)); |
| 296 | } |
| 297 | |
| 298 | void Object::finalizeSdBusVTable(std::vector<sd_bus_vtable>& vtable) |
| 299 | { |
nothing calls this directly
no test coverage detected