mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
WIP: wifi direct support. merged from upstream
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<node name="/">
|
||||
<interface name="org.freedesktop.NetworkManager.WifiP2PPeer">
|
||||
<property name="Name" type="s" access="read"/>
|
||||
<property name="Flags" type="u" access="read"/>
|
||||
<property name="Manufacturer" type="s" access="read"/>
|
||||
<property name="Model" type="s" access="read"/>
|
||||
<property name="ModelNumber" type="s" access="read"/>
|
||||
<property name="Serial" type="s" access="read"/>
|
||||
<property name="WfdIEs" type="ay" access="read"/>
|
||||
<property name="HwAddress" type="s" access="read"/>
|
||||
<property name="Strength" type="y" access="read"/>
|
||||
<property name="LastSeen" type="i" access="read"/>
|
||||
</interface>
|
||||
</node>
|
||||
+96
@@ -0,0 +1,96 @@
|
||||
|
||||
/*
|
||||
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
|
||||
*/
|
||||
|
||||
#ifndef __sdbuscpp__internal_platform_implementation_linux_generated_dbus_networkmanager_wifi_p2p_peer_client_h__proxy__H__
|
||||
#define __sdbuscpp__internal_platform_implementation_linux_generated_dbus_networkmanager_wifi_p2p_peer_client_h__proxy__H__
|
||||
|
||||
#include <sdbus-c++/sdbus-c++.h>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
namespace org {
|
||||
namespace freedesktop {
|
||||
namespace NetworkManager {
|
||||
|
||||
class WifiP2PPeer_proxy
|
||||
{
|
||||
public:
|
||||
static constexpr const char* INTERFACE_NAME = "org.freedesktop.NetworkManager.WifiP2PPeer";
|
||||
|
||||
protected:
|
||||
WifiP2PPeer_proxy(sdbus::IProxy& proxy)
|
||||
: m_proxy(proxy)
|
||||
{
|
||||
}
|
||||
|
||||
WifiP2PPeer_proxy(const WifiP2PPeer_proxy&) = delete;
|
||||
WifiP2PPeer_proxy& operator=(const WifiP2PPeer_proxy&) = delete;
|
||||
WifiP2PPeer_proxy(WifiP2PPeer_proxy&&) = delete;
|
||||
WifiP2PPeer_proxy& operator=(WifiP2PPeer_proxy&&) = delete;
|
||||
|
||||
~WifiP2PPeer_proxy() = default;
|
||||
|
||||
void registerProxy()
|
||||
{
|
||||
}
|
||||
|
||||
public:
|
||||
std::string Name()
|
||||
{
|
||||
return m_proxy.getProperty("Name").onInterface(INTERFACE_NAME).get<std::string>();
|
||||
}
|
||||
|
||||
uint32_t Flags()
|
||||
{
|
||||
return m_proxy.getProperty("Flags").onInterface(INTERFACE_NAME).get<uint32_t>();
|
||||
}
|
||||
|
||||
std::string Manufacturer()
|
||||
{
|
||||
return m_proxy.getProperty("Manufacturer").onInterface(INTERFACE_NAME).get<std::string>();
|
||||
}
|
||||
|
||||
std::string Model()
|
||||
{
|
||||
return m_proxy.getProperty("Model").onInterface(INTERFACE_NAME).get<std::string>();
|
||||
}
|
||||
|
||||
std::string ModelNumber()
|
||||
{
|
||||
return m_proxy.getProperty("ModelNumber").onInterface(INTERFACE_NAME).get<std::string>();
|
||||
}
|
||||
|
||||
std::string Serial()
|
||||
{
|
||||
return m_proxy.getProperty("Serial").onInterface(INTERFACE_NAME).get<std::string>();
|
||||
}
|
||||
|
||||
std::vector<uint8_t> WfdIEs()
|
||||
{
|
||||
return m_proxy.getProperty("WfdIEs").onInterface(INTERFACE_NAME).get<std::vector<uint8_t>>();
|
||||
}
|
||||
|
||||
std::string HwAddress()
|
||||
{
|
||||
return m_proxy.getProperty("HwAddress").onInterface(INTERFACE_NAME).get<std::string>();
|
||||
}
|
||||
|
||||
uint8_t Strength()
|
||||
{
|
||||
return m_proxy.getProperty("Strength").onInterface(INTERFACE_NAME).get<uint8_t>();
|
||||
}
|
||||
|
||||
int32_t LastSeen()
|
||||
{
|
||||
return m_proxy.getProperty("LastSeen").onInterface(INTERFACE_NAME).get<int32_t>();
|
||||
}
|
||||
|
||||
private:
|
||||
sdbus::IProxy& m_proxy;
|
||||
};
|
||||
|
||||
}}} // namespaces
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user