generated sdbus v2 bindings

This commit is contained in:
lasan
2026-03-19 17:59:19 +05:30
parent 2b63435a42
commit 4cc3bec2aa
28 changed files with 763 additions and 1184 deletions
@@ -3,8 +3,8 @@
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
*/
#ifndef __sdbuscpp__bluez_adapter_client_glue_h__proxy__H__
#define __sdbuscpp__bluez_adapter_client_glue_h__proxy__H__
#ifndef __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_adapter_client_v2_h__proxy__H__
#define __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_adapter_client_v2_h__proxy__H__
#include <sdbus-c++/sdbus-c++.h>
#include <string>
@@ -20,158 +20,167 @@ public:
protected:
Adapter1_proxy(sdbus::IProxy& proxy)
: proxy_(proxy)
: m_proxy(proxy)
{
}
Adapter1_proxy(const Adapter1_proxy&) = delete;
Adapter1_proxy& operator=(const Adapter1_proxy&) = delete;
Adapter1_proxy(Adapter1_proxy&&) = delete;
Adapter1_proxy& operator=(Adapter1_proxy&&) = delete;
~Adapter1_proxy() = default;
void registerProxy()
{
}
public:
void StartDiscovery()
{
proxy_.callMethod("StartDiscovery").onInterface(INTERFACE_NAME);
m_proxy.callMethod("StartDiscovery").onInterface(INTERFACE_NAME);
}
void SetDiscoveryFilter(const std::map<std::string, sdbus::Variant>& properties)
{
proxy_.callMethod("SetDiscoveryFilter").onInterface(INTERFACE_NAME).withArguments(properties);
m_proxy.callMethod("SetDiscoveryFilter").onInterface(INTERFACE_NAME).withArguments(properties);
}
void StopDiscovery()
{
proxy_.callMethod("StopDiscovery").onInterface(INTERFACE_NAME);
m_proxy.callMethod("StopDiscovery").onInterface(INTERFACE_NAME);
}
void RemoveDevice(const sdbus::ObjectPath& device)
{
proxy_.callMethod("RemoveDevice").onInterface(INTERFACE_NAME).withArguments(device);
m_proxy.callMethod("RemoveDevice").onInterface(INTERFACE_NAME).withArguments(device);
}
std::vector<std::string> GetDiscoveryFilters()
{
std::vector<std::string> result;
proxy_.callMethod("GetDiscoveryFilters").onInterface(INTERFACE_NAME).storeResultsTo(result);
m_proxy.callMethod("GetDiscoveryFilters").onInterface(INTERFACE_NAME).storeResultsTo(result);
return result;
}
void ConnectDevice(const std::map<std::string, sdbus::Variant>& properties)
{
proxy_.callMethod("ConnectDevice").onInterface(INTERFACE_NAME).withArguments(properties);
m_proxy.callMethod("ConnectDevice").onInterface(INTERFACE_NAME).withArguments(properties);
}
public:
std::string Address()
{
return proxy_.getProperty("Address").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Address").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string AddressType()
{
return proxy_.getProperty("AddressType").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("AddressType").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string Name()
{
return proxy_.getProperty("Name").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Name").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string Alias()
{
return proxy_.getProperty("Alias").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Alias").onInterface(INTERFACE_NAME).get<std::string>();
}
void Alias(const std::string& value)
{
proxy_.setProperty("Alias").onInterface(INTERFACE_NAME).toValue(value);
m_proxy.setProperty("Alias").onInterface(INTERFACE_NAME).toValue(value);
}
uint32_t Class()
{
return proxy_.getProperty("Class").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Class").onInterface(INTERFACE_NAME).get<uint32_t>();
}
bool Powered()
{
return proxy_.getProperty("Powered").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Powered").onInterface(INTERFACE_NAME).get<bool>();
}
void Powered(const bool& value)
{
proxy_.setProperty("Powered").onInterface(INTERFACE_NAME).toValue(value);
m_proxy.setProperty("Powered").onInterface(INTERFACE_NAME).toValue(value);
}
std::string PowerState()
{
return proxy_.getProperty("PowerState").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("PowerState").onInterface(INTERFACE_NAME).get<std::string>();
}
bool Discoverable()
{
return proxy_.getProperty("Discoverable").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Discoverable").onInterface(INTERFACE_NAME).get<bool>();
}
void Discoverable(const bool& value)
{
proxy_.setProperty("Discoverable").onInterface(INTERFACE_NAME).toValue(value);
m_proxy.setProperty("Discoverable").onInterface(INTERFACE_NAME).toValue(value);
}
uint32_t DiscoverableTimeout()
{
return proxy_.getProperty("DiscoverableTimeout").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("DiscoverableTimeout").onInterface(INTERFACE_NAME).get<uint32_t>();
}
void DiscoverableTimeout(const uint32_t& value)
{
proxy_.setProperty("DiscoverableTimeout").onInterface(INTERFACE_NAME).toValue(value);
m_proxy.setProperty("DiscoverableTimeout").onInterface(INTERFACE_NAME).toValue(value);
}
bool Pairable()
{
return proxy_.getProperty("Pairable").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Pairable").onInterface(INTERFACE_NAME).get<bool>();
}
void Pairable(const bool& value)
{
proxy_.setProperty("Pairable").onInterface(INTERFACE_NAME).toValue(value);
m_proxy.setProperty("Pairable").onInterface(INTERFACE_NAME).toValue(value);
}
uint32_t PairableTimeout()
{
return proxy_.getProperty("PairableTimeout").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("PairableTimeout").onInterface(INTERFACE_NAME).get<uint32_t>();
}
void PairableTimeout(const uint32_t& value)
{
proxy_.setProperty("PairableTimeout").onInterface(INTERFACE_NAME).toValue(value);
m_proxy.setProperty("PairableTimeout").onInterface(INTERFACE_NAME).toValue(value);
}
bool Discovering()
{
return proxy_.getProperty("Discovering").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Discovering").onInterface(INTERFACE_NAME).get<bool>();
}
std::vector<std::string> UUIDs()
{
return proxy_.getProperty("UUIDs").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("UUIDs").onInterface(INTERFACE_NAME).get<std::vector<std::string>>();
}
std::string Modalias()
{
return proxy_.getProperty("Modalias").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Modalias").onInterface(INTERFACE_NAME).get<std::string>();
}
std::vector<std::string> Roles()
{
return proxy_.getProperty("Roles").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Roles").onInterface(INTERFACE_NAME).get<std::vector<std::string>>();
}
std::vector<std::string> ExperimentalFeatures()
{
return proxy_.getProperty("ExperimentalFeatures").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("ExperimentalFeatures").onInterface(INTERFACE_NAME).get<std::vector<std::string>>();
}
private:
sdbus::IProxy& proxy_;
sdbus::IProxy& m_proxy;
};
}} // namespaces
@@ -3,8 +3,8 @@
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
*/
#ifndef __sdbuscpp__advertisement_monitor_manager_client_h__proxy__H__
#define __sdbuscpp__advertisement_monitor_manager_client_h__proxy__H__
#ifndef __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_advertisement_monitor_manager_client_v2_h__proxy__H__
#define __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_advertisement_monitor_manager_client_v2_h__proxy__H__
#include <sdbus-c++/sdbus-c++.h>
#include <string>
@@ -20,36 +20,45 @@ public:
protected:
AdvertisementMonitorManager1_proxy(sdbus::IProxy& proxy)
: proxy_(proxy)
: m_proxy(proxy)
{
}
AdvertisementMonitorManager1_proxy(const AdvertisementMonitorManager1_proxy&) = delete;
AdvertisementMonitorManager1_proxy& operator=(const AdvertisementMonitorManager1_proxy&) = delete;
AdvertisementMonitorManager1_proxy(AdvertisementMonitorManager1_proxy&&) = delete;
AdvertisementMonitorManager1_proxy& operator=(AdvertisementMonitorManager1_proxy&&) = delete;
~AdvertisementMonitorManager1_proxy() = default;
void registerProxy()
{
}
public:
void RegisterMonitor(const sdbus::ObjectPath& application)
{
proxy_.callMethod("RegisterMonitor").onInterface(INTERFACE_NAME).withArguments(application);
m_proxy.callMethod("RegisterMonitor").onInterface(INTERFACE_NAME).withArguments(application);
}
void UnregisterMonitor(const sdbus::ObjectPath& application)
{
proxy_.callMethod("UnregisterMonitor").onInterface(INTERFACE_NAME).withArguments(application);
m_proxy.callMethod("UnregisterMonitor").onInterface(INTERFACE_NAME).withArguments(application);
}
public:
std::vector<std::string> SupportedMonitorTypes()
{
return proxy_.getProperty("SupportedMonitorTypes").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("SupportedMonitorTypes").onInterface(INTERFACE_NAME).get<std::vector<std::string>>();
}
std::vector<std::string> SupportedFeatures()
{
return proxy_.getProperty("SupportedFeatures").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("SupportedFeatures").onInterface(INTERFACE_NAME).get<std::vector<std::string>>();
}
private:
sdbus::IProxy& proxy_;
sdbus::IProxy& m_proxy;
};
}} // namespaces
@@ -3,8 +3,8 @@
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
*/
#ifndef __sdbuscpp__advertisement_monitor_server_h__adaptor__H__
#define __sdbuscpp__advertisement_monitor_server_h__adaptor__H__
#ifndef __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_advertisement_monitor_server_v2_h__adaptor__H__
#define __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_advertisement_monitor_server_v2_h__adaptor__H__
#include <sdbus-c++/sdbus-c++.h>
#include <string>
@@ -20,21 +20,31 @@ public:
protected:
AdvertisementMonitor1_adaptor(sdbus::IObject& object)
: object_(object)
: m_object(object)
{
object_.registerMethod("Release").onInterface(INTERFACE_NAME).implementedAs([this](){ return this->Release(); });
object_.registerMethod("Activate").onInterface(INTERFACE_NAME).implementedAs([this](){ return this->Activate(); });
object_.registerMethod("DeviceFound").onInterface(INTERFACE_NAME).withInputParamNames("device").implementedAs([this](const sdbus::ObjectPath& device){ return this->DeviceFound(device); });
object_.registerMethod("DeviceLost").onInterface(INTERFACE_NAME).withInputParamNames("device").implementedAs([this](const sdbus::ObjectPath& device){ return this->DeviceLost(device); });
object_.registerProperty("Type").onInterface(INTERFACE_NAME).withGetter([this](){ return this->Type(); });
object_.registerProperty("RSSILowThreshold").onInterface(INTERFACE_NAME).withGetter([this](){ return this->RSSILowThreshold(); });
object_.registerProperty("RSSIHighThreshold").onInterface(INTERFACE_NAME).withGetter([this](){ return this->RSSIHighThreshold(); });
object_.registerProperty("RSSISamplingPeriod").onInterface(INTERFACE_NAME).withGetter([this](){ return this->RSSISamplingPeriod(); });
object_.registerProperty("Patterns").onInterface(INTERFACE_NAME).withGetter([this](){ return this->Patterns(); });
}
AdvertisementMonitor1_adaptor(const AdvertisementMonitor1_adaptor&) = delete;
AdvertisementMonitor1_adaptor& operator=(const AdvertisementMonitor1_adaptor&) = delete;
AdvertisementMonitor1_adaptor(AdvertisementMonitor1_adaptor&&) = delete;
AdvertisementMonitor1_adaptor& operator=(AdvertisementMonitor1_adaptor&&) = delete;
~AdvertisementMonitor1_adaptor() = default;
void registerAdaptor()
{
m_object.addVTable( sdbus::registerMethod("Release").implementedAs([this](){ return this->Release(); })
, sdbus::registerMethod("Activate").implementedAs([this](){ return this->Activate(); })
, sdbus::registerMethod("DeviceFound").withInputParamNames("device").implementedAs([this](const sdbus::ObjectPath& device){ return this->DeviceFound(device); })
, sdbus::registerMethod("DeviceLost").withInputParamNames("device").implementedAs([this](const sdbus::ObjectPath& device){ return this->DeviceLost(device); })
, sdbus::registerProperty("Type").withGetter([this](){ return this->Type(); })
, sdbus::registerProperty("RSSILowThreshold").withGetter([this](){ return this->RSSILowThreshold(); })
, sdbus::registerProperty("RSSIHighThreshold").withGetter([this](){ return this->RSSIHighThreshold(); })
, sdbus::registerProperty("RSSISamplingPeriod").withGetter([this](){ return this->RSSISamplingPeriod(); })
, sdbus::registerProperty("Patterns").withGetter([this](){ return this->Patterns(); })
).forInterface(INTERFACE_NAME);
}
private:
virtual void Release() = 0;
virtual void Activate() = 0;
@@ -49,7 +59,7 @@ private:
virtual std::vector<sdbus::Struct<uint8_t, uint8_t, std::vector<uint8_t>>> Patterns() = 0;
private:
sdbus::IObject& object_;
sdbus::IObject& m_object;
};
}} // namespaces
@@ -3,8 +3,8 @@
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
*/
#ifndef __sdbuscpp__device_client_h__proxy__H__
#define __sdbuscpp__device_client_h__proxy__H__
#ifndef __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_device_client_v2_h__proxy__H__
#define __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_device_client_v2_h__proxy__H__
#include <sdbus-c++/sdbus-c++.h>
#include <string>
@@ -20,193 +20,202 @@ public:
protected:
Device1_proxy(sdbus::IProxy& proxy)
: proxy_(proxy)
: m_proxy(proxy)
{
}
Device1_proxy(const Device1_proxy&) = delete;
Device1_proxy& operator=(const Device1_proxy&) = delete;
Device1_proxy(Device1_proxy&&) = delete;
Device1_proxy& operator=(Device1_proxy&&) = delete;
~Device1_proxy() = default;
virtual void onPairReply(const sdbus::Error* error) = 0;
void registerProxy()
{
}
virtual void onPairReply(std::optional<sdbus::Error> error) = 0;
public:
void Disconnect()
{
proxy_.callMethod("Disconnect").onInterface(INTERFACE_NAME);
m_proxy.callMethod("Disconnect").onInterface(INTERFACE_NAME);
}
void Connect()
{
proxy_.callMethod("Connect").onInterface(INTERFACE_NAME);
m_proxy.callMethod("Connect").onInterface(INTERFACE_NAME);
}
void ConnectProfile(const std::string& UUID)
{
proxy_.callMethod("ConnectProfile").onInterface(INTERFACE_NAME).withArguments(UUID);
m_proxy.callMethod("ConnectProfile").onInterface(INTERFACE_NAME).withArguments(UUID);
}
void DisconnectProfile(const std::string& UUID)
{
proxy_.callMethod("DisconnectProfile").onInterface(INTERFACE_NAME).withArguments(UUID);
m_proxy.callMethod("DisconnectProfile").onInterface(INTERFACE_NAME).withArguments(UUID);
}
sdbus::PendingAsyncCall Pair()
{
return proxy_.callMethodAsync("Pair").onInterface(INTERFACE_NAME).uponReplyInvoke([this](const sdbus::Error* error){ this->onPairReply(error); });
return m_proxy.callMethodAsync("Pair").onInterface(INTERFACE_NAME).uponReplyInvoke([this](std::optional<sdbus::Error> error){ this->onPairReply(std::move(error)); });
}
void CancelPairing()
{
proxy_.callMethod("CancelPairing").onInterface(INTERFACE_NAME);
m_proxy.callMethod("CancelPairing").onInterface(INTERFACE_NAME);
}
public:
std::string Address()
{
return proxy_.getProperty("Address").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Address").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string AddressType()
{
return proxy_.getProperty("AddressType").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("AddressType").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string Name()
{
return proxy_.getProperty("Name").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Name").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string Alias()
{
return proxy_.getProperty("Alias").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Alias").onInterface(INTERFACE_NAME).get<std::string>();
}
void Alias(const std::string& value)
{
proxy_.setProperty("Alias").onInterface(INTERFACE_NAME).toValue(value);
m_proxy.setProperty("Alias").onInterface(INTERFACE_NAME).toValue(value);
}
uint32_t Class()
{
return proxy_.getProperty("Class").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Class").onInterface(INTERFACE_NAME).get<uint32_t>();
}
uint16_t Appearance()
{
return proxy_.getProperty("Appearance").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Appearance").onInterface(INTERFACE_NAME).get<uint16_t>();
}
std::string Icon()
{
return proxy_.getProperty("Icon").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Icon").onInterface(INTERFACE_NAME).get<std::string>();
}
bool Paired()
{
return proxy_.getProperty("Paired").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Paired").onInterface(INTERFACE_NAME).get<bool>();
}
bool Bonded()
{
return proxy_.getProperty("Bonded").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Bonded").onInterface(INTERFACE_NAME).get<bool>();
}
bool Trusted()
{
return proxy_.getProperty("Trusted").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Trusted").onInterface(INTERFACE_NAME).get<bool>();
}
void Trusted(const bool& value)
{
proxy_.setProperty("Trusted").onInterface(INTERFACE_NAME).toValue(value);
m_proxy.setProperty("Trusted").onInterface(INTERFACE_NAME).toValue(value);
}
bool Blocked()
{
return proxy_.getProperty("Blocked").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Blocked").onInterface(INTERFACE_NAME).get<bool>();
}
void Blocked(const bool& value)
{
proxy_.setProperty("Blocked").onInterface(INTERFACE_NAME).toValue(value);
m_proxy.setProperty("Blocked").onInterface(INTERFACE_NAME).toValue(value);
}
bool LegacyPairing()
{
return proxy_.getProperty("LegacyPairing").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("LegacyPairing").onInterface(INTERFACE_NAME).get<bool>();
}
int16_t RSSI()
{
return proxy_.getProperty("RSSI").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("RSSI").onInterface(INTERFACE_NAME).get<int16_t>();
}
bool Connected()
{
return proxy_.getProperty("Connected").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Connected").onInterface(INTERFACE_NAME).get<bool>();
}
std::vector<std::string> UUIDs()
{
return proxy_.getProperty("UUIDs").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("UUIDs").onInterface(INTERFACE_NAME).get<std::vector<std::string>>();
}
std::string Modalias()
{
return proxy_.getProperty("Modalias").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Modalias").onInterface(INTERFACE_NAME).get<std::string>();
}
sdbus::ObjectPath Adapter()
{
return proxy_.getProperty("Adapter").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Adapter").onInterface(INTERFACE_NAME).get<sdbus::ObjectPath>();
}
std::map<uint16_t, sdbus::Variant> ManufacturerData()
{
return proxy_.getProperty("ManufacturerData").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("ManufacturerData").onInterface(INTERFACE_NAME).get<std::map<uint16_t, sdbus::Variant>>();
}
std::map<std::string, sdbus::Variant> ServiceData()
{
return proxy_.getProperty("ServiceData").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("ServiceData").onInterface(INTERFACE_NAME).get<std::map<std::string, sdbus::Variant>>();
}
int16_t TxPower()
{
return proxy_.getProperty("TxPower").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("TxPower").onInterface(INTERFACE_NAME).get<int16_t>();
}
bool ServicesResolved()
{
return proxy_.getProperty("ServicesResolved").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("ServicesResolved").onInterface(INTERFACE_NAME).get<bool>();
}
std::vector<uint8_t> AdvertisingFlags()
{
return proxy_.getProperty("AdvertisingFlags").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("AdvertisingFlags").onInterface(INTERFACE_NAME).get<std::vector<uint8_t>>();
}
std::map<uint8_t, sdbus::Variant> AdvertisingData()
{
return proxy_.getProperty("AdvertisingData").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("AdvertisingData").onInterface(INTERFACE_NAME).get<std::map<uint8_t, sdbus::Variant>>();
}
bool WakeAllowed()
{
return proxy_.getProperty("WakeAllowed").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("WakeAllowed").onInterface(INTERFACE_NAME).get<bool>();
}
void WakeAllowed(const bool& value)
{
proxy_.setProperty("WakeAllowed").onInterface(INTERFACE_NAME).toValue(value);
m_proxy.setProperty("WakeAllowed").onInterface(INTERFACE_NAME).toValue(value);
}
std::map<sdbus::ObjectPath, std::map<std::string, sdbus::Variant>> Sets()
{
return proxy_.getProperty("Sets").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Sets").onInterface(INTERFACE_NAME).get<std::map<sdbus::ObjectPath, std::map<std::string, sdbus::Variant>>>();
}
private:
sdbus::IProxy& proxy_;
sdbus::IProxy& m_proxy;
};
}} // namespaces
@@ -3,8 +3,8 @@
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
*/
#ifndef __sdbuscpp__gatt_characteristic_client_h__proxy__H__
#define __sdbuscpp__gatt_characteristic_client_h__proxy__H__
#ifndef __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_gatt_characteristic_client_v2_h__proxy__H__
#define __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_gatt_characteristic_client_v2_h__proxy__H__
#include <sdbus-c++/sdbus-c++.h>
#include <string>
@@ -20,97 +20,106 @@ public:
protected:
GattCharacteristic1_proxy(sdbus::IProxy& proxy)
: proxy_(proxy)
: m_proxy(proxy)
{
}
GattCharacteristic1_proxy(const GattCharacteristic1_proxy&) = delete;
GattCharacteristic1_proxy& operator=(const GattCharacteristic1_proxy&) = delete;
GattCharacteristic1_proxy(GattCharacteristic1_proxy&&) = delete;
GattCharacteristic1_proxy& operator=(GattCharacteristic1_proxy&&) = delete;
~GattCharacteristic1_proxy() = default;
void registerProxy()
{
}
public:
std::vector<uint8_t> ReadValue(const std::map<std::string, sdbus::Variant>& options)
{
std::vector<uint8_t> result;
proxy_.callMethod("ReadValue").onInterface(INTERFACE_NAME).withArguments(options).storeResultsTo(result);
m_proxy.callMethod("ReadValue").onInterface(INTERFACE_NAME).withArguments(options).storeResultsTo(result);
return result;
}
void WriteValue(const std::vector<uint8_t>& value, const std::map<std::string, sdbus::Variant>& options)
{
proxy_.callMethod("WriteValue").onInterface(INTERFACE_NAME).withArguments(value, options);
m_proxy.callMethod("WriteValue").onInterface(INTERFACE_NAME).withArguments(value, options);
}
std::tuple<sdbus::UnixFd, uint16_t> AcquireWrite(const std::map<std::string, sdbus::Variant>& options)
{
std::tuple<sdbus::UnixFd, uint16_t> result;
proxy_.callMethod("AcquireWrite").onInterface(INTERFACE_NAME).withArguments(options).storeResultsTo(result);
m_proxy.callMethod("AcquireWrite").onInterface(INTERFACE_NAME).withArguments(options).storeResultsTo(result);
return result;
}
std::tuple<sdbus::UnixFd, uint16_t> AcquireNotify(const std::map<std::string, sdbus::Variant>& options)
{
std::tuple<sdbus::UnixFd, uint16_t> result;
proxy_.callMethod("AcquireNotify").onInterface(INTERFACE_NAME).withArguments(options).storeResultsTo(result);
m_proxy.callMethod("AcquireNotify").onInterface(INTERFACE_NAME).withArguments(options).storeResultsTo(result);
return result;
}
void StartNotify()
{
proxy_.callMethod("StartNotify").onInterface(INTERFACE_NAME);
m_proxy.callMethod("StartNotify").onInterface(INTERFACE_NAME);
}
void StopNotify()
{
proxy_.callMethod("StopNotify").onInterface(INTERFACE_NAME);
m_proxy.callMethod("StopNotify").onInterface(INTERFACE_NAME);
}
public:
uint16_t Handle()
{
return proxy_.getProperty("Handle").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Handle").onInterface(INTERFACE_NAME).get<uint16_t>();
}
std::string UUID()
{
return proxy_.getProperty("UUID").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("UUID").onInterface(INTERFACE_NAME).get<std::string>();
}
sdbus::ObjectPath Service()
{
return proxy_.getProperty("Service").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Service").onInterface(INTERFACE_NAME).get<sdbus::ObjectPath>();
}
std::vector<uint8_t> Value()
{
return proxy_.getProperty("Value").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Value").onInterface(INTERFACE_NAME).get<std::vector<uint8_t>>();
}
bool Notifying()
{
return proxy_.getProperty("Notifying").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Notifying").onInterface(INTERFACE_NAME).get<bool>();
}
std::vector<std::string> Flags()
{
return proxy_.getProperty("Flags").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Flags").onInterface(INTERFACE_NAME).get<std::vector<std::string>>();
}
bool WriteAcquired()
{
return proxy_.getProperty("WriteAcquired").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("WriteAcquired").onInterface(INTERFACE_NAME).get<bool>();
}
bool NotifyAcquired()
{
return proxy_.getProperty("NotifyAcquired").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("NotifyAcquired").onInterface(INTERFACE_NAME).get<bool>();
}
uint16_t MTU()
{
return proxy_.getProperty("MTU").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("MTU").onInterface(INTERFACE_NAME).get<uint16_t>();
}
private:
sdbus::IProxy& proxy_;
sdbus::IProxy& m_proxy;
};
}} // namespaces
@@ -3,8 +3,8 @@
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
*/
#ifndef __sdbuscpp__generated_dbus_bluez_gatt_characteristic_server_h__adaptor__H__
#define __sdbuscpp__generated_dbus_bluez_gatt_characteristic_server_h__adaptor__H__
#ifndef __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_gatt_characteristic_server_v2_h__adaptor__H__
#define __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_gatt_characteristic_server_v2_h__adaptor__H__
#include <sdbus-c++/sdbus-c++.h>
#include <string>
@@ -20,22 +20,32 @@ public:
protected:
GattCharacteristic1_adaptor(sdbus::IObject& object)
: object_(object)
: m_object(object)
{
object_.registerMethod("ReadValue").onInterface(INTERFACE_NAME).withInputParamNames("options").withOutputParamNames("value").implementedAs([this](sdbus::Result<std::vector<uint8_t>>&& result, std::map<std::string, sdbus::Variant> options){ this->ReadValue(std::move(result), std::move(options)); });
object_.registerMethod("WriteValue").onInterface(INTERFACE_NAME).withInputParamNames("value", "options").implementedAs([this](sdbus::Result<>&& result, std::vector<uint8_t> value, std::map<std::string, sdbus::Variant> options){ this->WriteValue(std::move(result), std::move(value), std::move(options)); });
object_.registerMethod("StartNotify").onInterface(INTERFACE_NAME).implementedAs([this](){ return this->StartNotify(); });
object_.registerMethod("StopNotify").onInterface(INTERFACE_NAME).implementedAs([this](){ return this->StopNotify(); });
object_.registerMethod("Confirm").onInterface(INTERFACE_NAME).implementedAs([this](){ return this->Confirm(); });
object_.registerProperty("UUID").onInterface(INTERFACE_NAME).withGetter([this](){ return this->UUID(); });
object_.registerProperty("Service").onInterface(INTERFACE_NAME).withGetter([this](){ return this->Service(); });
object_.registerProperty("Value").onInterface(INTERFACE_NAME).withGetter([this](){ return this->Value(); });
object_.registerProperty("Notifying").onInterface(INTERFACE_NAME).withGetter([this](){ return this->Notifying(); });
object_.registerProperty("Flags").onInterface(INTERFACE_NAME).withGetter([this](){ return this->Flags(); });
}
GattCharacteristic1_adaptor(const GattCharacteristic1_adaptor&) = delete;
GattCharacteristic1_adaptor& operator=(const GattCharacteristic1_adaptor&) = delete;
GattCharacteristic1_adaptor(GattCharacteristic1_adaptor&&) = delete;
GattCharacteristic1_adaptor& operator=(GattCharacteristic1_adaptor&&) = delete;
~GattCharacteristic1_adaptor() = default;
void registerAdaptor()
{
m_object.addVTable( sdbus::registerMethod("ReadValue").withInputParamNames("options").withOutputParamNames("value").implementedAs([this](sdbus::Result<std::vector<uint8_t>>&& result, std::map<std::string, sdbus::Variant> options){ this->ReadValue(std::move(result), std::move(options)); })
, sdbus::registerMethod("WriteValue").withInputParamNames("value", "options").implementedAs([this](sdbus::Result<>&& result, std::vector<uint8_t> value, std::map<std::string, sdbus::Variant> options){ this->WriteValue(std::move(result), std::move(value), std::move(options)); })
, sdbus::registerMethod("StartNotify").implementedAs([this](){ return this->StartNotify(); })
, sdbus::registerMethod("StopNotify").implementedAs([this](){ return this->StopNotify(); })
, sdbus::registerMethod("Confirm").implementedAs([this](){ return this->Confirm(); })
, sdbus::registerProperty("UUID").withGetter([this](){ return this->UUID(); })
, sdbus::registerProperty("Service").withGetter([this](){ return this->Service(); })
, sdbus::registerProperty("Value").withGetter([this](){ return this->Value(); })
, sdbus::registerProperty("Notifying").withGetter([this](){ return this->Notifying(); })
, sdbus::registerProperty("Flags").withGetter([this](){ return this->Flags(); })
).forInterface(INTERFACE_NAME);
}
private:
virtual void ReadValue(sdbus::Result<std::vector<uint8_t>>&& result, std::map<std::string, sdbus::Variant> options) = 0;
virtual void WriteValue(sdbus::Result<>&& result, std::vector<uint8_t> value, std::map<std::string, sdbus::Variant> options) = 0;
@@ -51,7 +61,7 @@ private:
virtual std::vector<std::string> Flags() = 0;
private:
sdbus::IObject& object_;
sdbus::IObject& m_object;
};
}} // namespaces
@@ -3,8 +3,8 @@
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
*/
#ifndef __sdbuscpp__gatt_manager_client_h__proxy__H__
#define __sdbuscpp__gatt_manager_client_h__proxy__H__
#ifndef __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_gatt_manager_client_v2_h__proxy__H__
#define __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_gatt_manager_client_v2_h__proxy__H__
#include <sdbus-c++/sdbus-c++.h>
#include <string>
@@ -20,25 +20,34 @@ public:
protected:
GattManager1_proxy(sdbus::IProxy& proxy)
: proxy_(proxy)
: m_proxy(proxy)
{
}
GattManager1_proxy(const GattManager1_proxy&) = delete;
GattManager1_proxy& operator=(const GattManager1_proxy&) = delete;
GattManager1_proxy(GattManager1_proxy&&) = delete;
GattManager1_proxy& operator=(GattManager1_proxy&&) = delete;
~GattManager1_proxy() = default;
void registerProxy()
{
}
public:
void RegisterApplication(const sdbus::ObjectPath& application, const std::map<std::string, sdbus::Variant>& options)
{
proxy_.callMethod("RegisterApplication").onInterface(INTERFACE_NAME).withArguments(application, options);
m_proxy.callMethod("RegisterApplication").onInterface(INTERFACE_NAME).withArguments(application, options);
}
void UnregisterApplication(const sdbus::ObjectPath& application)
{
proxy_.callMethod("UnregisterApplication").onInterface(INTERFACE_NAME).withArguments(application);
m_proxy.callMethod("UnregisterApplication").onInterface(INTERFACE_NAME).withArguments(application);
}
private:
sdbus::IProxy& proxy_;
sdbus::IProxy& m_proxy;
};
}} // namespaces
@@ -3,8 +3,8 @@
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
*/
#ifndef __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_gatt_profile_server_h__adaptor__H__
#define __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_gatt_profile_server_h__adaptor__H__
#ifndef __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_gatt_profile_server_v2_h__adaptor__H__
#define __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_gatt_profile_server_v2_h__adaptor__H__
#include <sdbus-c++/sdbus-c++.h>
#include <string>
@@ -20,19 +20,24 @@ public:
protected:
GattProfile1_adaptor(sdbus::IObject& object)
: object_(&object)
: m_object(object)
{
object_->registerMethod("Release").onInterface(INTERFACE_NAME).implementedAs([this](){ return this->Release(); });
object_->registerProperty("UUIDs").onInterface(INTERFACE_NAME).withGetter([this](){ return this->UUIDs(); });
}
GattProfile1_adaptor(const GattProfile1_adaptor&) = delete;
GattProfile1_adaptor& operator=(const GattProfile1_adaptor&) = delete;
GattProfile1_adaptor(GattProfile1_adaptor&&) = default;
GattProfile1_adaptor& operator=(GattProfile1_adaptor&&) = default;
GattProfile1_adaptor(GattProfile1_adaptor&&) = delete;
GattProfile1_adaptor& operator=(GattProfile1_adaptor&&) = delete;
~GattProfile1_adaptor() = default;
void registerAdaptor()
{
m_object.addVTable( sdbus::registerMethod("Release").implementedAs([this](){ return this->Release(); })
, sdbus::registerProperty("UUIDs").withGetter([this](){ return this->UUIDs(); })
).forInterface(INTERFACE_NAME);
}
private:
virtual void Release() = 0;
@@ -40,7 +45,7 @@ private:
virtual std::vector<std::string> UUIDs() = 0;
private:
sdbus::IObject* object_;
sdbus::IObject& m_object;
};
}} // namespaces
@@ -3,8 +3,8 @@
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
*/
#ifndef __sdbuscpp__gatt_service_client_h__proxy__H__
#define __sdbuscpp__gatt_service_client_h__proxy__H__
#ifndef __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_gatt_service_client_v2_h__proxy__H__
#define __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_gatt_service_client_v2_h__proxy__H__
#include <sdbus-c++/sdbus-c++.h>
#include <string>
@@ -20,35 +20,44 @@ public:
protected:
GattService1_proxy(sdbus::IProxy& proxy)
: proxy_(proxy)
: m_proxy(proxy)
{
}
GattService1_proxy(const GattService1_proxy&) = delete;
GattService1_proxy& operator=(const GattService1_proxy&) = delete;
GattService1_proxy(GattService1_proxy&&) = delete;
GattService1_proxy& operator=(GattService1_proxy&&) = delete;
~GattService1_proxy() = default;
void registerProxy()
{
}
public:
std::string UUID()
{
return proxy_.getProperty("UUID").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("UUID").onInterface(INTERFACE_NAME).get<std::string>();
}
bool Primary()
{
return proxy_.getProperty("Primary").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Primary").onInterface(INTERFACE_NAME).get<bool>();
}
sdbus::ObjectPath Device()
{
return proxy_.getProperty("Device").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Device").onInterface(INTERFACE_NAME).get<sdbus::ObjectPath>();
}
std::vector<sdbus::ObjectPath> Includes()
{
return proxy_.getProperty("Includes").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Includes").onInterface(INTERFACE_NAME).get<std::vector<sdbus::ObjectPath>>();
}
private:
sdbus::IProxy& proxy_;
sdbus::IProxy& m_proxy;
};
}} // namespaces
@@ -3,8 +3,8 @@
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
*/
#ifndef __sdbuscpp__generated_dbus_bluez_gatt_service_server_h__adaptor__H__
#define __sdbuscpp__generated_dbus_bluez_gatt_service_server_h__adaptor__H__
#ifndef __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_gatt_service_server_v2_h__adaptor__H__
#define __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_gatt_service_server_v2_h__adaptor__H__
#include <sdbus-c++/sdbus-c++.h>
#include <string>
@@ -20,16 +20,26 @@ public:
protected:
GattService1_adaptor(sdbus::IObject& object)
: object_(object)
: m_object(object)
{
object_.registerProperty("UUID").onInterface(INTERFACE_NAME).withGetter([this](){ return this->UUID(); });
object_.registerProperty("Primary").onInterface(INTERFACE_NAME).withGetter([this](){ return this->Primary(); });
object_.registerProperty("Device").onInterface(INTERFACE_NAME).withGetter([this](){ return this->Device(); });
object_.registerProperty("Includes").onInterface(INTERFACE_NAME).withGetter([this](){ return this->Includes(); });
}
GattService1_adaptor(const GattService1_adaptor&) = delete;
GattService1_adaptor& operator=(const GattService1_adaptor&) = delete;
GattService1_adaptor(GattService1_adaptor&&) = delete;
GattService1_adaptor& operator=(GattService1_adaptor&&) = delete;
~GattService1_adaptor() = default;
void registerAdaptor()
{
m_object.addVTable( sdbus::registerProperty("UUID").withGetter([this](){ return this->UUID(); })
, sdbus::registerProperty("Primary").withGetter([this](){ return this->Primary(); })
, sdbus::registerProperty("Device").withGetter([this](){ return this->Device(); })
, sdbus::registerProperty("Includes").withGetter([this](){ return this->Includes(); })
).forInterface(INTERFACE_NAME);
}
private:
virtual std::string UUID() = 0;
virtual bool Primary() = 0;
@@ -37,7 +47,7 @@ private:
virtual std::vector<sdbus::ObjectPath> Includes() = 0;
private:
sdbus::IObject& object_;
sdbus::IObject& m_object;
};
}} // namespaces
@@ -3,8 +3,8 @@
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
*/
#ifndef __sdbuscpp__generated_dbus_bluez_le_advertisement_manager_client_h__proxy__H__
#define __sdbuscpp__generated_dbus_bluez_le_advertisement_manager_client_h__proxy__H__
#ifndef __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_le_advertisement_manager_client_v2_h__proxy__H__
#define __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_le_advertisement_manager_client_v2_h__proxy__H__
#include <sdbus-c++/sdbus-c++.h>
#include <string>
@@ -20,56 +20,65 @@ public:
protected:
LEAdvertisingManager1_proxy(sdbus::IProxy& proxy)
: proxy_(proxy)
: m_proxy(proxy)
{
}
LEAdvertisingManager1_proxy(const LEAdvertisingManager1_proxy&) = delete;
LEAdvertisingManager1_proxy& operator=(const LEAdvertisingManager1_proxy&) = delete;
LEAdvertisingManager1_proxy(LEAdvertisingManager1_proxy&&) = delete;
LEAdvertisingManager1_proxy& operator=(LEAdvertisingManager1_proxy&&) = delete;
~LEAdvertisingManager1_proxy() = default;
void registerProxy()
{
}
public:
void RegisterAdvertisement(const sdbus::ObjectPath& advertisement, const std::map<std::string, sdbus::Variant>& options)
{
proxy_.callMethod("RegisterAdvertisement").onInterface(INTERFACE_NAME).withArguments(advertisement, options);
m_proxy.callMethod("RegisterAdvertisement").onInterface(INTERFACE_NAME).withArguments(advertisement, options);
}
void UnregisterAdvertisement(const sdbus::ObjectPath& service)
{
proxy_.callMethod("UnregisterAdvertisement").onInterface(INTERFACE_NAME).withArguments(service);
m_proxy.callMethod("UnregisterAdvertisement").onInterface(INTERFACE_NAME).withArguments(service);
}
public:
uint8_t ActiveInstances()
{
return proxy_.getProperty("ActiveInstances").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("ActiveInstances").onInterface(INTERFACE_NAME).get<uint8_t>();
}
uint8_t SupportedInstances()
{
return proxy_.getProperty("SupportedInstances").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("SupportedInstances").onInterface(INTERFACE_NAME).get<uint8_t>();
}
std::vector<std::string> SupportedIncludes()
{
return proxy_.getProperty("SupportedIncludes").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("SupportedIncludes").onInterface(INTERFACE_NAME).get<std::vector<std::string>>();
}
std::vector<std::string> SupportedSecondaryChannels()
{
return proxy_.getProperty("SupportedSecondaryChannels").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("SupportedSecondaryChannels").onInterface(INTERFACE_NAME).get<std::vector<std::string>>();
}
std::vector<std::string> SupportedFeatures()
{
return proxy_.getProperty("SupportedFeatures").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("SupportedFeatures").onInterface(INTERFACE_NAME).get<std::vector<std::string>>();
}
std::map<std::string, sdbus::Variant> SupportedCapabilities()
{
return proxy_.getProperty("SupportedCapabilities").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("SupportedCapabilities").onInterface(INTERFACE_NAME).get<std::map<std::string, sdbus::Variant>>();
}
private:
sdbus::IProxy& proxy_;
sdbus::IProxy& m_proxy;
};
}} // namespaces
@@ -3,8 +3,8 @@
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
*/
#ifndef __sdbuscpp__generated_dbus_bluez_le_advertisement_server_h__adaptor__H__
#define __sdbuscpp__generated_dbus_bluez_le_advertisement_server_h__adaptor__H__
#ifndef __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_le_advertisement_server_v2_h__adaptor__H__
#define __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_le_advertisement_server_v2_h__adaptor__H__
#include <sdbus-c++/sdbus-c++.h>
#include <string>
@@ -20,26 +20,35 @@ public:
protected:
LEAdvertisement1_adaptor(sdbus::IObject& object)
: object_(object)
: m_object(object)
{
object_.registerMethod("Release").onInterface(INTERFACE_NAME).implementedAs([this](){ return this->Release(); });
object_.registerProperty("Type").onInterface(INTERFACE_NAME).withGetter([this](){ return this->Type(); });
object_.registerProperty("ServiceUUIDs").onInterface(INTERFACE_NAME).withGetter([this](){ return this->ServiceUUIDs(); });
object_.registerProperty("ManufacturerData").onInterface(INTERFACE_NAME).withGetter([this](){ return this->ManufacturerData(); });
object_.registerProperty("SolicitUUIDs").onInterface(INTERFACE_NAME).withGetter([this](){ return this->SolicitUUIDs(); });
object_.registerProperty("ServiceData").onInterface(INTERFACE_NAME).withGetter([this](){ return this->ServiceData(); });
object_.registerProperty("ScanResponseServiceData").onInterface(INTERFACE_NAME).withGetter([this](){ return this->ScanResponseServiceData(); });
object_.registerProperty("Includes").onInterface(INTERFACE_NAME).withGetter([this](){ return this->Includes(); });
object_.registerProperty("LocalName").onInterface(INTERFACE_NAME).withGetter([this](){ return this->LocalName(); });
object_.registerProperty("Duration").onInterface(INTERFACE_NAME).withGetter([this](){ return this->Duration(); });
object_.registerProperty("Timeout").onInterface(INTERFACE_NAME).withGetter([this](){ return this->Timeout(); });
object_.registerProperty("MinInterval").onInterface(INTERFACE_NAME).withGetter([this](){ return this->MinInterval(); });
object_.registerProperty("MaxInterval").onInterface(INTERFACE_NAME).withGetter([this](){ return this->MaxInterval(); });
object_.registerProperty("TxPower").onInterface(INTERFACE_NAME).withGetter([this](){ return this->TxPower(); });
}
LEAdvertisement1_adaptor(const LEAdvertisement1_adaptor&) = delete;
LEAdvertisement1_adaptor& operator=(const LEAdvertisement1_adaptor&) = delete;
LEAdvertisement1_adaptor(LEAdvertisement1_adaptor&&) = delete;
LEAdvertisement1_adaptor& operator=(LEAdvertisement1_adaptor&&) = delete;
~LEAdvertisement1_adaptor() = default;
void registerAdaptor()
{
m_object.addVTable( sdbus::registerMethod("Release").implementedAs([this](){ return this->Release(); })
, sdbus::registerProperty("Type").withGetter([this](){ return this->Type(); })
, sdbus::registerProperty("ServiceUUIDs").withGetter([this](){ return this->ServiceUUIDs(); })
, sdbus::registerProperty("ManufacturerData").withGetter([this](){ return this->ManufacturerData(); })
, sdbus::registerProperty("SolicitUUIDs").withGetter([this](){ return this->SolicitUUIDs(); })
, sdbus::registerProperty("ServiceData").withGetter([this](){ return this->ServiceData(); })
, sdbus::registerProperty("Includes").withGetter([this](){ return this->Includes(); })
, sdbus::registerProperty("LocalName").withGetter([this](){ return this->LocalName(); })
, sdbus::registerProperty("Duration").withGetter([this](){ return this->Duration(); })
, sdbus::registerProperty("Timeout").withGetter([this](){ return this->Timeout(); })
, sdbus::registerProperty("MinInterval").withGetter([this](){ return this->MinInterval(); })
, sdbus::registerProperty("MaxInterval").withGetter([this](){ return this->MaxInterval(); })
, sdbus::registerProperty("TxPower").withGetter([this](){ return this->TxPower(); })
).forInterface(INTERFACE_NAME);
}
private:
virtual void Release() = 0;
@@ -49,7 +58,6 @@ private:
virtual std::map<std::string, sdbus::Variant> ManufacturerData() = 0;
virtual std::vector<std::string> SolicitUUIDs() = 0;
virtual std::map<std::string, sdbus::Variant> ServiceData() = 0;
virtual std::map<std::string, sdbus::Variant> ScanResponseServiceData() = 0;
virtual std::vector<std::string> Includes() = 0;
virtual std::string LocalName() = 0;
virtual uint16_t Duration() = 0;
@@ -59,7 +67,7 @@ private:
virtual int16_t TxPower() = 0;
private:
sdbus::IObject& object_;
sdbus::IObject& m_object;
};
}} // namespaces
@@ -1,76 +0,0 @@
/*
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
*/
#ifndef __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_le_bearer_client_h__proxy__H__
#define __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_le_bearer_client_h__proxy__H__
#include <sdbus-c++/sdbus-c++.h>
#include <string>
#include <tuple>
namespace org {
namespace bluez {
namespace Bearer {
class LE1_proxy
{
public:
static constexpr const char* INTERFACE_NAME = "org.bluez.Bearer.LE1";
protected:
LE1_proxy(sdbus::IProxy& proxy)
: proxy_(&proxy)
{
proxy_->uponSignal("Disconnected").onInterface(INTERFACE_NAME).call([this](const std::string& reason, const std::string& message){ this->onDisconnected(reason, message); });
}
LE1_proxy(const LE1_proxy&) = delete;
LE1_proxy& operator=(const LE1_proxy&) = delete;
LE1_proxy(LE1_proxy&&) = default;
LE1_proxy& operator=(LE1_proxy&&) = default;
~LE1_proxy() = default;
virtual void onDisconnected(const std::string& reason, const std::string& message) = 0;
public:
void Connect()
{
proxy_->callMethod("Connect").onInterface(INTERFACE_NAME);
}
void Disconnect()
{
proxy_->callMethod("Disconnect").onInterface(INTERFACE_NAME);
}
public:
sdbus::ObjectPath Adapter()
{
return proxy_->getProperty("Adapter").onInterface(INTERFACE_NAME);
}
bool Paired()
{
return proxy_->getProperty("Paired").onInterface(INTERFACE_NAME);
}
bool Bonded()
{
return proxy_->getProperty("Bonded").onInterface(INTERFACE_NAME);
}
bool Connected()
{
return proxy_->getProperty("Connected").onInterface(INTERFACE_NAME);
}
private:
sdbus::IProxy* proxy_;
};
}}} // namespaces
#endif
@@ -3,8 +3,8 @@
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
*/
#ifndef __sdbuscpp__bluez_profile_manager_client_glue_h__proxy__H__
#define __sdbuscpp__bluez_profile_manager_client_glue_h__proxy__H__
#ifndef __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_profile_manager_client_v2_h__proxy__H__
#define __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_profile_manager_client_v2_h__proxy__H__
#include <sdbus-c++/sdbus-c++.h>
#include <string>
@@ -20,25 +20,34 @@ public:
protected:
ProfileManager1_proxy(sdbus::IProxy& proxy)
: proxy_(proxy)
: m_proxy(proxy)
{
}
ProfileManager1_proxy(const ProfileManager1_proxy&) = delete;
ProfileManager1_proxy& operator=(const ProfileManager1_proxy&) = delete;
ProfileManager1_proxy(ProfileManager1_proxy&&) = delete;
ProfileManager1_proxy& operator=(ProfileManager1_proxy&&) = delete;
~ProfileManager1_proxy() = default;
void registerProxy()
{
}
public:
void RegisterProfile(const sdbus::ObjectPath& profile, const std::string& UUID, const std::map<std::string, sdbus::Variant>& options)
{
proxy_.callMethod("RegisterProfile").onInterface(INTERFACE_NAME).withArguments(profile, UUID, options);
m_proxy.callMethod("RegisterProfile").onInterface(INTERFACE_NAME).withArguments(profile, UUID, options);
}
void UnregisterProfile(const sdbus::ObjectPath& profile)
{
proxy_.callMethod("UnregisterProfile").onInterface(INTERFACE_NAME).withArguments(profile);
m_proxy.callMethod("UnregisterProfile").onInterface(INTERFACE_NAME).withArguments(profile);
}
private:
sdbus::IProxy& proxy_;
sdbus::IProxy& m_proxy;
};
}} // namespaces
@@ -3,8 +3,8 @@
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
*/
#ifndef __sdbuscpp__bluez_profile_glue_h__adaptor__H__
#define __sdbuscpp__bluez_profile_glue_h__adaptor__H__
#ifndef __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_profile_server_v2_h__adaptor__H__
#define __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_bluez_profile_server_v2_h__adaptor__H__
#include <sdbus-c++/sdbus-c++.h>
#include <string>
@@ -20,22 +20,32 @@ public:
protected:
Profile1_adaptor(sdbus::IObject& object)
: object_(object)
: m_object(object)
{
object_.registerMethod("Release").onInterface(INTERFACE_NAME).implementedAs([this](){ return this->Release(); });
object_.registerMethod("NewConnection").onInterface(INTERFACE_NAME).withInputParamNames("device", "fd", "fd_properties").implementedAs([this](const sdbus::ObjectPath& device, const sdbus::UnixFd& fd, const std::map<std::string, sdbus::Variant>& fd_properties){ return this->NewConnection(device, fd, fd_properties); });
object_.registerMethod("RequestDisconnection").onInterface(INTERFACE_NAME).withInputParamNames("device").implementedAs([this](const sdbus::ObjectPath& device){ return this->RequestDisconnection(device); });
}
Profile1_adaptor(const Profile1_adaptor&) = delete;
Profile1_adaptor& operator=(const Profile1_adaptor&) = delete;
Profile1_adaptor(Profile1_adaptor&&) = delete;
Profile1_adaptor& operator=(Profile1_adaptor&&) = delete;
~Profile1_adaptor() = default;
void registerAdaptor()
{
m_object.addVTable( sdbus::registerMethod("Release").implementedAs([this](){ return this->Release(); })
, sdbus::registerMethod("NewConnection").withInputParamNames("device", "fd", "fd_properties").implementedAs([this](const sdbus::ObjectPath& device, const sdbus::UnixFd& fd, const std::map<std::string, sdbus::Variant>& fd_properties){ return this->NewConnection(device, fd, fd_properties); })
, sdbus::registerMethod("RequestDisconnection").withInputParamNames("device").implementedAs([this](const sdbus::ObjectPath& device){ return this->RequestDisconnection(device); })
).forInterface(INTERFACE_NAME);
}
private:
virtual void Release() = 0;
virtual void NewConnection(const sdbus::ObjectPath& device, const sdbus::UnixFd& fd, const std::map<std::string, sdbus::Variant>& fd_properties) = 0;
virtual void RequestDisconnection(const sdbus::ObjectPath& device) = 0;
private:
sdbus::IObject& object_;
sdbus::IObject& m_object;
};
}} // namespaces