mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Move dbus stubs to generated package.
This commit is contained in:
@@ -0,0 +1,198 @@
|
||||
|
||||
/*
|
||||
* 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__
|
||||
|
||||
#include <sdbus-c++/sdbus-c++.h>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
namespace org {
|
||||
namespace freedesktop {
|
||||
|
||||
class hostname1_proxy
|
||||
{
|
||||
public:
|
||||
static constexpr const char* INTERFACE_NAME = "org.freedesktop.hostname1";
|
||||
|
||||
protected:
|
||||
hostname1_proxy(sdbus::IProxy& proxy)
|
||||
: proxy_(proxy)
|
||||
{
|
||||
}
|
||||
|
||||
~hostname1_proxy() = default;
|
||||
|
||||
public:
|
||||
void SetHostname(const std::string& hostname, const bool& interactive)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
void SetPrettyHostname(const std::string& hostname, const bool& interactive)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
void SetChassis(const std::string& chassis, const bool& interactive)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
void SetLocation(const std::string& location, const bool& interactive)
|
||||
{
|
||||
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);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string GetHardwareSerial()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("GetHardwareSerial").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string Describe()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("Describe").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
public:
|
||||
std::string Hostname()
|
||||
{
|
||||
return proxy_.getProperty("Hostname").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string StaticHostname()
|
||||
{
|
||||
return proxy_.getProperty("StaticHostname").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string PrettyHostname()
|
||||
{
|
||||
return proxy_.getProperty("PrettyHostname").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string DefaultHostname()
|
||||
{
|
||||
return proxy_.getProperty("DefaultHostname").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string HostnameSource()
|
||||
{
|
||||
return proxy_.getProperty("HostnameSource").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string IconName()
|
||||
{
|
||||
return proxy_.getProperty("IconName").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Chassis()
|
||||
{
|
||||
return proxy_.getProperty("Chassis").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Deployment()
|
||||
{
|
||||
return proxy_.getProperty("Deployment").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Location()
|
||||
{
|
||||
return proxy_.getProperty("Location").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string KernelName()
|
||||
{
|
||||
return proxy_.getProperty("KernelName").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string KernelRelease()
|
||||
{
|
||||
return proxy_.getProperty("KernelRelease").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string KernelVersion()
|
||||
{
|
||||
return proxy_.getProperty("KernelVersion").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string OperatingSystemPrettyName()
|
||||
{
|
||||
return proxy_.getProperty("OperatingSystemPrettyName").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string OperatingSystemCPEName()
|
||||
{
|
||||
return proxy_.getProperty("OperatingSystemCPEName").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint64_t OperatingSystemSupportEnd()
|
||||
{
|
||||
return proxy_.getProperty("OperatingSystemSupportEnd").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string HomeURL()
|
||||
{
|
||||
return proxy_.getProperty("HomeURL").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string HardwareVendor()
|
||||
{
|
||||
return proxy_.getProperty("HardwareVendor").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string HardwareModel()
|
||||
{
|
||||
return proxy_.getProperty("HardwareModel").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string FirmwareVersion()
|
||||
{
|
||||
return proxy_.getProperty("FirmwareVersion").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string FirmwareVendor()
|
||||
{
|
||||
return proxy_.getProperty("FirmwareVendor").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint64_t FirmwareDate()
|
||||
{
|
||||
return proxy_.getProperty("FirmwareDate").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
private:
|
||||
sdbus::IProxy& proxy_;
|
||||
};
|
||||
|
||||
}} // namespaces
|
||||
|
||||
#endif
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
|
||||
"https://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
||||
<node>
|
||||
<interface name="org.freedesktop.hostname1">
|
||||
<property name="Hostname" type="s" access="read">
|
||||
</property>
|
||||
<property name="StaticHostname" type="s" access="read">
|
||||
</property>
|
||||
<property name="PrettyHostname" type="s" access="read">
|
||||
</property>
|
||||
<property name="DefaultHostname" type="s" access="read">
|
||||
</property>
|
||||
<property name="HostnameSource" type="s" access="read">
|
||||
</property>
|
||||
<property name="IconName" type="s" access="read">
|
||||
</property>
|
||||
<property name="Chassis" type="s" access="read">
|
||||
</property>
|
||||
<property name="Deployment" type="s" access="read">
|
||||
</property>
|
||||
<property name="Location" type="s" access="read">
|
||||
</property>
|
||||
<property name="KernelName" type="s" access="read">
|
||||
</property>
|
||||
<property name="KernelRelease" type="s" access="read">
|
||||
</property>
|
||||
<property name="KernelVersion" type="s" access="read">
|
||||
</property>
|
||||
<property name="OperatingSystemPrettyName" type="s" access="read">
|
||||
</property>
|
||||
<property name="OperatingSystemCPEName" type="s" access="read">
|
||||
</property>
|
||||
<property name="OperatingSystemSupportEnd" type="t" access="read">
|
||||
</property>
|
||||
<property name="HomeURL" type="s" access="read">
|
||||
</property>
|
||||
<property name="HardwareVendor" type="s" access="read">
|
||||
</property>
|
||||
<property name="HardwareModel" type="s" access="read">
|
||||
</property>
|
||||
<property name="FirmwareVersion" type="s" access="read">
|
||||
</property>
|
||||
<property name="FirmwareVendor" type="s" access="read">
|
||||
</property>
|
||||
<property name="FirmwareDate" type="t" access="read">
|
||||
</property>
|
||||
<method name="SetHostname">
|
||||
<arg type="s" name="hostname" direction="in"/>
|
||||
<arg type="b" name="interactive" direction="in"/>
|
||||
</method>
|
||||
<method name="SetStaticHostname">
|
||||
<arg type="s" name="hostname" direction="in"/>
|
||||
<arg type="b" name="interactive" direction="in"/>
|
||||
</method>
|
||||
<method name="SetPrettyHostname">
|
||||
<arg type="s" name="hostname" direction="in"/>
|
||||
<arg type="b" name="interactive" direction="in"/>
|
||||
</method>
|
||||
<method name="SetIconName">
|
||||
<arg type="s" name="icon" direction="in"/>
|
||||
<arg type="b" name="interactive" direction="in"/>
|
||||
</method>
|
||||
<method name="SetChassis">
|
||||
<arg type="s" name="chassis" direction="in"/>
|
||||
<arg type="b" name="interactive" direction="in"/>
|
||||
</method>
|
||||
<method name="SetDeployment">
|
||||
<arg type="s" name="deployment" direction="in"/>
|
||||
<arg type="b" name="interactive" direction="in"/>
|
||||
</method>
|
||||
<method name="SetLocation">
|
||||
<arg type="s" name="location" direction="in"/>
|
||||
<arg type="b" name="interactive" direction="in"/>
|
||||
</method>
|
||||
<method name="GetProductUUID">
|
||||
<arg type="b" name="interactive" direction="in"/>
|
||||
<arg type="ay" name="uuid" direction="out"/>
|
||||
</method>
|
||||
<method name="GetHardwareSerial">
|
||||
<arg type="s" name="serial" direction="out"/>
|
||||
</method>
|
||||
<method name="Describe">
|
||||
<arg type="s" name="json" direction="out"/>
|
||||
</method>
|
||||
</interface>
|
||||
</node>
|
||||
Reference in New Issue
Block a user