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__hostname_client_glue_h__proxy__H__
#define __sdbuscpp__hostname_client_glue_h__proxy__H__
#ifndef __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_hostname_hostname_client_v2_h__proxy__H__
#define __sdbuscpp___home_lasan_Dev_nearby_latest_internal_platform_implementation_linux_generated_dbus_hostname_hostname_client_v2_h__proxy__H__
#include <sdbus-c++/sdbus-c++.h>
#include <string>
@@ -20,177 +20,186 @@ public:
protected:
hostname1_proxy(sdbus::IProxy& proxy)
: proxy_(proxy)
: m_proxy(proxy)
{
}
hostname1_proxy(const hostname1_proxy&) = delete;
hostname1_proxy& operator=(const hostname1_proxy&) = delete;
hostname1_proxy(hostname1_proxy&&) = delete;
hostname1_proxy& operator=(hostname1_proxy&&) = delete;
~hostname1_proxy() = default;
void registerProxy()
{
}
public:
void SetHostname(const std::string& hostname, const bool& interactive)
{
proxy_.callMethod("SetHostname").onInterface(INTERFACE_NAME).withArguments(hostname, interactive);
m_proxy.callMethod("SetHostname").onInterface(INTERFACE_NAME).withArguments(hostname, interactive);
}
void SetStaticHostname(const std::string& hostname, const bool& interactive)
{
proxy_.callMethod("SetStaticHostname").onInterface(INTERFACE_NAME).withArguments(hostname, interactive);
m_proxy.callMethod("SetStaticHostname").onInterface(INTERFACE_NAME).withArguments(hostname, interactive);
}
void SetPrettyHostname(const std::string& hostname, const bool& interactive)
{
proxy_.callMethod("SetPrettyHostname").onInterface(INTERFACE_NAME).withArguments(hostname, interactive);
m_proxy.callMethod("SetPrettyHostname").onInterface(INTERFACE_NAME).withArguments(hostname, interactive);
}
void SetIconName(const std::string& icon, const bool& interactive)
{
proxy_.callMethod("SetIconName").onInterface(INTERFACE_NAME).withArguments(icon, interactive);
m_proxy.callMethod("SetIconName").onInterface(INTERFACE_NAME).withArguments(icon, interactive);
}
void SetChassis(const std::string& chassis, const bool& interactive)
{
proxy_.callMethod("SetChassis").onInterface(INTERFACE_NAME).withArguments(chassis, interactive);
m_proxy.callMethod("SetChassis").onInterface(INTERFACE_NAME).withArguments(chassis, interactive);
}
void SetDeployment(const std::string& deployment, const bool& interactive)
{
proxy_.callMethod("SetDeployment").onInterface(INTERFACE_NAME).withArguments(deployment, interactive);
m_proxy.callMethod("SetDeployment").onInterface(INTERFACE_NAME).withArguments(deployment, interactive);
}
void SetLocation(const std::string& location, const bool& interactive)
{
proxy_.callMethod("SetLocation").onInterface(INTERFACE_NAME).withArguments(location, interactive);
m_proxy.callMethod("SetLocation").onInterface(INTERFACE_NAME).withArguments(location, interactive);
}
std::vector<uint8_t> GetProductUUID(const bool& interactive)
{
std::vector<uint8_t> result;
proxy_.callMethod("GetProductUUID").onInterface(INTERFACE_NAME).withArguments(interactive).storeResultsTo(result);
m_proxy.callMethod("GetProductUUID").onInterface(INTERFACE_NAME).withArguments(interactive).storeResultsTo(result);
return result;
}
std::string GetHardwareSerial()
{
std::string result;
proxy_.callMethod("GetHardwareSerial").onInterface(INTERFACE_NAME).storeResultsTo(result);
m_proxy.callMethod("GetHardwareSerial").onInterface(INTERFACE_NAME).storeResultsTo(result);
return result;
}
std::string Describe()
{
std::string result;
proxy_.callMethod("Describe").onInterface(INTERFACE_NAME).storeResultsTo(result);
m_proxy.callMethod("Describe").onInterface(INTERFACE_NAME).storeResultsTo(result);
return result;
}
public:
std::string Hostname()
{
return proxy_.getProperty("Hostname").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Hostname").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string StaticHostname()
{
return proxy_.getProperty("StaticHostname").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("StaticHostname").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string PrettyHostname()
{
return proxy_.getProperty("PrettyHostname").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("PrettyHostname").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string DefaultHostname()
{
return proxy_.getProperty("DefaultHostname").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("DefaultHostname").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string HostnameSource()
{
return proxy_.getProperty("HostnameSource").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("HostnameSource").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string IconName()
{
return proxy_.getProperty("IconName").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("IconName").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string Chassis()
{
return proxy_.getProperty("Chassis").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Chassis").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string Deployment()
{
return proxy_.getProperty("Deployment").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Deployment").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string Location()
{
return proxy_.getProperty("Location").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("Location").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string KernelName()
{
return proxy_.getProperty("KernelName").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("KernelName").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string KernelRelease()
{
return proxy_.getProperty("KernelRelease").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("KernelRelease").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string KernelVersion()
{
return proxy_.getProperty("KernelVersion").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("KernelVersion").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string OperatingSystemPrettyName()
{
return proxy_.getProperty("OperatingSystemPrettyName").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("OperatingSystemPrettyName").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string OperatingSystemCPEName()
{
return proxy_.getProperty("OperatingSystemCPEName").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("OperatingSystemCPEName").onInterface(INTERFACE_NAME).get<std::string>();
}
uint64_t OperatingSystemSupportEnd()
{
return proxy_.getProperty("OperatingSystemSupportEnd").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("OperatingSystemSupportEnd").onInterface(INTERFACE_NAME).get<uint64_t>();
}
std::string HomeURL()
{
return proxy_.getProperty("HomeURL").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("HomeURL").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string HardwareVendor()
{
return proxy_.getProperty("HardwareVendor").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("HardwareVendor").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string HardwareModel()
{
return proxy_.getProperty("HardwareModel").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("HardwareModel").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string FirmwareVersion()
{
return proxy_.getProperty("FirmwareVersion").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("FirmwareVersion").onInterface(INTERFACE_NAME).get<std::string>();
}
std::string FirmwareVendor()
{
return proxy_.getProperty("FirmwareVendor").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("FirmwareVendor").onInterface(INTERFACE_NAME).get<std::string>();
}
uint64_t FirmwareDate()
{
return proxy_.getProperty("FirmwareDate").onInterface(INTERFACE_NAME);
return m_proxy.getProperty("FirmwareDate").onInterface(INTERFACE_NAME).get<uint64_t>();
}
private:
sdbus::IProxy& proxy_;
sdbus::IProxy& m_proxy;
};
}} // namespaces