#include "components/dbus/properties/dbus_properties.h"
#include <dbus/dbus-shared.h>
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "components/dbus/properties/success_barrier_callback.h"
#include "dbus/exported_object.h"
#include "dbus/message.h"
namespace {
const char kMethodPropertiesGetAll[] = …;
const char kMethodPropertiesGet[] = …;
const char kMethodPropertiesSet[] = …;
const char kSignalPropertiesChanged[] = …;
}
DbusProperties::DbusProperties(dbus::ExportedObject* exported_object,
InitializedCallback callback)
: … { … }
DbusProperties::~DbusProperties() = default;
void DbusProperties::RegisterInterface(const std::string& interface) { … }
DbusVariant* DbusProperties::GetProperty(const std::string& interface,
const std::string& property_name) { … }
void DbusProperties::PropertyUpdated(const std::string& interface,
const std::string& property_name,
bool send_change) { … }
void DbusProperties::OnExported(const std::string& interface_name,
const std::string& method_name,
bool success) { … }
void DbusProperties::OnGetAllProperties(
dbus::MethodCall* method_call,
dbus::ExportedObject::ResponseSender response_sender) { … }
void DbusProperties::OnGetProperty(
dbus::MethodCall* method_call,
dbus::ExportedObject::ResponseSender response_sender) { … }
void DbusProperties::OnSetProperty(
dbus::MethodCall* method_call,
dbus::ExportedObject::ResponseSender response_sender) { … }