mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
Move dbus stubs to generated package.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# Copyright 2023 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
licenses(["notice"])
|
||||
|
||||
cc_library(
|
||||
name = "types",
|
||||
textual_hdrs = glob(["**/*.h"]),
|
||||
visibility = [
|
||||
"//internal/platform/implementation/linux:__subpackages__",
|
||||
],
|
||||
)
|
||||
@@ -0,0 +1,94 @@
|
||||
|
||||
/*
|
||||
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
|
||||
*/
|
||||
|
||||
#ifndef __sdbuscpp__avahi_entrygroup_client_glue_h__proxy__H__
|
||||
#define __sdbuscpp__avahi_entrygroup_client_glue_h__proxy__H__
|
||||
|
||||
#include <sdbus-c++/sdbus-c++.h>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
namespace org {
|
||||
namespace freedesktop {
|
||||
namespace Avahi {
|
||||
|
||||
class EntryGroup_proxy
|
||||
{
|
||||
public:
|
||||
static constexpr const char* INTERFACE_NAME = "org.freedesktop.Avahi.EntryGroup";
|
||||
|
||||
protected:
|
||||
EntryGroup_proxy(sdbus::IProxy& proxy)
|
||||
: proxy_(proxy)
|
||||
{
|
||||
proxy_.uponSignal("StateChanged").onInterface(INTERFACE_NAME).call([this](const int32_t& state, const std::string& error){ this->onStateChanged(state, error); });
|
||||
}
|
||||
|
||||
~EntryGroup_proxy() = default;
|
||||
|
||||
virtual void onStateChanged(const int32_t& state, const std::string& error) = 0;
|
||||
|
||||
public:
|
||||
void Free()
|
||||
{
|
||||
proxy_.callMethod("Free").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void Commit()
|
||||
{
|
||||
proxy_.callMethod("Commit").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void Reset()
|
||||
{
|
||||
proxy_.callMethod("Reset").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
int32_t GetState()
|
||||
{
|
||||
int32_t result;
|
||||
proxy_.callMethod("GetState").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
bool IsEmpty()
|
||||
{
|
||||
bool result;
|
||||
proxy_.callMethod("IsEmpty").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void AddService(const int32_t& interface, const int32_t& protocol, const uint32_t& flags, const std::string& name, const std::string& type, const std::string& domain, const std::string& host, const uint16_t& port, const std::vector<std::vector<uint8_t>>& txt)
|
||||
{
|
||||
proxy_.callMethod("AddService").onInterface(INTERFACE_NAME).withArguments(interface, protocol, flags, name, type, domain, host, port, txt);
|
||||
}
|
||||
|
||||
void AddServiceSubtype(const int32_t& interface, const int32_t& protocol, const uint32_t& flags, const std::string& name, const std::string& type, const std::string& domain, const std::string& subtype)
|
||||
{
|
||||
proxy_.callMethod("AddServiceSubtype").onInterface(INTERFACE_NAME).withArguments(interface, protocol, flags, name, type, domain, subtype);
|
||||
}
|
||||
|
||||
void UpdateServiceTxt(const int32_t& interface, const int32_t& protocol, const uint32_t& flags, const std::string& name, const std::string& type, const std::string& domain, const std::vector<std::vector<uint8_t>>& txt)
|
||||
{
|
||||
proxy_.callMethod("UpdateServiceTxt").onInterface(INTERFACE_NAME).withArguments(interface, protocol, flags, name, type, domain, txt);
|
||||
}
|
||||
|
||||
void AddAddress(const int32_t& interface, const int32_t& protocol, const uint32_t& flags, const std::string& name, const std::string& address)
|
||||
{
|
||||
proxy_.callMethod("AddAddress").onInterface(INTERFACE_NAME).withArguments(interface, protocol, flags, name, address);
|
||||
}
|
||||
|
||||
void AddRecord(const int32_t& interface, const int32_t& protocol, const uint32_t& flags, const std::string& name, const uint16_t& clazz, const uint16_t& type, const uint32_t& ttl, const std::vector<uint8_t>& rdata)
|
||||
{
|
||||
proxy_.callMethod("AddRecord").onInterface(INTERFACE_NAME).withArguments(interface, protocol, flags, name, clazz, type, ttl, rdata);
|
||||
}
|
||||
|
||||
private:
|
||||
sdbus::IProxy& proxy_;
|
||||
};
|
||||
|
||||
}}} // namespaces
|
||||
|
||||
#endif
|
||||
+94
@@ -0,0 +1,94 @@
|
||||
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
|
||||
<?xml-stylesheet type="text/xsl" href="introspect.xsl"?>
|
||||
<!DOCTYPE node SYSTEM "introspect.dtd">
|
||||
|
||||
<!--
|
||||
This file is part of avahi.
|
||||
|
||||
avahi is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
avahi is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with avahi; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
-->
|
||||
|
||||
<node>
|
||||
<interface name="org.freedesktop.Avahi.EntryGroup">
|
||||
<method name="Free"/>
|
||||
<method name="Commit"/>
|
||||
<method name="Reset"/>
|
||||
|
||||
<method name="GetState">
|
||||
<arg name="state" type="i" direction="out"/>
|
||||
</method>
|
||||
|
||||
<signal name="StateChanged">
|
||||
<arg name="state" type="i"/>
|
||||
<arg name="error" type="s"/>
|
||||
</signal>
|
||||
|
||||
<method name="IsEmpty">
|
||||
<arg name="empty" type="b" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="AddService">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="type" type="s" direction="in"/>
|
||||
<arg name="domain" type="s" direction="in"/>
|
||||
<arg name="host" type="s" direction="in"/>
|
||||
<arg name="port" type="q" direction="in"/>
|
||||
<arg name="txt" type="aay" direction="in"/>
|
||||
</method>
|
||||
|
||||
<method name="AddServiceSubtype">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="type" type="s" direction="in"/>
|
||||
<arg name="domain" type="s" direction="in"/>
|
||||
<arg name="subtype" type="s" direction="in"/>
|
||||
</method>
|
||||
|
||||
<method name="UpdateServiceTxt">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="type" type="s" direction="in"/>
|
||||
<arg name="domain" type="s" direction="in"/>
|
||||
<arg name="txt" type="aay" direction="in"/>
|
||||
</method>
|
||||
|
||||
<method name="AddAddress">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="address" type="s" direction="in"/>
|
||||
</method>
|
||||
|
||||
<method name="AddRecord">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="clazz" type="q" direction="in"/>
|
||||
<arg name="type" type="q" direction="in"/>
|
||||
<arg name="ttl" type="u" direction="in"/>
|
||||
<arg name="rdata" type="ay" direction="in"/>
|
||||
</method>
|
||||
</interface>
|
||||
</node>
|
||||
+398
@@ -0,0 +1,398 @@
|
||||
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
|
||||
<?xml-stylesheet type="text/xsl" href="introspect.xsl"?>
|
||||
<!DOCTYPE node SYSTEM "introspect.dtd">
|
||||
|
||||
<!--
|
||||
This file is part of avahi.
|
||||
|
||||
avahi is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
avahi is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with avahi; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
-->
|
||||
|
||||
<node>
|
||||
<interface name="org.freedesktop.Avahi.Server">
|
||||
|
||||
<method name="GetVersionString">
|
||||
<arg name="version" type="s" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="GetAPIVersion">
|
||||
<arg name="version" type="u" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="GetHostName">
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
</method>
|
||||
<method name="SetHostName">
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
</method>
|
||||
<method name="GetHostNameFqdn">
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
</method>
|
||||
<method name="GetDomainName">
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="IsNSSSupportAvailable">
|
||||
<arg name="yes" type="b" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="GetState">
|
||||
<arg name="state" type="i" direction="out"/>
|
||||
</method>
|
||||
|
||||
<signal name="StateChanged">
|
||||
<arg name="state" type="i"/>
|
||||
<arg name="error" type="s"/>
|
||||
</signal>
|
||||
|
||||
<method name="GetLocalServiceCookie">
|
||||
<arg name="cookie" type="u" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="GetAlternativeHostName">
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="GetAlternativeServiceName">
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="GetNetworkInterfaceNameByIndex">
|
||||
<arg name="index" type="i" direction="in"/>
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
</method>
|
||||
<method name="GetNetworkInterfaceIndexByName">
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="index" type="i" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="ResolveHostName">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="aprotocol" type="i" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
|
||||
<arg name="interface" type="i" direction="out"/>
|
||||
<arg name="protocol" type="i" direction="out"/>
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
<arg name="aprotocol" type="i" direction="out"/>
|
||||
<arg name="address" type="s" direction="out"/>
|
||||
<arg name="flags" type="u" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="ResolveAddress">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="address" type="s" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
|
||||
<arg name="interface" type="i" direction="out"/>
|
||||
<arg name="protocol" type="i" direction="out"/>
|
||||
<arg name="aprotocol" type="i" direction="out"/>
|
||||
<arg name="address" type="s" direction="out"/>
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
<arg name="flags" type="u" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="ResolveService">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="type" type="s" direction="in"/>
|
||||
<arg name="domain" type="s" direction="in"/>
|
||||
<arg name="aprotocol" type="i" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
|
||||
<arg name="interface" type="i" direction="out"/>
|
||||
<arg name="protocol" type="i" direction="out"/>
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
<arg name="type" type="s" direction="out"/>
|
||||
<arg name="domain" type="s" direction="out"/>
|
||||
<arg name="host" type="s" direction="out"/>
|
||||
<arg name="aprotocol" type="i" direction="out"/>
|
||||
<arg name="address" type="s" direction="out"/>
|
||||
<arg name="port" type="q" direction="out"/>
|
||||
<arg name="txt" type="aay" direction="out"/>
|
||||
<arg name="flags" type="u" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="EntryGroupNew">
|
||||
<arg name="path" type="o" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="DomainBrowserNew">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="domain" type="s" direction="in"/>
|
||||
<arg name="btype" type="i" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
|
||||
<arg name="path" type="o" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="ServiceTypeBrowserNew">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="domain" type="s" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
|
||||
<arg name="path" type="o" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="ServiceBrowserNew">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="type" type="s" direction="in"/>
|
||||
<arg name="domain" type="s" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
|
||||
<arg name="path" type="o" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="ServiceResolverNew">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="type" type="s" direction="in"/>
|
||||
<arg name="domain" type="s" direction="in"/>
|
||||
<arg name="aprotocol" type="i" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
|
||||
<arg name="path" type="o" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="HostNameResolverNew">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="aprotocol" type="i" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
|
||||
<arg name="path" type="o" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="AddressResolverNew">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="address" type="s" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
|
||||
<arg name="path" type="o" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="RecordBrowserNew">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="clazz" type="q" direction="in"/>
|
||||
<arg name="type" type="q" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
|
||||
<arg name="path" type="o" direction="out"/>
|
||||
</method>
|
||||
|
||||
</interface>
|
||||
|
||||
<interface name="org.freedesktop.Avahi.Server2">
|
||||
|
||||
<method name="GetVersionString">
|
||||
<arg name="version" type="s" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="GetAPIVersion">
|
||||
<arg name="version" type="u" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="GetHostName">
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
</method>
|
||||
<method name="SetHostName">
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
</method>
|
||||
<method name="GetHostNameFqdn">
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
</method>
|
||||
<method name="GetDomainName">
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="IsNSSSupportAvailable">
|
||||
<arg name="yes" type="b" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="GetState">
|
||||
<arg name="state" type="i" direction="out"/>
|
||||
</method>
|
||||
|
||||
<signal name="StateChanged">
|
||||
<arg name="state" type="i"/>
|
||||
<arg name="error" type="s"/>
|
||||
</signal>
|
||||
|
||||
<method name="GetLocalServiceCookie">
|
||||
<arg name="cookie" type="u" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="GetAlternativeHostName">
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="GetAlternativeServiceName">
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="GetNetworkInterfaceNameByIndex">
|
||||
<arg name="index" type="i" direction="in"/>
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
</method>
|
||||
<method name="GetNetworkInterfaceIndexByName">
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="index" type="i" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="ResolveHostName">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="aprotocol" type="i" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
|
||||
<arg name="interface" type="i" direction="out"/>
|
||||
<arg name="protocol" type="i" direction="out"/>
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
<arg name="aprotocol" type="i" direction="out"/>
|
||||
<arg name="address" type="s" direction="out"/>
|
||||
<arg name="flags" type="u" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="ResolveAddress">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="address" type="s" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
|
||||
<arg name="interface" type="i" direction="out"/>
|
||||
<arg name="protocol" type="i" direction="out"/>
|
||||
<arg name="aprotocol" type="i" direction="out"/>
|
||||
<arg name="address" type="s" direction="out"/>
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
<arg name="flags" type="u" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="ResolveService">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="type" type="s" direction="in"/>
|
||||
<arg name="domain" type="s" direction="in"/>
|
||||
<arg name="aprotocol" type="i" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
|
||||
<arg name="interface" type="i" direction="out"/>
|
||||
<arg name="protocol" type="i" direction="out"/>
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
<arg name="type" type="s" direction="out"/>
|
||||
<arg name="domain" type="s" direction="out"/>
|
||||
<arg name="host" type="s" direction="out"/>
|
||||
<arg name="aprotocol" type="i" direction="out"/>
|
||||
<arg name="address" type="s" direction="out"/>
|
||||
<arg name="port" type="q" direction="out"/>
|
||||
<arg name="txt" type="aay" direction="out"/>
|
||||
<arg name="flags" type="u" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="EntryGroupNew">
|
||||
<arg name="path" type="o" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="DomainBrowserPrepare">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="domain" type="s" direction="in"/>
|
||||
<arg name="btype" type="i" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
|
||||
<arg name="path" type="o" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="ServiceTypeBrowserPrepare">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="domain" type="s" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
|
||||
<arg name="path" type="o" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="ServiceBrowserPrepare">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="type" type="s" direction="in"/>
|
||||
<arg name="domain" type="s" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
|
||||
<arg name="path" type="o" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="ServiceResolverPrepare">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="type" type="s" direction="in"/>
|
||||
<arg name="domain" type="s" direction="in"/>
|
||||
<arg name="aprotocol" type="i" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
|
||||
<arg name="path" type="o" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="HostNameResolverPrepare">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="aprotocol" type="i" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
|
||||
<arg name="path" type="o" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="AddressResolverPrepare">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="address" type="s" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
|
||||
<arg name="path" type="o" direction="out"/>
|
||||
</method>
|
||||
|
||||
<method name="RecordBrowserPrepare">
|
||||
<arg name="interface" type="i" direction="in"/>
|
||||
<arg name="protocol" type="i" direction="in"/>
|
||||
<arg name="name" type="s" direction="in"/>
|
||||
<arg name="clazz" type="q" direction="in"/>
|
||||
<arg name="type" type="q" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
|
||||
<arg name="path" type="o" direction="out"/>
|
||||
</method>
|
||||
|
||||
</interface>
|
||||
</node>
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
|
||||
<?xml-stylesheet type="text/xsl" href="introspect.xsl"?>
|
||||
<!DOCTYPE node SYSTEM "introspect.dtd">
|
||||
|
||||
<!--
|
||||
This file is part of avahi.
|
||||
|
||||
avahi is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
avahi is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with avahi; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
-->
|
||||
|
||||
<node>
|
||||
<interface name="org.freedesktop.Avahi.ServiceBrowser">
|
||||
|
||||
<method name="Free"/>
|
||||
|
||||
<method name="Start"/>
|
||||
|
||||
<signal name="ItemNew">
|
||||
<arg name="interface" type="i"/>
|
||||
<arg name="protocol" type="i"/>
|
||||
<arg name="name" type="s"/>
|
||||
<arg name="type" type="s"/>
|
||||
<arg name="domain" type="s"/>
|
||||
<arg name="flags" type="u"/>
|
||||
</signal>
|
||||
|
||||
<signal name="ItemRemove">
|
||||
<arg name="interface" type="i"/>
|
||||
<arg name="protocol" type="i"/>
|
||||
<arg name="name" type="s"/>
|
||||
<arg name="type" type="s"/>
|
||||
<arg name="domain" type="s"/>
|
||||
<arg name="flags" type="u"/>
|
||||
</signal>
|
||||
|
||||
<signal name="Failure">
|
||||
<arg name="error" type="s"/>
|
||||
</signal>
|
||||
|
||||
<signal name="AllForNow"/>
|
||||
|
||||
<signal name="CacheExhausted"/>
|
||||
|
||||
</interface>
|
||||
</node>
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
|
||||
<?xml-stylesheet type="text/xsl" href="introspect.xsl"?>
|
||||
<!DOCTYPE node SYSTEM "introspect.dtd">
|
||||
|
||||
<!--
|
||||
This file is part of avahi.
|
||||
|
||||
avahi is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
avahi is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with avahi; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
-->
|
||||
|
||||
<node>
|
||||
|
||||
<interface name="org.freedesktop.DBus.Introspectable">
|
||||
<method name="Introspect">
|
||||
<arg name="data" type="s" direction="out" />
|
||||
</method>
|
||||
</interface>
|
||||
|
||||
<interface name="org.freedesktop.Avahi.ServiceResolver">
|
||||
|
||||
<method name="Free"/>
|
||||
|
||||
<method name="Start"/>
|
||||
|
||||
<signal name="Found">
|
||||
<arg name="interface" type="i" direction="out"/>
|
||||
<arg name="protocol" type="i" direction="out"/>
|
||||
<arg name="name" type="s" direction="out"/>
|
||||
<arg name="type" type="s" direction="out"/>
|
||||
<arg name="domain" type="s" direction="out"/>
|
||||
<arg name="host" type="s" direction="out"/>
|
||||
<arg name="aprotocol" type="i" direction="out"/>
|
||||
<arg name="address" type="s" direction="out"/>
|
||||
<arg name="port" type="q" direction="out"/>
|
||||
<arg name="txt" type="aay" direction="out"/>
|
||||
<arg name="flags" type="u" direction="out"/>
|
||||
</signal>
|
||||
|
||||
<signal name="Failure">
|
||||
<arg name="error" type="s"/>
|
||||
</signal>
|
||||
|
||||
</interface>
|
||||
</node>
|
||||
@@ -0,0 +1,399 @@
|
||||
|
||||
/*
|
||||
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
|
||||
*/
|
||||
|
||||
#ifndef __sdbuscpp__avahi_server_client_glue_h__proxy__H__
|
||||
#define __sdbuscpp__avahi_server_client_glue_h__proxy__H__
|
||||
|
||||
#include <sdbus-c++/sdbus-c++.h>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
namespace org {
|
||||
namespace freedesktop {
|
||||
namespace Avahi {
|
||||
|
||||
class Server_proxy
|
||||
{
|
||||
public:
|
||||
static constexpr const char* INTERFACE_NAME = "org.freedesktop.Avahi.Server";
|
||||
|
||||
protected:
|
||||
Server_proxy(sdbus::IProxy& proxy)
|
||||
: proxy_(proxy)
|
||||
{
|
||||
proxy_.uponSignal("StateChanged").onInterface(INTERFACE_NAME).call([this](const int32_t& state, const std::string& error){ this->onStateChanged(state, error); });
|
||||
}
|
||||
|
||||
~Server_proxy() = default;
|
||||
|
||||
virtual void onStateChanged(const int32_t& state, const std::string& error) = 0;
|
||||
|
||||
public:
|
||||
std::string GetVersionString()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("GetVersionString").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
uint32_t GetAPIVersion()
|
||||
{
|
||||
uint32_t result;
|
||||
proxy_.callMethod("GetAPIVersion").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string GetHostName()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("GetHostName").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void SetHostName(const std::string& name)
|
||||
{
|
||||
proxy_.callMethod("SetHostName").onInterface(INTERFACE_NAME).withArguments(name);
|
||||
}
|
||||
|
||||
std::string GetHostNameFqdn()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("GetHostNameFqdn").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string GetDomainName()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("GetDomainName").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
bool IsNSSSupportAvailable()
|
||||
{
|
||||
bool result;
|
||||
proxy_.callMethod("IsNSSSupportAvailable").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
int32_t GetState()
|
||||
{
|
||||
int32_t result;
|
||||
proxy_.callMethod("GetState").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
uint32_t GetLocalServiceCookie()
|
||||
{
|
||||
uint32_t result;
|
||||
proxy_.callMethod("GetLocalServiceCookie").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string GetAlternativeHostName(const std::string& name)
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("GetAlternativeHostName").onInterface(INTERFACE_NAME).withArguments(name).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string GetAlternativeServiceName(const std::string& name)
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("GetAlternativeServiceName").onInterface(INTERFACE_NAME).withArguments(name).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string GetNetworkInterfaceNameByIndex(const int32_t& index)
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("GetNetworkInterfaceNameByIndex").onInterface(INTERFACE_NAME).withArguments(index).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
int32_t GetNetworkInterfaceIndexByName(const std::string& name)
|
||||
{
|
||||
int32_t result;
|
||||
proxy_.callMethod("GetNetworkInterfaceIndexByName").onInterface(INTERFACE_NAME).withArguments(name).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::tuple<int32_t, int32_t, std::string, int32_t, std::string, uint32_t> ResolveHostName(const int32_t& interface, const int32_t& protocol, const std::string& name, const int32_t& aprotocol, const uint32_t& flags)
|
||||
{
|
||||
std::tuple<int32_t, int32_t, std::string, int32_t, std::string, uint32_t> result;
|
||||
proxy_.callMethod("ResolveHostName").onInterface(INTERFACE_NAME).withArguments(interface, protocol, name, aprotocol, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::tuple<int32_t, int32_t, int32_t, std::string, std::string, uint32_t> ResolveAddress(const int32_t& interface, const int32_t& protocol, const std::string& address, const uint32_t& flags)
|
||||
{
|
||||
std::tuple<int32_t, int32_t, int32_t, std::string, std::string, uint32_t> result;
|
||||
proxy_.callMethod("ResolveAddress").onInterface(INTERFACE_NAME).withArguments(interface, protocol, address, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::tuple<int32_t, int32_t, std::string, std::string, std::string, std::string, int32_t, std::string, uint16_t, std::vector<std::vector<uint8_t>>, uint32_t> ResolveService(const int32_t& interface, const int32_t& protocol, const std::string& name, const std::string& type, const std::string& domain, const int32_t& aprotocol, const uint32_t& flags)
|
||||
{
|
||||
std::tuple<int32_t, int32_t, std::string, std::string, std::string, std::string, int32_t, std::string, uint16_t, std::vector<std::vector<uint8_t>>, uint32_t> result;
|
||||
proxy_.callMethod("ResolveService").onInterface(INTERFACE_NAME).withArguments(interface, protocol, name, type, domain, aprotocol, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath EntryGroupNew()
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("EntryGroupNew").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath DomainBrowserNew(const int32_t& interface, const int32_t& protocol, const std::string& domain, const int32_t& btype, const uint32_t& flags)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("DomainBrowserNew").onInterface(INTERFACE_NAME).withArguments(interface, protocol, domain, btype, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath ServiceTypeBrowserNew(const int32_t& interface, const int32_t& protocol, const std::string& domain, const uint32_t& flags)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("ServiceTypeBrowserNew").onInterface(INTERFACE_NAME).withArguments(interface, protocol, domain, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath ServiceBrowserNew(const int32_t& interface, const int32_t& protocol, const std::string& type, const std::string& domain, const uint32_t& flags)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("ServiceBrowserNew").onInterface(INTERFACE_NAME).withArguments(interface, protocol, type, domain, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath ServiceResolverNew(const int32_t& interface, const int32_t& protocol, const std::string& name, const std::string& type, const std::string& domain, const int32_t& aprotocol, const uint32_t& flags)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("ServiceResolverNew").onInterface(INTERFACE_NAME).withArguments(interface, protocol, name, type, domain, aprotocol, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath HostNameResolverNew(const int32_t& interface, const int32_t& protocol, const std::string& name, const int32_t& aprotocol, const uint32_t& flags)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("HostNameResolverNew").onInterface(INTERFACE_NAME).withArguments(interface, protocol, name, aprotocol, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath AddressResolverNew(const int32_t& interface, const int32_t& protocol, const std::string& address, const uint32_t& flags)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("AddressResolverNew").onInterface(INTERFACE_NAME).withArguments(interface, protocol, address, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath RecordBrowserNew(const int32_t& interface, const int32_t& protocol, const std::string& name, const uint16_t& clazz, const uint16_t& type, const uint32_t& flags)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("RecordBrowserNew").onInterface(INTERFACE_NAME).withArguments(interface, protocol, name, clazz, type, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
private:
|
||||
sdbus::IProxy& proxy_;
|
||||
};
|
||||
|
||||
}}} // namespaces
|
||||
|
||||
namespace org {
|
||||
namespace freedesktop {
|
||||
namespace Avahi {
|
||||
|
||||
class Server2_proxy
|
||||
{
|
||||
public:
|
||||
static constexpr const char* INTERFACE_NAME = "org.freedesktop.Avahi.Server2";
|
||||
|
||||
protected:
|
||||
Server2_proxy(sdbus::IProxy& proxy)
|
||||
: proxy_(proxy)
|
||||
{
|
||||
proxy_.uponSignal("StateChanged").onInterface(INTERFACE_NAME).call([this](const int32_t& state, const std::string& error){ this->onStateChanged(state, error); });
|
||||
}
|
||||
|
||||
~Server2_proxy() = default;
|
||||
|
||||
virtual void onStateChanged(const int32_t& state, const std::string& error) = 0;
|
||||
|
||||
public:
|
||||
std::string GetVersionString()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("GetVersionString").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
uint32_t GetAPIVersion()
|
||||
{
|
||||
uint32_t result;
|
||||
proxy_.callMethod("GetAPIVersion").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string GetHostName()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("GetHostName").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void SetHostName(const std::string& name)
|
||||
{
|
||||
proxy_.callMethod("SetHostName").onInterface(INTERFACE_NAME).withArguments(name);
|
||||
}
|
||||
|
||||
std::string GetHostNameFqdn()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("GetHostNameFqdn").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string GetDomainName()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("GetDomainName").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
bool IsNSSSupportAvailable()
|
||||
{
|
||||
bool result;
|
||||
proxy_.callMethod("IsNSSSupportAvailable").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
int32_t GetState()
|
||||
{
|
||||
int32_t result;
|
||||
proxy_.callMethod("GetState").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
uint32_t GetLocalServiceCookie()
|
||||
{
|
||||
uint32_t result;
|
||||
proxy_.callMethod("GetLocalServiceCookie").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string GetAlternativeHostName(const std::string& name)
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("GetAlternativeHostName").onInterface(INTERFACE_NAME).withArguments(name).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string GetAlternativeServiceName(const std::string& name)
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("GetAlternativeServiceName").onInterface(INTERFACE_NAME).withArguments(name).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string GetNetworkInterfaceNameByIndex(const int32_t& index)
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("GetNetworkInterfaceNameByIndex").onInterface(INTERFACE_NAME).withArguments(index).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
int32_t GetNetworkInterfaceIndexByName(const std::string& name)
|
||||
{
|
||||
int32_t result;
|
||||
proxy_.callMethod("GetNetworkInterfaceIndexByName").onInterface(INTERFACE_NAME).withArguments(name).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::tuple<int32_t, int32_t, std::string, int32_t, std::string, uint32_t> ResolveHostName(const int32_t& interface, const int32_t& protocol, const std::string& name, const int32_t& aprotocol, const uint32_t& flags)
|
||||
{
|
||||
std::tuple<int32_t, int32_t, std::string, int32_t, std::string, uint32_t> result;
|
||||
proxy_.callMethod("ResolveHostName").onInterface(INTERFACE_NAME).withArguments(interface, protocol, name, aprotocol, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::tuple<int32_t, int32_t, int32_t, std::string, std::string, uint32_t> ResolveAddress(const int32_t& interface, const int32_t& protocol, const std::string& address, const uint32_t& flags)
|
||||
{
|
||||
std::tuple<int32_t, int32_t, int32_t, std::string, std::string, uint32_t> result;
|
||||
proxy_.callMethod("ResolveAddress").onInterface(INTERFACE_NAME).withArguments(interface, protocol, address, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::tuple<int32_t, int32_t, std::string, std::string, std::string, std::string, int32_t, std::string, uint16_t, std::vector<std::vector<uint8_t>>, uint32_t> ResolveService(const int32_t& interface, const int32_t& protocol, const std::string& name, const std::string& type, const std::string& domain, const int32_t& aprotocol, const uint32_t& flags)
|
||||
{
|
||||
std::tuple<int32_t, int32_t, std::string, std::string, std::string, std::string, int32_t, std::string, uint16_t, std::vector<std::vector<uint8_t>>, uint32_t> result;
|
||||
proxy_.callMethod("ResolveService").onInterface(INTERFACE_NAME).withArguments(interface, protocol, name, type, domain, aprotocol, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath EntryGroupNew()
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("EntryGroupNew").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath DomainBrowserPrepare(const int32_t& interface, const int32_t& protocol, const std::string& domain, const int32_t& btype, const uint32_t& flags)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("DomainBrowserPrepare").onInterface(INTERFACE_NAME).withArguments(interface, protocol, domain, btype, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath ServiceTypeBrowserPrepare(const int32_t& interface, const int32_t& protocol, const std::string& domain, const uint32_t& flags)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("ServiceTypeBrowserPrepare").onInterface(INTERFACE_NAME).withArguments(interface, protocol, domain, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath ServiceBrowserPrepare(const int32_t& interface, const int32_t& protocol, const std::string& type, const std::string& domain, const uint32_t& flags)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("ServiceBrowserPrepare").onInterface(INTERFACE_NAME).withArguments(interface, protocol, type, domain, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath ServiceResolverPrepare(const int32_t& interface, const int32_t& protocol, const std::string& name, const std::string& type, const std::string& domain, const int32_t& aprotocol, const uint32_t& flags)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("ServiceResolverPrepare").onInterface(INTERFACE_NAME).withArguments(interface, protocol, name, type, domain, aprotocol, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath HostNameResolverPrepare(const int32_t& interface, const int32_t& protocol, const std::string& name, const int32_t& aprotocol, const uint32_t& flags)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("HostNameResolverPrepare").onInterface(INTERFACE_NAME).withArguments(interface, protocol, name, aprotocol, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath AddressResolverPrepare(const int32_t& interface, const int32_t& protocol, const std::string& address, const uint32_t& flags)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("AddressResolverPrepare").onInterface(INTERFACE_NAME).withArguments(interface, protocol, address, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath RecordBrowserPrepare(const int32_t& interface, const int32_t& protocol, const std::string& name, const uint16_t& clazz, const uint16_t& type, const uint32_t& flags)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("RecordBrowserPrepare").onInterface(INTERFACE_NAME).withArguments(interface, protocol, name, clazz, type, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
private:
|
||||
sdbus::IProxy& proxy_;
|
||||
};
|
||||
|
||||
}}} // namespaces
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,58 @@
|
||||
|
||||
/*
|
||||
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
|
||||
*/
|
||||
|
||||
#ifndef __sdbuscpp__avahi_servicebrowser_client_glue_h__proxy__H__
|
||||
#define __sdbuscpp__avahi_servicebrowser_client_glue_h__proxy__H__
|
||||
|
||||
#include <sdbus-c++/sdbus-c++.h>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
namespace org {
|
||||
namespace freedesktop {
|
||||
namespace Avahi {
|
||||
|
||||
class ServiceBrowser_proxy
|
||||
{
|
||||
public:
|
||||
static constexpr const char* INTERFACE_NAME = "org.freedesktop.Avahi.ServiceBrowser";
|
||||
|
||||
protected:
|
||||
ServiceBrowser_proxy(sdbus::IProxy& proxy)
|
||||
: proxy_(proxy)
|
||||
{
|
||||
proxy_.uponSignal("ItemNew").onInterface(INTERFACE_NAME).call([this](const int32_t& interface, const int32_t& protocol, const std::string& name, const std::string& type, const std::string& domain, const uint32_t& flags){ this->onItemNew(interface, protocol, name, type, domain, flags); });
|
||||
proxy_.uponSignal("ItemRemove").onInterface(INTERFACE_NAME).call([this](const int32_t& interface, const int32_t& protocol, const std::string& name, const std::string& type, const std::string& domain, const uint32_t& flags){ this->onItemRemove(interface, protocol, name, type, domain, flags); });
|
||||
proxy_.uponSignal("Failure").onInterface(INTERFACE_NAME).call([this](const std::string& error){ this->onFailure(error); });
|
||||
proxy_.uponSignal("AllForNow").onInterface(INTERFACE_NAME).call([this](){ this->onAllForNow(); });
|
||||
proxy_.uponSignal("CacheExhausted").onInterface(INTERFACE_NAME).call([this](){ this->onCacheExhausted(); });
|
||||
}
|
||||
|
||||
~ServiceBrowser_proxy() = default;
|
||||
|
||||
virtual void onItemNew(const int32_t& interface, const int32_t& protocol, const std::string& name, const std::string& type, const std::string& domain, const uint32_t& flags) = 0;
|
||||
virtual void onItemRemove(const int32_t& interface, const int32_t& protocol, const std::string& name, const std::string& type, const std::string& domain, const uint32_t& flags) = 0;
|
||||
virtual void onFailure(const std::string& error) = 0;
|
||||
virtual void onAllForNow() = 0;
|
||||
virtual void onCacheExhausted() = 0;
|
||||
|
||||
public:
|
||||
void Free()
|
||||
{
|
||||
proxy_.callMethod("Free").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
proxy_.callMethod("Start").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
private:
|
||||
sdbus::IProxy& proxy_;
|
||||
};
|
||||
|
||||
}}} // namespaces
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,179 @@
|
||||
|
||||
/*
|
||||
* 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__
|
||||
|
||||
#include <sdbus-c++/sdbus-c++.h>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
namespace org {
|
||||
namespace bluez {
|
||||
|
||||
class Adapter1_proxy
|
||||
{
|
||||
public:
|
||||
static constexpr const char* INTERFACE_NAME = "org.bluez.Adapter1";
|
||||
|
||||
protected:
|
||||
Adapter1_proxy(sdbus::IProxy& proxy)
|
||||
: proxy_(proxy)
|
||||
{
|
||||
}
|
||||
|
||||
~Adapter1_proxy() = default;
|
||||
|
||||
public:
|
||||
void StartDiscovery()
|
||||
{
|
||||
proxy_.callMethod("StartDiscovery").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void SetDiscoveryFilter(const std::map<std::string, sdbus::Variant>& properties)
|
||||
{
|
||||
proxy_.callMethod("SetDiscoveryFilter").onInterface(INTERFACE_NAME).withArguments(properties);
|
||||
}
|
||||
|
||||
void StopDiscovery()
|
||||
{
|
||||
proxy_.callMethod("StopDiscovery").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void RemoveDevice(const sdbus::ObjectPath& device)
|
||||
{
|
||||
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);
|
||||
return result;
|
||||
}
|
||||
|
||||
void ConnectDevice(const std::map<std::string, sdbus::Variant>& properties)
|
||||
{
|
||||
proxy_.callMethod("ConnectDevice").onInterface(INTERFACE_NAME).withArguments(properties);
|
||||
}
|
||||
|
||||
public:
|
||||
std::string Address()
|
||||
{
|
||||
return proxy_.getProperty("Address").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string AddressType()
|
||||
{
|
||||
return proxy_.getProperty("AddressType").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Name()
|
||||
{
|
||||
return proxy_.getProperty("Name").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Alias()
|
||||
{
|
||||
return proxy_.getProperty("Alias").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void Alias(const std::string& value)
|
||||
{
|
||||
proxy_.setProperty("Alias").onInterface(INTERFACE_NAME).toValue(value);
|
||||
}
|
||||
|
||||
uint32_t Class()
|
||||
{
|
||||
return proxy_.getProperty("Class").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool Powered()
|
||||
{
|
||||
return proxy_.getProperty("Powered").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void Powered(const bool& value)
|
||||
{
|
||||
proxy_.setProperty("Powered").onInterface(INTERFACE_NAME).toValue(value);
|
||||
}
|
||||
|
||||
std::string PowerState()
|
||||
{
|
||||
return proxy_.getProperty("PowerState").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool Discoverable()
|
||||
{
|
||||
return proxy_.getProperty("Discoverable").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void Discoverable(const bool& value)
|
||||
{
|
||||
proxy_.setProperty("Discoverable").onInterface(INTERFACE_NAME).toValue(value);
|
||||
}
|
||||
|
||||
uint32_t DiscoverableTimeout()
|
||||
{
|
||||
return proxy_.getProperty("DiscoverableTimeout").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void DiscoverableTimeout(const uint32_t& value)
|
||||
{
|
||||
proxy_.setProperty("DiscoverableTimeout").onInterface(INTERFACE_NAME).toValue(value);
|
||||
}
|
||||
|
||||
bool Pairable()
|
||||
{
|
||||
return proxy_.getProperty("Pairable").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void Pairable(const bool& value)
|
||||
{
|
||||
proxy_.setProperty("Pairable").onInterface(INTERFACE_NAME).toValue(value);
|
||||
}
|
||||
|
||||
uint32_t PairableTimeout()
|
||||
{
|
||||
return proxy_.getProperty("PairableTimeout").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void PairableTimeout(const uint32_t& value)
|
||||
{
|
||||
proxy_.setProperty("PairableTimeout").onInterface(INTERFACE_NAME).toValue(value);
|
||||
}
|
||||
|
||||
bool Discovering()
|
||||
{
|
||||
return proxy_.getProperty("Discovering").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<std::string> UUIDs()
|
||||
{
|
||||
return proxy_.getProperty("UUIDs").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Modalias()
|
||||
{
|
||||
return proxy_.getProperty("Modalias").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<std::string> Roles()
|
||||
{
|
||||
return proxy_.getProperty("Roles").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<std::string> ExperimentalFeatures()
|
||||
{
|
||||
return proxy_.getProperty("ExperimentalFeatures").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
private:
|
||||
sdbus::IProxy& proxy_;
|
||||
};
|
||||
|
||||
}} // namespaces
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,215 @@
|
||||
|
||||
/*
|
||||
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
|
||||
*/
|
||||
|
||||
#ifndef __sdbuscpp__bluez_device_client_glue_h__proxy__H__
|
||||
#define __sdbuscpp__bluez_device_client_glue_h__proxy__H__
|
||||
|
||||
#include <sdbus-c++/sdbus-c++.h>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
namespace org {
|
||||
namespace bluez {
|
||||
|
||||
class Device1_proxy
|
||||
{
|
||||
public:
|
||||
static constexpr const char* INTERFACE_NAME = "org.bluez.Device1";
|
||||
|
||||
protected:
|
||||
Device1_proxy(sdbus::IProxy& proxy)
|
||||
: proxy_(proxy)
|
||||
{
|
||||
}
|
||||
|
||||
~Device1_proxy() = default;
|
||||
|
||||
virtual void onConnectProfileReply(const sdbus::Error* error) = 0;
|
||||
virtual void onPairReply(const sdbus::Error* error) = 0;
|
||||
|
||||
public:
|
||||
void Disconnect()
|
||||
{
|
||||
proxy_.callMethod("Disconnect").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void Connect()
|
||||
{
|
||||
proxy_.callMethod("Connect").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
sdbus::PendingAsyncCall ConnectProfile(const std::string& UUID)
|
||||
{
|
||||
return proxy_.callMethodAsync("ConnectProfile").onInterface(INTERFACE_NAME).withArguments(UUID).uponReplyInvoke([this](const sdbus::Error* error){ this->onConnectProfileReply(error); });
|
||||
}
|
||||
|
||||
void DisconnectProfile(const std::string& UUID)
|
||||
{
|
||||
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); });
|
||||
}
|
||||
|
||||
void CancelPairing()
|
||||
{
|
||||
proxy_.callMethod("CancelPairing").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
public:
|
||||
std::string Address()
|
||||
{
|
||||
return proxy_.getProperty("Address").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string AddressType()
|
||||
{
|
||||
return proxy_.getProperty("AddressType").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Name()
|
||||
{
|
||||
return proxy_.getProperty("Name").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Alias()
|
||||
{
|
||||
return proxy_.getProperty("Alias").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void Alias(const std::string& value)
|
||||
{
|
||||
proxy_.setProperty("Alias").onInterface(INTERFACE_NAME).toValue(value);
|
||||
}
|
||||
|
||||
uint32_t Class()
|
||||
{
|
||||
return proxy_.getProperty("Class").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint16_t Appearance()
|
||||
{
|
||||
return proxy_.getProperty("Appearance").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Icon()
|
||||
{
|
||||
return proxy_.getProperty("Icon").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool Paired()
|
||||
{
|
||||
return proxy_.getProperty("Paired").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool Bonded()
|
||||
{
|
||||
return proxy_.getProperty("Bonded").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool Trusted()
|
||||
{
|
||||
return proxy_.getProperty("Trusted").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void Trusted(const bool& value)
|
||||
{
|
||||
proxy_.setProperty("Trusted").onInterface(INTERFACE_NAME).toValue(value);
|
||||
}
|
||||
|
||||
bool Blocked()
|
||||
{
|
||||
return proxy_.getProperty("Blocked").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void Blocked(const bool& value)
|
||||
{
|
||||
proxy_.setProperty("Blocked").onInterface(INTERFACE_NAME).toValue(value);
|
||||
}
|
||||
|
||||
bool LegacyPairing()
|
||||
{
|
||||
return proxy_.getProperty("LegacyPairing").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
int16_t RSSI()
|
||||
{
|
||||
return proxy_.getProperty("RSSI").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool Connected()
|
||||
{
|
||||
return proxy_.getProperty("Connected").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<std::string> UUIDs()
|
||||
{
|
||||
return proxy_.getProperty("UUIDs").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Modalias()
|
||||
{
|
||||
return proxy_.getProperty("Modalias").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
sdbus::ObjectPath Adapter()
|
||||
{
|
||||
return proxy_.getProperty("Adapter").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::map<uint16_t, sdbus::Variant> ManufacturerData()
|
||||
{
|
||||
return proxy_.getProperty("ManufacturerData").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::map<std::string, sdbus::Variant> ServiceData()
|
||||
{
|
||||
return proxy_.getProperty("ServiceData").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
int16_t TxPower()
|
||||
{
|
||||
return proxy_.getProperty("TxPower").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool ServicesResolved()
|
||||
{
|
||||
return proxy_.getProperty("ServicesResolved").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<uint8_t> AdvertisingFlags()
|
||||
{
|
||||
return proxy_.getProperty("AdvertisingFlags").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::map<uint8_t, sdbus::Variant> AdvertisingData()
|
||||
{
|
||||
return proxy_.getProperty("AdvertisingData").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool WakeAllowed()
|
||||
{
|
||||
return proxy_.getProperty("WakeAllowed").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void WakeAllowed(const bool& value)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
private:
|
||||
sdbus::IProxy& proxy_;
|
||||
};
|
||||
|
||||
}} // namespaces
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
||||
<node>
|
||||
<interface name="org.bluez.Adapter1">
|
||||
<method name="StartDiscovery" />
|
||||
<method name="SetDiscoveryFilter">
|
||||
<arg name="properties" type="a{sv}" direction="in" />
|
||||
</method>
|
||||
<method name="StopDiscovery" />
|
||||
<method name="RemoveDevice">
|
||||
<arg name="device" type="o" direction="in" />
|
||||
</method>
|
||||
<method name="GetDiscoveryFilters">
|
||||
<arg name="filters" type="as" direction="out" />
|
||||
</method>
|
||||
<method name="ConnectDevice">
|
||||
<arg name="properties" type="a{sv}" direction="in" />
|
||||
</method>
|
||||
<property name="Address" type="s" access="read" />
|
||||
<property name="AddressType" type="s" access="read" />
|
||||
<property name="Name" type="s" access="read" />
|
||||
<property name="Alias" type="s" access="readwrite" />
|
||||
<property name="Class" type="u" access="read" />
|
||||
<property name="Powered" type="b" access="readwrite" />
|
||||
<property name="PowerState" type="s" access="read" />
|
||||
<property name="Discoverable" type="b" access="readwrite" />
|
||||
<property name="DiscoverableTimeout" type="u" access="readwrite" />
|
||||
<property name="Pairable" type="b" access="readwrite" />
|
||||
<property name="PairableTimeout" type="u" access="readwrite" />
|
||||
<property name="Discovering" type="b" access="read" />
|
||||
<property name="UUIDs" type="as" access="read" />
|
||||
<property name="Modalias" type="s" access="read" />
|
||||
<property name="Roles" type="as" access="read" />
|
||||
<property name="ExperimentalFeatures" type="as" access="read" />
|
||||
</interface>
|
||||
</node>
|
||||
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
||||
<node>
|
||||
<interface name="org.bluez.Device1">
|
||||
<method name="Disconnect" />
|
||||
<method name="Connect" />
|
||||
<method name="ConnectProfile">
|
||||
<annotation name="org.freedesktop.DBus.Method.Async" value="client"/>
|
||||
<arg name="UUID" type="s" direction="in" />
|
||||
</method>
|
||||
<method name="DisconnectProfile">
|
||||
<arg name="UUID" type="s" direction="in" />
|
||||
</method>
|
||||
<method name="Pair">
|
||||
<annotation name="org.freedesktop.DBus.Method.Async" value="client"/>
|
||||
</method>
|
||||
<method name="CancelPairing" />
|
||||
<property name="Address" type="s" access="read" />
|
||||
<property name="AddressType" type="s" access="read" />
|
||||
<property name="Name" type="s" access="read" />
|
||||
<property name="Alias" type="s" access="readwrite" />
|
||||
<property name="Class" type="u" access="read" />
|
||||
<property name="Appearance" type="q" access="read" />
|
||||
<property name="Icon" type="s" access="read" />
|
||||
<property name="Paired" type="b" access="read" />
|
||||
<property name="Bonded" type="b" access="read" />
|
||||
<property name="Trusted" type="b" access="readwrite" />
|
||||
<property name="Blocked" type="b" access="readwrite" />
|
||||
<property name="LegacyPairing" type="b" access="read" />
|
||||
<property name="RSSI" type="n" access="read" />
|
||||
<property name="Connected" type="b" access="read" />
|
||||
<property name="UUIDs" type="as" access="read" />
|
||||
<property name="Modalias" type="s" access="read" />
|
||||
<property name="Adapter" type="o" access="read" />
|
||||
<property name="ManufacturerData" type="a{qv}" access="read" />
|
||||
<property name="ServiceData" type="a{sv}" access="read" />
|
||||
<property name="TxPower" type="n" access="read" />
|
||||
<property name="ServicesResolved" type="b" access="read" />
|
||||
<property name="AdvertisingFlags" type="ay" access="read" />
|
||||
<property name="AdvertisingData" type="a{yv}" access="read" />
|
||||
<property name="WakeAllowed" type="b" access="readwrite" />
|
||||
<property name="Sets" type="a{oa{sv}}" access="read" />
|
||||
</interface>
|
||||
</node>
|
||||
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
||||
|
||||
<node>
|
||||
<interface name="org.bluez.Profile1">
|
||||
<method name='Release'>
|
||||
</method>
|
||||
<method name='NewConnection'>
|
||||
<arg type='o' name='device' direction='in'/>
|
||||
<arg type='h' name='fd' direction='in'/>
|
||||
<arg type='a{sv}' name='fd_properties' direction='in'/>
|
||||
</method>
|
||||
<method name='RequestDisconnection'>
|
||||
<arg type='o' name='device' direction='in'/>
|
||||
</method>
|
||||
</interface>
|
||||
</node>
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
||||
<node>
|
||||
<interface name="org.bluez.ProfileManager1">
|
||||
<method name="RegisterProfile">
|
||||
<arg name="profile" type="o" direction="in" />
|
||||
<arg name="UUID" type="s" direction="in" />
|
||||
<arg name="options" type="a{sv}" direction="in" />
|
||||
</method>
|
||||
<method name="UnregisterProfile">
|
||||
<arg name="profile" type="o" direction="in" />
|
||||
</method>
|
||||
</interface>
|
||||
</node>
|
||||
@@ -0,0 +1,46 @@
|
||||
|
||||
/*
|
||||
* 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__
|
||||
|
||||
#include <sdbus-c++/sdbus-c++.h>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
namespace org {
|
||||
namespace bluez {
|
||||
|
||||
class ProfileManager1_proxy
|
||||
{
|
||||
public:
|
||||
static constexpr const char* INTERFACE_NAME = "org.bluez.ProfileManager1";
|
||||
|
||||
protected:
|
||||
ProfileManager1_proxy(sdbus::IProxy& proxy)
|
||||
: proxy_(proxy)
|
||||
{
|
||||
}
|
||||
|
||||
~ProfileManager1_proxy() = default;
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
void UnregisterProfile(const sdbus::ObjectPath& profile)
|
||||
{
|
||||
proxy_.callMethod("UnregisterProfile").onInterface(INTERFACE_NAME).withArguments(profile);
|
||||
}
|
||||
|
||||
private:
|
||||
sdbus::IProxy& proxy_;
|
||||
};
|
||||
|
||||
}} // namespaces
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,43 @@
|
||||
|
||||
/*
|
||||
* 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__
|
||||
|
||||
#include <sdbus-c++/sdbus-c++.h>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
namespace org {
|
||||
namespace bluez {
|
||||
|
||||
class Profile1_adaptor
|
||||
{
|
||||
public:
|
||||
static constexpr const char* INTERFACE_NAME = "org.bluez.Profile1";
|
||||
|
||||
protected:
|
||||
Profile1_adaptor(sdbus::IObject& object)
|
||||
: 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() = default;
|
||||
|
||||
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_;
|
||||
};
|
||||
|
||||
}} // namespaces
|
||||
|
||||
#endif
|
||||
@@ -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>
|
||||
@@ -0,0 +1,45 @@
|
||||
|
||||
/*
|
||||
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
|
||||
*/
|
||||
|
||||
#ifndef __sdbuscpp__org_freedesktop_logcontrol_server_glue_h__adaptor__H__
|
||||
#define __sdbuscpp__org_freedesktop_logcontrol_server_glue_h__adaptor__H__
|
||||
|
||||
#include <sdbus-c++/sdbus-c++.h>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
namespace org {
|
||||
namespace freedesktop {
|
||||
|
||||
class LogControl1_adaptor
|
||||
{
|
||||
public:
|
||||
static constexpr const char* INTERFACE_NAME = "org.freedesktop.LogControl1";
|
||||
|
||||
protected:
|
||||
LogControl1_adaptor(sdbus::IObject& object)
|
||||
: object_(object)
|
||||
{
|
||||
object_.registerProperty("LogLevel").onInterface(INTERFACE_NAME).withGetter([this](){ return this->LogLevel(); }).withSetter([this](const std::string& value){ this->LogLevel(value); }).withUpdateBehavior(sdbus::Flags::EMITS_NO_SIGNAL).markAsPrivileged();
|
||||
object_.registerProperty("LogTarget").onInterface(INTERFACE_NAME).withGetter([this](){ return this->LogTarget(); }).withSetter([this](const std::string& value){ this->LogTarget(value); }).withUpdateBehavior(sdbus::Flags::EMITS_NO_SIGNAL).markAsPrivileged();
|
||||
object_.registerProperty("SyslogIdentifier").onInterface(INTERFACE_NAME).withGetter([this](){ return this->SyslogIdentifier(); }).withUpdateBehavior(sdbus::Flags::EMITS_NO_SIGNAL);
|
||||
}
|
||||
|
||||
~LogControl1_adaptor() = default;
|
||||
|
||||
private:
|
||||
virtual std::string LogLevel() = 0;
|
||||
virtual void LogLevel(const std::string& value) = 0;
|
||||
virtual std::string LogTarget() = 0;
|
||||
virtual void LogTarget(const std::string& value) = 0;
|
||||
virtual std::string SyslogIdentifier() = 0;
|
||||
|
||||
private:
|
||||
sdbus::IObject& object_;
|
||||
};
|
||||
|
||||
}} // namespaces
|
||||
|
||||
#endif
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
<!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.LogControl1">
|
||||
<property name="LogLevel" type="s" access="readwrite">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false"/>
|
||||
<annotation name="org.freedesktop.systemd1.Privileged" value="true"/>
|
||||
</property>
|
||||
<property name="LogTarget" type="s" access="readwrite">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false"/>
|
||||
<annotation name="org.freedesktop.systemd1.Privileged" value="true"/>
|
||||
</property>
|
||||
<property name="SyslogIdentifier" type="s" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false"/>
|
||||
</property>
|
||||
</interface>
|
||||
</node>
|
||||
@@ -0,0 +1,631 @@
|
||||
|
||||
/*
|
||||
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
|
||||
*/
|
||||
|
||||
#ifndef __sdbuscpp__login_manager_client_glue_h__proxy__H__
|
||||
#define __sdbuscpp__login_manager_client_glue_h__proxy__H__
|
||||
|
||||
#include <sdbus-c++/sdbus-c++.h>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
namespace org {
|
||||
namespace freedesktop {
|
||||
namespace login1 {
|
||||
|
||||
class Manager_proxy
|
||||
{
|
||||
public:
|
||||
static constexpr const char* INTERFACE_NAME = "org.freedesktop.login1.Manager";
|
||||
|
||||
protected:
|
||||
Manager_proxy(sdbus::IProxy& proxy)
|
||||
: proxy_(proxy)
|
||||
{
|
||||
proxy_.uponSignal("SessionNew").onInterface(INTERFACE_NAME).call([this](const std::string& session_id, const sdbus::ObjectPath& object_path){ this->onSessionNew(session_id, object_path); });
|
||||
proxy_.uponSignal("SessionRemoved").onInterface(INTERFACE_NAME).call([this](const std::string& session_id, const sdbus::ObjectPath& object_path){ this->onSessionRemoved(session_id, object_path); });
|
||||
proxy_.uponSignal("UserNew").onInterface(INTERFACE_NAME).call([this](const uint32_t& uid, const sdbus::ObjectPath& object_path){ this->onUserNew(uid, object_path); });
|
||||
proxy_.uponSignal("UserRemoved").onInterface(INTERFACE_NAME).call([this](const uint32_t& uid, const sdbus::ObjectPath& object_path){ this->onUserRemoved(uid, object_path); });
|
||||
proxy_.uponSignal("SeatNew").onInterface(INTERFACE_NAME).call([this](const std::string& seat_id, const sdbus::ObjectPath& object_path){ this->onSeatNew(seat_id, object_path); });
|
||||
proxy_.uponSignal("SeatRemoved").onInterface(INTERFACE_NAME).call([this](const std::string& seat_id, const sdbus::ObjectPath& object_path){ this->onSeatRemoved(seat_id, object_path); });
|
||||
proxy_.uponSignal("PrepareForShutdown").onInterface(INTERFACE_NAME).call([this](const bool& start){ this->onPrepareForShutdown(start); });
|
||||
proxy_.uponSignal("PrepareForSleep").onInterface(INTERFACE_NAME).call([this](const bool& start){ this->onPrepareForSleep(start); });
|
||||
}
|
||||
|
||||
~Manager_proxy() = default;
|
||||
|
||||
virtual void onSessionNew(const std::string& session_id, const sdbus::ObjectPath& object_path) = 0;
|
||||
virtual void onSessionRemoved(const std::string& session_id, const sdbus::ObjectPath& object_path) = 0;
|
||||
virtual void onUserNew(const uint32_t& uid, const sdbus::ObjectPath& object_path) = 0;
|
||||
virtual void onUserRemoved(const uint32_t& uid, const sdbus::ObjectPath& object_path) = 0;
|
||||
virtual void onSeatNew(const std::string& seat_id, const sdbus::ObjectPath& object_path) = 0;
|
||||
virtual void onSeatRemoved(const std::string& seat_id, const sdbus::ObjectPath& object_path) = 0;
|
||||
virtual void onPrepareForShutdown(const bool& start) = 0;
|
||||
virtual void onPrepareForSleep(const bool& start) = 0;
|
||||
|
||||
public:
|
||||
sdbus::ObjectPath GetSession(const std::string& session_id)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("GetSession").onInterface(INTERFACE_NAME).withArguments(session_id).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath GetSessionByPID(const uint32_t& pid)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("GetSessionByPID").onInterface(INTERFACE_NAME).withArguments(pid).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath GetUser(const uint32_t& uid)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("GetUser").onInterface(INTERFACE_NAME).withArguments(uid).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath GetUserByPID(const uint32_t& pid)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("GetUserByPID").onInterface(INTERFACE_NAME).withArguments(pid).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath GetSeat(const std::string& seat_id)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("GetSeat").onInterface(INTERFACE_NAME).withArguments(seat_id).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::vector<sdbus::Struct<std::string, uint32_t, std::string, std::string, sdbus::ObjectPath>> ListSessions()
|
||||
{
|
||||
std::vector<sdbus::Struct<std::string, uint32_t, std::string, std::string, sdbus::ObjectPath>> result;
|
||||
proxy_.callMethod("ListSessions").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::vector<sdbus::Struct<uint32_t, std::string, sdbus::ObjectPath>> ListUsers()
|
||||
{
|
||||
std::vector<sdbus::Struct<uint32_t, std::string, sdbus::ObjectPath>> result;
|
||||
proxy_.callMethod("ListUsers").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::vector<sdbus::Struct<std::string, sdbus::ObjectPath>> ListSeats()
|
||||
{
|
||||
std::vector<sdbus::Struct<std::string, sdbus::ObjectPath>> result;
|
||||
proxy_.callMethod("ListSeats").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::vector<sdbus::Struct<std::string, std::string, std::string, std::string, uint32_t, uint32_t>> ListInhibitors()
|
||||
{
|
||||
std::vector<sdbus::Struct<std::string, std::string, std::string, std::string, uint32_t, uint32_t>> result;
|
||||
proxy_.callMethod("ListInhibitors").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::tuple<std::string, sdbus::ObjectPath, std::string, sdbus::UnixFd, uint32_t, std::string, uint32_t, bool> CreateSession(const uint32_t& uid, const uint32_t& pid, const std::string& service, const std::string& type, const std::string& class_, const std::string& desktop, const std::string& seat_id, const uint32_t& vtnr, const std::string& tty, const std::string& display, const bool& remote, const std::string& remote_user, const std::string& remote_host, const std::vector<sdbus::Struct<std::string, sdbus::Variant>>& properties)
|
||||
{
|
||||
std::tuple<std::string, sdbus::ObjectPath, std::string, sdbus::UnixFd, uint32_t, std::string, uint32_t, bool> result;
|
||||
proxy_.callMethod("CreateSession").onInterface(INTERFACE_NAME).withArguments(uid, pid, service, type, class_, desktop, seat_id, vtnr, tty, display, remote, remote_user, remote_host, properties).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void ReleaseSession(const std::string& session_id)
|
||||
{
|
||||
proxy_.callMethod("ReleaseSession").onInterface(INTERFACE_NAME).withArguments(session_id);
|
||||
}
|
||||
|
||||
void ActivateSession(const std::string& session_id)
|
||||
{
|
||||
proxy_.callMethod("ActivateSession").onInterface(INTERFACE_NAME).withArguments(session_id);
|
||||
}
|
||||
|
||||
void ActivateSessionOnSeat(const std::string& session_id, const std::string& seat_id)
|
||||
{
|
||||
proxy_.callMethod("ActivateSessionOnSeat").onInterface(INTERFACE_NAME).withArguments(session_id, seat_id);
|
||||
}
|
||||
|
||||
void LockSession(const std::string& session_id)
|
||||
{
|
||||
proxy_.callMethod("LockSession").onInterface(INTERFACE_NAME).withArguments(session_id);
|
||||
}
|
||||
|
||||
void UnlockSession(const std::string& session_id)
|
||||
{
|
||||
proxy_.callMethod("UnlockSession").onInterface(INTERFACE_NAME).withArguments(session_id);
|
||||
}
|
||||
|
||||
void LockSessions()
|
||||
{
|
||||
proxy_.callMethod("LockSessions").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void UnlockSessions()
|
||||
{
|
||||
proxy_.callMethod("UnlockSessions").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void KillSession(const std::string& session_id, const std::string& who, const int32_t& signal_number)
|
||||
{
|
||||
proxy_.callMethod("KillSession").onInterface(INTERFACE_NAME).withArguments(session_id, who, signal_number);
|
||||
}
|
||||
|
||||
void KillUser(const uint32_t& uid, const int32_t& signal_number)
|
||||
{
|
||||
proxy_.callMethod("KillUser").onInterface(INTERFACE_NAME).withArguments(uid, signal_number);
|
||||
}
|
||||
|
||||
void TerminateSession(const std::string& session_id)
|
||||
{
|
||||
proxy_.callMethod("TerminateSession").onInterface(INTERFACE_NAME).withArguments(session_id);
|
||||
}
|
||||
|
||||
void TerminateUser(const uint32_t& uid)
|
||||
{
|
||||
proxy_.callMethod("TerminateUser").onInterface(INTERFACE_NAME).withArguments(uid);
|
||||
}
|
||||
|
||||
void TerminateSeat(const std::string& seat_id)
|
||||
{
|
||||
proxy_.callMethod("TerminateSeat").onInterface(INTERFACE_NAME).withArguments(seat_id);
|
||||
}
|
||||
|
||||
void SetUserLinger(const uint32_t& uid, const bool& enable, const bool& interactive)
|
||||
{
|
||||
proxy_.callMethod("SetUserLinger").onInterface(INTERFACE_NAME).withArguments(uid, enable, interactive);
|
||||
}
|
||||
|
||||
void AttachDevice(const std::string& seat_id, const std::string& sysfs_path, const bool& interactive)
|
||||
{
|
||||
proxy_.callMethod("AttachDevice").onInterface(INTERFACE_NAME).withArguments(seat_id, sysfs_path, interactive);
|
||||
}
|
||||
|
||||
void FlushDevices(const bool& interactive)
|
||||
{
|
||||
proxy_.callMethod("FlushDevices").onInterface(INTERFACE_NAME).withArguments(interactive);
|
||||
}
|
||||
|
||||
void PowerOff(const bool& interactive)
|
||||
{
|
||||
proxy_.callMethod("PowerOff").onInterface(INTERFACE_NAME).withArguments(interactive);
|
||||
}
|
||||
|
||||
void PowerOffWithFlags(const uint64_t& flags)
|
||||
{
|
||||
proxy_.callMethod("PowerOffWithFlags").onInterface(INTERFACE_NAME).withArguments(flags);
|
||||
}
|
||||
|
||||
void Reboot(const bool& interactive)
|
||||
{
|
||||
proxy_.callMethod("Reboot").onInterface(INTERFACE_NAME).withArguments(interactive);
|
||||
}
|
||||
|
||||
void RebootWithFlags(const uint64_t& flags)
|
||||
{
|
||||
proxy_.callMethod("RebootWithFlags").onInterface(INTERFACE_NAME).withArguments(flags);
|
||||
}
|
||||
|
||||
void Halt(const bool& interactive)
|
||||
{
|
||||
proxy_.callMethod("Halt").onInterface(INTERFACE_NAME).withArguments(interactive);
|
||||
}
|
||||
|
||||
void HaltWithFlags(const uint64_t& flags)
|
||||
{
|
||||
proxy_.callMethod("HaltWithFlags").onInterface(INTERFACE_NAME).withArguments(flags);
|
||||
}
|
||||
|
||||
void Suspend(const bool& interactive)
|
||||
{
|
||||
proxy_.callMethod("Suspend").onInterface(INTERFACE_NAME).withArguments(interactive);
|
||||
}
|
||||
|
||||
void SuspendWithFlags(const uint64_t& flags)
|
||||
{
|
||||
proxy_.callMethod("SuspendWithFlags").onInterface(INTERFACE_NAME).withArguments(flags);
|
||||
}
|
||||
|
||||
void Hibernate(const bool& interactive)
|
||||
{
|
||||
proxy_.callMethod("Hibernate").onInterface(INTERFACE_NAME).withArguments(interactive);
|
||||
}
|
||||
|
||||
void HibernateWithFlags(const uint64_t& flags)
|
||||
{
|
||||
proxy_.callMethod("HibernateWithFlags").onInterface(INTERFACE_NAME).withArguments(flags);
|
||||
}
|
||||
|
||||
void HybridSleep(const bool& interactive)
|
||||
{
|
||||
proxy_.callMethod("HybridSleep").onInterface(INTERFACE_NAME).withArguments(interactive);
|
||||
}
|
||||
|
||||
void HybridSleepWithFlags(const uint64_t& flags)
|
||||
{
|
||||
proxy_.callMethod("HybridSleepWithFlags").onInterface(INTERFACE_NAME).withArguments(flags);
|
||||
}
|
||||
|
||||
void SuspendThenHibernate(const bool& interactive)
|
||||
{
|
||||
proxy_.callMethod("SuspendThenHibernate").onInterface(INTERFACE_NAME).withArguments(interactive);
|
||||
}
|
||||
|
||||
void SuspendThenHibernateWithFlags(const uint64_t& flags)
|
||||
{
|
||||
proxy_.callMethod("SuspendThenHibernateWithFlags").onInterface(INTERFACE_NAME).withArguments(flags);
|
||||
}
|
||||
|
||||
std::string CanPowerOff()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("CanPowerOff").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string CanReboot()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("CanReboot").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string CanHalt()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("CanHalt").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string CanSuspend()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("CanSuspend").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string CanHibernate()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("CanHibernate").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string CanHybridSleep()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("CanHybridSleep").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string CanSuspendThenHibernate()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("CanSuspendThenHibernate").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void ScheduleShutdown(const std::string& type, const uint64_t& usec)
|
||||
{
|
||||
proxy_.callMethod("ScheduleShutdown").onInterface(INTERFACE_NAME).withArguments(type, usec);
|
||||
}
|
||||
|
||||
bool CancelScheduledShutdown()
|
||||
{
|
||||
bool result;
|
||||
proxy_.callMethod("CancelScheduledShutdown").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::UnixFd Inhibit(const std::string& what, const std::string& who, const std::string& why, const std::string& mode)
|
||||
{
|
||||
sdbus::UnixFd result;
|
||||
proxy_.callMethod("Inhibit").onInterface(INTERFACE_NAME).withArguments(what, who, why, mode).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string CanRebootParameter()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("CanRebootParameter").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void SetRebootParameter(const std::string& parameter)
|
||||
{
|
||||
proxy_.callMethod("SetRebootParameter").onInterface(INTERFACE_NAME).withArguments(parameter);
|
||||
}
|
||||
|
||||
std::string CanRebootToFirmwareSetup()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("CanRebootToFirmwareSetup").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void SetRebootToFirmwareSetup(const bool& enable)
|
||||
{
|
||||
proxy_.callMethod("SetRebootToFirmwareSetup").onInterface(INTERFACE_NAME).withArguments(enable);
|
||||
}
|
||||
|
||||
std::string CanRebootToBootLoaderMenu()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("CanRebootToBootLoaderMenu").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void SetRebootToBootLoaderMenu(const uint64_t& timeout)
|
||||
{
|
||||
proxy_.callMethod("SetRebootToBootLoaderMenu").onInterface(INTERFACE_NAME).withArguments(timeout);
|
||||
}
|
||||
|
||||
std::string CanRebootToBootLoaderEntry()
|
||||
{
|
||||
std::string result;
|
||||
proxy_.callMethod("CanRebootToBootLoaderEntry").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void SetRebootToBootLoaderEntry(const std::string& boot_loader_entry)
|
||||
{
|
||||
proxy_.callMethod("SetRebootToBootLoaderEntry").onInterface(INTERFACE_NAME).withArguments(boot_loader_entry);
|
||||
}
|
||||
|
||||
void SetWallMessage(const std::string& wall_message, const bool& enable)
|
||||
{
|
||||
proxy_.callMethod("SetWallMessage").onInterface(INTERFACE_NAME).withArguments(wall_message, enable);
|
||||
}
|
||||
|
||||
public:
|
||||
bool EnableWallMessages()
|
||||
{
|
||||
return proxy_.getProperty("EnableWallMessages").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void EnableWallMessages(const bool& value)
|
||||
{
|
||||
proxy_.setProperty("EnableWallMessages").onInterface(INTERFACE_NAME).toValue(value);
|
||||
}
|
||||
|
||||
std::string WallMessage()
|
||||
{
|
||||
return proxy_.getProperty("WallMessage").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void WallMessage(const std::string& value)
|
||||
{
|
||||
proxy_.setProperty("WallMessage").onInterface(INTERFACE_NAME).toValue(value);
|
||||
}
|
||||
|
||||
uint32_t NAutoVTs()
|
||||
{
|
||||
return proxy_.getProperty("NAutoVTs").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<std::string> KillOnlyUsers()
|
||||
{
|
||||
return proxy_.getProperty("KillOnlyUsers").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<std::string> KillExcludeUsers()
|
||||
{
|
||||
return proxy_.getProperty("KillExcludeUsers").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool KillUserProcesses()
|
||||
{
|
||||
return proxy_.getProperty("KillUserProcesses").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string RebootParameter()
|
||||
{
|
||||
return proxy_.getProperty("RebootParameter").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool RebootToFirmwareSetup()
|
||||
{
|
||||
return proxy_.getProperty("RebootToFirmwareSetup").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint64_t RebootToBootLoaderMenu()
|
||||
{
|
||||
return proxy_.getProperty("RebootToBootLoaderMenu").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string RebootToBootLoaderEntry()
|
||||
{
|
||||
return proxy_.getProperty("RebootToBootLoaderEntry").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<std::string> BootLoaderEntries()
|
||||
{
|
||||
return proxy_.getProperty("BootLoaderEntries").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool IdleHint()
|
||||
{
|
||||
return proxy_.getProperty("IdleHint").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint64_t IdleSinceHint()
|
||||
{
|
||||
return proxy_.getProperty("IdleSinceHint").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint64_t IdleSinceHintMonotonic()
|
||||
{
|
||||
return proxy_.getProperty("IdleSinceHintMonotonic").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string BlockInhibited()
|
||||
{
|
||||
return proxy_.getProperty("BlockInhibited").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string DelayInhibited()
|
||||
{
|
||||
return proxy_.getProperty("DelayInhibited").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint64_t InhibitDelayMaxUSec()
|
||||
{
|
||||
return proxy_.getProperty("InhibitDelayMaxUSec").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint64_t UserStopDelayUSec()
|
||||
{
|
||||
return proxy_.getProperty("UserStopDelayUSec").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string HandlePowerKey()
|
||||
{
|
||||
return proxy_.getProperty("HandlePowerKey").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string HandlePowerKeyLongPress()
|
||||
{
|
||||
return proxy_.getProperty("HandlePowerKeyLongPress").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string HandleRebootKey()
|
||||
{
|
||||
return proxy_.getProperty("HandleRebootKey").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string HandleRebootKeyLongPress()
|
||||
{
|
||||
return proxy_.getProperty("HandleRebootKeyLongPress").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string HandleSuspendKey()
|
||||
{
|
||||
return proxy_.getProperty("HandleSuspendKey").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string HandleSuspendKeyLongPress()
|
||||
{
|
||||
return proxy_.getProperty("HandleSuspendKeyLongPress").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string HandleHibernateKey()
|
||||
{
|
||||
return proxy_.getProperty("HandleHibernateKey").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string HandleHibernateKeyLongPress()
|
||||
{
|
||||
return proxy_.getProperty("HandleHibernateKeyLongPress").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string HandleLidSwitch()
|
||||
{
|
||||
return proxy_.getProperty("HandleLidSwitch").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string HandleLidSwitchExternalPower()
|
||||
{
|
||||
return proxy_.getProperty("HandleLidSwitchExternalPower").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string HandleLidSwitchDocked()
|
||||
{
|
||||
return proxy_.getProperty("HandleLidSwitchDocked").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint64_t HoldoffTimeoutUSec()
|
||||
{
|
||||
return proxy_.getProperty("HoldoffTimeoutUSec").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string IdleAction()
|
||||
{
|
||||
return proxy_.getProperty("IdleAction").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint64_t IdleActionUSec()
|
||||
{
|
||||
return proxy_.getProperty("IdleActionUSec").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool PreparingForShutdown()
|
||||
{
|
||||
return proxy_.getProperty("PreparingForShutdown").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool PreparingForSleep()
|
||||
{
|
||||
return proxy_.getProperty("PreparingForSleep").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
sdbus::Struct<std::string, uint64_t> ScheduledShutdown()
|
||||
{
|
||||
return proxy_.getProperty("ScheduledShutdown").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool Docked()
|
||||
{
|
||||
return proxy_.getProperty("Docked").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool LidClosed()
|
||||
{
|
||||
return proxy_.getProperty("LidClosed").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool OnExternalPower()
|
||||
{
|
||||
return proxy_.getProperty("OnExternalPower").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool RemoveIPC()
|
||||
{
|
||||
return proxy_.getProperty("RemoveIPC").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint64_t RuntimeDirectorySize()
|
||||
{
|
||||
return proxy_.getProperty("RuntimeDirectorySize").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint64_t RuntimeDirectoryInodesMax()
|
||||
{
|
||||
return proxy_.getProperty("RuntimeDirectoryInodesMax").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint64_t InhibitorsMax()
|
||||
{
|
||||
return proxy_.getProperty("InhibitorsMax").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint64_t NCurrentInhibitors()
|
||||
{
|
||||
return proxy_.getProperty("NCurrentInhibitors").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint64_t SessionsMax()
|
||||
{
|
||||
return proxy_.getProperty("SessionsMax").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint64_t NCurrentSessions()
|
||||
{
|
||||
return proxy_.getProperty("NCurrentSessions").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint64_t StopIdleSessionUSec()
|
||||
{
|
||||
return proxy_.getProperty("StopIdleSessionUSec").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
private:
|
||||
sdbus::IProxy& proxy_;
|
||||
};
|
||||
|
||||
}}} // namespaces
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,254 @@
|
||||
|
||||
/*
|
||||
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
|
||||
*/
|
||||
|
||||
#ifndef __sdbuscpp__login_session_client_glue_h__proxy__H__
|
||||
#define __sdbuscpp__login_session_client_glue_h__proxy__H__
|
||||
|
||||
#include <sdbus-c++/sdbus-c++.h>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
namespace org {
|
||||
namespace freedesktop {
|
||||
namespace login1 {
|
||||
|
||||
class Session_proxy
|
||||
{
|
||||
public:
|
||||
static constexpr const char* INTERFACE_NAME = "org.freedesktop.login1.Session";
|
||||
|
||||
protected:
|
||||
Session_proxy(sdbus::IProxy& proxy)
|
||||
: proxy_(proxy)
|
||||
{
|
||||
proxy_.uponSignal("PauseDevice").onInterface(INTERFACE_NAME).call([this](const uint32_t& major, const uint32_t& minor, const std::string& type){ this->onPauseDevice(major, minor, type); });
|
||||
proxy_.uponSignal("ResumeDevice").onInterface(INTERFACE_NAME).call([this](const uint32_t& major, const uint32_t& minor, const sdbus::UnixFd& fd){ this->onResumeDevice(major, minor, fd); });
|
||||
proxy_.uponSignal("Lock").onInterface(INTERFACE_NAME).call([this](){ this->onLock(); });
|
||||
proxy_.uponSignal("Unlock").onInterface(INTERFACE_NAME).call([this](){ this->onUnlock(); });
|
||||
}
|
||||
|
||||
~Session_proxy() = default;
|
||||
|
||||
virtual void onPauseDevice(const uint32_t& major, const uint32_t& minor, const std::string& type) = 0;
|
||||
virtual void onResumeDevice(const uint32_t& major, const uint32_t& minor, const sdbus::UnixFd& fd) = 0;
|
||||
virtual void onLock() = 0;
|
||||
virtual void onUnlock() = 0;
|
||||
|
||||
public:
|
||||
void Terminate()
|
||||
{
|
||||
proxy_.callMethod("Terminate").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void Activate()
|
||||
{
|
||||
proxy_.callMethod("Activate").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void Lock()
|
||||
{
|
||||
proxy_.callMethod("Lock").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void Unlock()
|
||||
{
|
||||
proxy_.callMethod("Unlock").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void SetIdleHint(const bool& idle)
|
||||
{
|
||||
proxy_.callMethod("SetIdleHint").onInterface(INTERFACE_NAME).withArguments(idle);
|
||||
}
|
||||
|
||||
void SetLockedHint(const bool& locked)
|
||||
{
|
||||
proxy_.callMethod("SetLockedHint").onInterface(INTERFACE_NAME).withArguments(locked);
|
||||
}
|
||||
|
||||
void Kill(const std::string& who, const int32_t& signal_number)
|
||||
{
|
||||
proxy_.callMethod("Kill").onInterface(INTERFACE_NAME).withArguments(who, signal_number);
|
||||
}
|
||||
|
||||
void TakeControl(const bool& force)
|
||||
{
|
||||
proxy_.callMethod("TakeControl").onInterface(INTERFACE_NAME).withArguments(force);
|
||||
}
|
||||
|
||||
void ReleaseControl()
|
||||
{
|
||||
proxy_.callMethod("ReleaseControl").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void SetType(const std::string& type)
|
||||
{
|
||||
proxy_.callMethod("SetType").onInterface(INTERFACE_NAME).withArguments(type);
|
||||
}
|
||||
|
||||
void SetDisplay(const std::string& display)
|
||||
{
|
||||
proxy_.callMethod("SetDisplay").onInterface(INTERFACE_NAME).withArguments(display);
|
||||
}
|
||||
|
||||
void SetTTY(const sdbus::UnixFd& tty_fd)
|
||||
{
|
||||
proxy_.callMethod("SetTTY").onInterface(INTERFACE_NAME).withArguments(tty_fd);
|
||||
}
|
||||
|
||||
std::tuple<sdbus::UnixFd, bool> TakeDevice(const uint32_t& major, const uint32_t& minor)
|
||||
{
|
||||
std::tuple<sdbus::UnixFd, bool> result;
|
||||
proxy_.callMethod("TakeDevice").onInterface(INTERFACE_NAME).withArguments(major, minor).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void ReleaseDevice(const uint32_t& major, const uint32_t& minor)
|
||||
{
|
||||
proxy_.callMethod("ReleaseDevice").onInterface(INTERFACE_NAME).withArguments(major, minor);
|
||||
}
|
||||
|
||||
void PauseDeviceComplete(const uint32_t& major, const uint32_t& minor)
|
||||
{
|
||||
proxy_.callMethod("PauseDeviceComplete").onInterface(INTERFACE_NAME).withArguments(major, minor);
|
||||
}
|
||||
|
||||
void SetBrightness(const std::string& subsystem, const std::string& name, const uint32_t& brightness)
|
||||
{
|
||||
proxy_.callMethod("SetBrightness").onInterface(INTERFACE_NAME).withArguments(subsystem, name, brightness);
|
||||
}
|
||||
|
||||
public:
|
||||
std::string Id()
|
||||
{
|
||||
return proxy_.getProperty("Id").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
sdbus::Struct<uint32_t, sdbus::ObjectPath> User()
|
||||
{
|
||||
return proxy_.getProperty("User").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Name()
|
||||
{
|
||||
return proxy_.getProperty("Name").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint64_t Timestamp()
|
||||
{
|
||||
return proxy_.getProperty("Timestamp").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint64_t TimestampMonotonic()
|
||||
{
|
||||
return proxy_.getProperty("TimestampMonotonic").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint32_t VTNr()
|
||||
{
|
||||
return proxy_.getProperty("VTNr").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
sdbus::Struct<std::string, sdbus::ObjectPath> Seat()
|
||||
{
|
||||
return proxy_.getProperty("Seat").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string TTY()
|
||||
{
|
||||
return proxy_.getProperty("TTY").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Display()
|
||||
{
|
||||
return proxy_.getProperty("Display").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool Remote()
|
||||
{
|
||||
return proxy_.getProperty("Remote").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string RemoteHost()
|
||||
{
|
||||
return proxy_.getProperty("RemoteHost").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string RemoteUser()
|
||||
{
|
||||
return proxy_.getProperty("RemoteUser").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Service()
|
||||
{
|
||||
return proxy_.getProperty("Service").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Desktop()
|
||||
{
|
||||
return proxy_.getProperty("Desktop").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Scope()
|
||||
{
|
||||
return proxy_.getProperty("Scope").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint32_t Leader()
|
||||
{
|
||||
return proxy_.getProperty("Leader").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint32_t Audit()
|
||||
{
|
||||
return proxy_.getProperty("Audit").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Type()
|
||||
{
|
||||
return proxy_.getProperty("Type").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Class()
|
||||
{
|
||||
return proxy_.getProperty("Class").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool Active()
|
||||
{
|
||||
return proxy_.getProperty("Active").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string State()
|
||||
{
|
||||
return proxy_.getProperty("State").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool IdleHint()
|
||||
{
|
||||
return proxy_.getProperty("IdleHint").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint64_t IdleSinceHint()
|
||||
{
|
||||
return proxy_.getProperty("IdleSinceHint").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint64_t IdleSinceHintMonotonic()
|
||||
{
|
||||
return proxy_.getProperty("IdleSinceHintMonotonic").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool LockedHint()
|
||||
{
|
||||
return proxy_.getProperty("LockedHint").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
private:
|
||||
sdbus::IProxy& proxy_;
|
||||
};
|
||||
|
||||
}}} // namespaces
|
||||
|
||||
#endif
|
||||
+388
@@ -0,0 +1,388 @@
|
||||
<!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.login1.Manager">
|
||||
<property name="EnableWallMessages" type="b" access="readwrite">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false"/>
|
||||
<annotation name="org.freedesktop.systemd1.Privileged" value="true"/>
|
||||
</property>
|
||||
<property name="WallMessage" type="s" access="readwrite">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false"/>
|
||||
<annotation name="org.freedesktop.systemd1.Privileged" value="true"/>
|
||||
</property>
|
||||
<property name="NAutoVTs" type="u" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="KillOnlyUsers" type="as" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="KillExcludeUsers" type="as" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="KillUserProcesses" type="b" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="RebootParameter" type="s" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false"/>
|
||||
</property>
|
||||
<property name="RebootToFirmwareSetup" type="b" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false"/>
|
||||
</property>
|
||||
<property name="RebootToBootLoaderMenu" type="t" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false"/>
|
||||
</property>
|
||||
<property name="RebootToBootLoaderEntry" type="s" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false"/>
|
||||
</property>
|
||||
<property name="BootLoaderEntries" type="as" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="IdleHint" type="b" access="read">
|
||||
</property>
|
||||
<property name="IdleSinceHint" type="t" access="read">
|
||||
</property>
|
||||
<property name="IdleSinceHintMonotonic" type="t" access="read">
|
||||
</property>
|
||||
<property name="BlockInhibited" type="s" access="read">
|
||||
</property>
|
||||
<property name="DelayInhibited" type="s" access="read">
|
||||
</property>
|
||||
<property name="InhibitDelayMaxUSec" type="t" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="UserStopDelayUSec" type="t" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="HandlePowerKey" type="s" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="HandlePowerKeyLongPress" type="s" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="HandleRebootKey" type="s" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="HandleRebootKeyLongPress" type="s" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="HandleSuspendKey" type="s" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="HandleSuspendKeyLongPress" type="s" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="HandleHibernateKey" type="s" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="HandleHibernateKeyLongPress" type="s" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="HandleLidSwitch" type="s" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="HandleLidSwitchExternalPower" type="s" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="HandleLidSwitchDocked" type="s" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="HoldoffTimeoutUSec" type="t" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="IdleAction" type="s" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="IdleActionUSec" type="t" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="PreparingForShutdown" type="b" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false"/>
|
||||
</property>
|
||||
<property name="PreparingForSleep" type="b" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false"/>
|
||||
</property>
|
||||
<property name="ScheduledShutdown" type="(st)" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false"/>
|
||||
</property>
|
||||
<property name="Docked" type="b" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false"/>
|
||||
</property>
|
||||
<property name="LidClosed" type="b" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false"/>
|
||||
</property>
|
||||
<property name="OnExternalPower" type="b" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false"/>
|
||||
</property>
|
||||
<property name="RemoveIPC" type="b" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="RuntimeDirectorySize" type="t" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="RuntimeDirectoryInodesMax" type="t" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="InhibitorsMax" type="t" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="NCurrentInhibitors" type="t" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false"/>
|
||||
</property>
|
||||
<property name="SessionsMax" type="t" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<property name="NCurrentSessions" type="t" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false"/>
|
||||
</property>
|
||||
<property name="StopIdleSessionUSec" type="t" access="read">
|
||||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/>
|
||||
</property>
|
||||
<method name="GetSession">
|
||||
<arg type="s" name="session_id" direction="in"/>
|
||||
<arg type="o" name="object_path" direction="out"/>
|
||||
</method>
|
||||
<method name="GetSessionByPID">
|
||||
<arg type="u" name="pid" direction="in"/>
|
||||
<arg type="o" name="object_path" direction="out"/>
|
||||
</method>
|
||||
<method name="GetUser">
|
||||
<arg type="u" name="uid" direction="in"/>
|
||||
<arg type="o" name="object_path" direction="out"/>
|
||||
</method>
|
||||
<method name="GetUserByPID">
|
||||
<arg type="u" name="pid" direction="in"/>
|
||||
<arg type="o" name="object_path" direction="out"/>
|
||||
</method>
|
||||
<method name="GetSeat">
|
||||
<arg type="s" name="seat_id" direction="in"/>
|
||||
<arg type="o" name="object_path" direction="out"/>
|
||||
</method>
|
||||
<method name="ListSessions">
|
||||
<arg type="a(susso)" name="sessions" direction="out"/>
|
||||
</method>
|
||||
<method name="ListUsers">
|
||||
<arg type="a(uso)" name="users" direction="out"/>
|
||||
</method>
|
||||
<method name="ListSeats">
|
||||
<arg type="a(so)" name="seats" direction="out"/>
|
||||
</method>
|
||||
<method name="ListInhibitors">
|
||||
<arg type="a(ssssuu)" name="inhibitors" direction="out"/>
|
||||
</method>
|
||||
<method name="CreateSession">
|
||||
<arg type="u" name="uid" direction="in"/>
|
||||
<arg type="u" name="pid" direction="in"/>
|
||||
<arg type="s" name="service" direction="in"/>
|
||||
<arg type="s" name="type" direction="in"/>
|
||||
<arg type="s" name="class" direction="in"/>
|
||||
<arg type="s" name="desktop" direction="in"/>
|
||||
<arg type="s" name="seat_id" direction="in"/>
|
||||
<arg type="u" name="vtnr" direction="in"/>
|
||||
<arg type="s" name="tty" direction="in"/>
|
||||
<arg type="s" name="display" direction="in"/>
|
||||
<arg type="b" name="remote" direction="in"/>
|
||||
<arg type="s" name="remote_user" direction="in"/>
|
||||
<arg type="s" name="remote_host" direction="in"/>
|
||||
<arg type="a(sv)" name="properties" direction="in"/>
|
||||
<arg type="s" name="session_id" direction="out"/>
|
||||
<arg type="o" name="object_path" direction="out"/>
|
||||
<arg type="s" name="runtime_path" direction="out"/>
|
||||
<arg type="h" name="fifo_fd" direction="out"/>
|
||||
<arg type="u" name="uid" direction="out"/>
|
||||
<arg type="s" name="seat_id" direction="out"/>
|
||||
<arg type="u" name="vtnr" direction="out"/>
|
||||
<arg type="b" name="existing" direction="out"/>
|
||||
<annotation name="org.freedesktop.systemd1.Privileged" value="true"/>
|
||||
</method>
|
||||
<method name="ReleaseSession">
|
||||
<arg type="s" name="session_id" direction="in"/>
|
||||
<annotation name="org.freedesktop.systemd1.Privileged" value="true"/>
|
||||
</method>
|
||||
<method name="ActivateSession">
|
||||
<arg type="s" name="session_id" direction="in"/>
|
||||
</method>
|
||||
<method name="ActivateSessionOnSeat">
|
||||
<arg type="s" name="session_id" direction="in"/>
|
||||
<arg type="s" name="seat_id" direction="in"/>
|
||||
</method>
|
||||
<method name="LockSession">
|
||||
<arg type="s" name="session_id" direction="in"/>
|
||||
</method>
|
||||
<method name="UnlockSession">
|
||||
<arg type="s" name="session_id" direction="in"/>
|
||||
</method>
|
||||
<method name="LockSessions">
|
||||
</method>
|
||||
<method name="UnlockSessions">
|
||||
</method>
|
||||
<method name="KillSession">
|
||||
<arg type="s" name="session_id" direction="in"/>
|
||||
<arg type="s" name="who" direction="in"/>
|
||||
<arg type="i" name="signal_number" direction="in"/>
|
||||
</method>
|
||||
<method name="KillUser">
|
||||
<arg type="u" name="uid" direction="in"/>
|
||||
<arg type="i" name="signal_number" direction="in"/>
|
||||
</method>
|
||||
<method name="TerminateSession">
|
||||
<arg type="s" name="session_id" direction="in"/>
|
||||
</method>
|
||||
<method name="TerminateUser">
|
||||
<arg type="u" name="uid" direction="in"/>
|
||||
</method>
|
||||
<method name="TerminateSeat">
|
||||
<arg type="s" name="seat_id" direction="in"/>
|
||||
</method>
|
||||
<method name="SetUserLinger">
|
||||
<arg type="u" name="uid" direction="in"/>
|
||||
<arg type="b" name="enable" direction="in"/>
|
||||
<arg type="b" name="interactive" direction="in"/>
|
||||
</method>
|
||||
<method name="AttachDevice">
|
||||
<arg type="s" name="seat_id" direction="in"/>
|
||||
<arg type="s" name="sysfs_path" direction="in"/>
|
||||
<arg type="b" name="interactive" direction="in"/>
|
||||
</method>
|
||||
<method name="FlushDevices">
|
||||
<arg type="b" name="interactive" direction="in"/>
|
||||
</method>
|
||||
<method name="PowerOff">
|
||||
<arg type="b" name="interactive" direction="in"/>
|
||||
</method>
|
||||
<method name="PowerOffWithFlags">
|
||||
<arg type="t" name="flags" direction="in"/>
|
||||
</method>
|
||||
<method name="Reboot">
|
||||
<arg type="b" name="interactive" direction="in"/>
|
||||
</method>
|
||||
<method name="RebootWithFlags">
|
||||
<arg type="t" name="flags" direction="in"/>
|
||||
</method>
|
||||
<method name="Halt">
|
||||
<arg type="b" name="interactive" direction="in"/>
|
||||
</method>
|
||||
<method name="HaltWithFlags">
|
||||
<arg type="t" name="flags" direction="in"/>
|
||||
</method>
|
||||
<method name="Suspend">
|
||||
<arg type="b" name="interactive" direction="in"/>
|
||||
</method>
|
||||
<method name="SuspendWithFlags">
|
||||
<arg type="t" name="flags" direction="in"/>
|
||||
</method>
|
||||
<method name="Hibernate">
|
||||
<arg type="b" name="interactive" direction="in"/>
|
||||
</method>
|
||||
<method name="HibernateWithFlags">
|
||||
<arg type="t" name="flags" direction="in"/>
|
||||
</method>
|
||||
<method name="HybridSleep">
|
||||
<arg type="b" name="interactive" direction="in"/>
|
||||
</method>
|
||||
<method name="HybridSleepWithFlags">
|
||||
<arg type="t" name="flags" direction="in"/>
|
||||
</method>
|
||||
<method name="SuspendThenHibernate">
|
||||
<arg type="b" name="interactive" direction="in"/>
|
||||
</method>
|
||||
<method name="SuspendThenHibernateWithFlags">
|
||||
<arg type="t" name="flags" direction="in"/>
|
||||
</method>
|
||||
<method name="CanPowerOff">
|
||||
<arg type="s" name="result" direction="out"/>
|
||||
</method>
|
||||
<method name="CanReboot">
|
||||
<arg type="s" name="result" direction="out"/>
|
||||
</method>
|
||||
<method name="CanHalt">
|
||||
<arg type="s" name="result" direction="out"/>
|
||||
</method>
|
||||
<method name="CanSuspend">
|
||||
<arg type="s" name="result" direction="out"/>
|
||||
</method>
|
||||
<method name="CanHibernate">
|
||||
<arg type="s" name="result" direction="out"/>
|
||||
</method>
|
||||
<method name="CanHybridSleep">
|
||||
<arg type="s" name="result" direction="out"/>
|
||||
</method>
|
||||
<method name="CanSuspendThenHibernate">
|
||||
<arg type="s" name="result" direction="out"/>
|
||||
</method>
|
||||
<method name="ScheduleShutdown">
|
||||
<arg type="s" name="type" direction="in"/>
|
||||
<arg type="t" name="usec" direction="in"/>
|
||||
</method>
|
||||
<method name="CancelScheduledShutdown">
|
||||
<arg type="b" name="cancelled" direction="out"/>
|
||||
</method>
|
||||
<method name="Inhibit">
|
||||
<arg type="s" name="what" direction="in"/>
|
||||
<arg type="s" name="who" direction="in"/>
|
||||
<arg type="s" name="why" direction="in"/>
|
||||
<arg type="s" name="mode" direction="in"/>
|
||||
<arg type="h" name="pipe_fd" direction="out"/>
|
||||
</method>
|
||||
<method name="CanRebootParameter">
|
||||
<arg type="s" name="result" direction="out"/>
|
||||
</method>
|
||||
<method name="SetRebootParameter">
|
||||
<arg type="s" name="parameter" direction="in"/>
|
||||
</method>
|
||||
<method name="CanRebootToFirmwareSetup">
|
||||
<arg type="s" name="result" direction="out"/>
|
||||
</method>
|
||||
<method name="SetRebootToFirmwareSetup">
|
||||
<arg type="b" name="enable" direction="in"/>
|
||||
</method>
|
||||
<method name="CanRebootToBootLoaderMenu">
|
||||
<arg type="s" name="result" direction="out"/>
|
||||
</method>
|
||||
<method name="SetRebootToBootLoaderMenu">
|
||||
<arg type="t" name="timeout" direction="in"/>
|
||||
</method>
|
||||
<method name="CanRebootToBootLoaderEntry">
|
||||
<arg type="s" name="result" direction="out"/>
|
||||
</method>
|
||||
<method name="SetRebootToBootLoaderEntry">
|
||||
<arg type="s" name="boot_loader_entry" direction="in"/>
|
||||
</method>
|
||||
<method name="SetWallMessage">
|
||||
<arg type="s" name="wall_message" direction="in"/>
|
||||
<arg type="b" name="enable" direction="in"/>
|
||||
</method>
|
||||
<signal name="SessionNew">
|
||||
<arg type="s" name="session_id"/>
|
||||
<arg type="o" name="object_path"/>
|
||||
</signal>
|
||||
<signal name="SessionRemoved">
|
||||
<arg type="s" name="session_id"/>
|
||||
<arg type="o" name="object_path"/>
|
||||
</signal>
|
||||
<signal name="UserNew">
|
||||
<arg type="u" name="uid"/>
|
||||
<arg type="o" name="object_path"/>
|
||||
</signal>
|
||||
<signal name="UserRemoved">
|
||||
<arg type="u" name="uid"/>
|
||||
<arg type="o" name="object_path"/>
|
||||
</signal>
|
||||
<signal name="SeatNew">
|
||||
<arg type="s" name="seat_id"/>
|
||||
<arg type="o" name="object_path"/>
|
||||
</signal>
|
||||
<signal name="SeatRemoved">
|
||||
<arg type="s" name="seat_id"/>
|
||||
<arg type="o" name="object_path"/>
|
||||
</signal>
|
||||
<signal name="PrepareForShutdown">
|
||||
<arg type="b" name="start"/>
|
||||
</signal>
|
||||
<signal name="PrepareForSleep">
|
||||
<arg type="b" name="start"/>
|
||||
</signal>
|
||||
</interface>
|
||||
<node name="seat"/>
|
||||
<node name="session"/>
|
||||
<node name="user"/>
|
||||
</node>
|
||||
+121
@@ -0,0 +1,121 @@
|
||||
<!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.login1.Session">
|
||||
<property name="Id" type="s" access="read">
|
||||
</property>
|
||||
<property name="User" type="(uo)" access="read">
|
||||
</property>
|
||||
<property name="Name" type="s" access="read">
|
||||
</property>
|
||||
<property name="Timestamp" type="t" access="read">
|
||||
</property>
|
||||
<property name="TimestampMonotonic" type="t" access="read">
|
||||
</property>
|
||||
<property name="VTNr" type="u" access="read">
|
||||
</property>
|
||||
<property name="Seat" type="(so)" access="read">
|
||||
</property>
|
||||
<property name="TTY" type="s" access="read">
|
||||
</property>
|
||||
<property name="Display" type="s" access="read">
|
||||
</property>
|
||||
<property name="Remote" type="b" access="read">
|
||||
</property>
|
||||
<property name="RemoteHost" type="s" access="read">
|
||||
</property>
|
||||
<property name="RemoteUser" type="s" access="read">
|
||||
</property>
|
||||
<property name="Service" type="s" access="read">
|
||||
</property>
|
||||
<property name="Desktop" type="s" access="read">
|
||||
</property>
|
||||
<property name="Scope" type="s" access="read">
|
||||
</property>
|
||||
<property name="Leader" type="u" access="read">
|
||||
</property>
|
||||
<property name="Audit" type="u" access="read">
|
||||
</property>
|
||||
<property name="Type" type="s" access="read">
|
||||
</property>
|
||||
<property name="Class" type="s" access="read">
|
||||
</property>
|
||||
<property name="Active" type="b" access="read">
|
||||
</property>
|
||||
<property name="State" type="s" access="read">
|
||||
</property>
|
||||
<property name="IdleHint" type="b" access="read">
|
||||
</property>
|
||||
<property name="IdleSinceHint" type="t" access="read">
|
||||
</property>
|
||||
<property name="IdleSinceHintMonotonic" type="t" access="read">
|
||||
</property>
|
||||
<property name="LockedHint" type="b" access="read">
|
||||
</property>
|
||||
<method name="Terminate">
|
||||
</method>
|
||||
<method name="Activate">
|
||||
</method>
|
||||
<method name="Lock">
|
||||
</method>
|
||||
<method name="Unlock">
|
||||
</method>
|
||||
<method name="SetIdleHint">
|
||||
<arg type="b" name="idle" direction="in"/>
|
||||
</method>
|
||||
<method name="SetLockedHint">
|
||||
<arg type="b" name="locked" direction="in"/>
|
||||
</method>
|
||||
<method name="Kill">
|
||||
<arg type="s" name="who" direction="in"/>
|
||||
<arg type="i" name="signal_number" direction="in"/>
|
||||
</method>
|
||||
<method name="TakeControl">
|
||||
<arg type="b" name="force" direction="in"/>
|
||||
</method>
|
||||
<method name="ReleaseControl">
|
||||
</method>
|
||||
<method name="SetType">
|
||||
<arg type="s" name="type" direction="in"/>
|
||||
</method>
|
||||
<method name="SetDisplay">
|
||||
<arg type="s" name="display" direction="in"/>
|
||||
</method>
|
||||
<method name="SetTTY">
|
||||
<arg type="h" name="tty_fd" direction="in"/>
|
||||
</method>
|
||||
<method name="TakeDevice">
|
||||
<arg type="u" name="major" direction="in"/>
|
||||
<arg type="u" name="minor" direction="in"/>
|
||||
<arg type="h" name="fd" direction="out"/>
|
||||
<arg type="b" name="inactive" direction="out"/>
|
||||
</method>
|
||||
<method name="ReleaseDevice">
|
||||
<arg type="u" name="major" direction="in"/>
|
||||
<arg type="u" name="minor" direction="in"/>
|
||||
</method>
|
||||
<method name="PauseDeviceComplete">
|
||||
<arg type="u" name="major" direction="in"/>
|
||||
<arg type="u" name="minor" direction="in"/>
|
||||
</method>
|
||||
<method name="SetBrightness">
|
||||
<arg type="s" name="subsystem" direction="in"/>
|
||||
<arg type="s" name="name" direction="in"/>
|
||||
<arg type="u" name="brightness" direction="in"/>
|
||||
</method>
|
||||
<signal name="PauseDevice">
|
||||
<arg type="u" name="major"/>
|
||||
<arg type="u" name="minor"/>
|
||||
<arg type="s" name="type"/>
|
||||
</signal>
|
||||
<signal name="ResumeDevice">
|
||||
<arg type="u" name="major"/>
|
||||
<arg type="u" name="minor"/>
|
||||
<arg type="h" name="fd"/>
|
||||
</signal>
|
||||
<signal name="Lock">
|
||||
</signal>
|
||||
<signal name="Unlock">
|
||||
</signal>
|
||||
</interface>
|
||||
</node>
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
|
||||
/*
|
||||
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
|
||||
*/
|
||||
|
||||
#ifndef __sdbuscpp__networkmanager_accesspoint_client_glue_h__proxy__H__
|
||||
#define __sdbuscpp__networkmanager_accesspoint_client_glue_h__proxy__H__
|
||||
|
||||
#include <sdbus-c++/sdbus-c++.h>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
namespace org {
|
||||
namespace freedesktop {
|
||||
namespace NetworkManager {
|
||||
|
||||
class AccessPoint_proxy
|
||||
{
|
||||
public:
|
||||
static constexpr const char* INTERFACE_NAME = "org.freedesktop.NetworkManager.AccessPoint";
|
||||
|
||||
protected:
|
||||
AccessPoint_proxy(sdbus::IProxy& proxy)
|
||||
: proxy_(proxy)
|
||||
{
|
||||
}
|
||||
|
||||
~AccessPoint_proxy() = default;
|
||||
|
||||
public:
|
||||
uint32_t Flags()
|
||||
{
|
||||
return proxy_.getProperty("Flags").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint32_t WpaFlags()
|
||||
{
|
||||
return proxy_.getProperty("WpaFlags").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint32_t RsnFlags()
|
||||
{
|
||||
return proxy_.getProperty("RsnFlags").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<uint8_t> Ssid()
|
||||
{
|
||||
return proxy_.getProperty("Ssid").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint32_t Frequency()
|
||||
{
|
||||
return proxy_.getProperty("Frequency").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string HwAddress()
|
||||
{
|
||||
return proxy_.getProperty("HwAddress").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint32_t Mode()
|
||||
{
|
||||
return proxy_.getProperty("Mode").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint32_t MaxBitrate()
|
||||
{
|
||||
return proxy_.getProperty("MaxBitrate").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint8_t Strength()
|
||||
{
|
||||
return proxy_.getProperty("Strength").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
int32_t LastSeen()
|
||||
{
|
||||
return proxy_.getProperty("LastSeen").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
private:
|
||||
sdbus::IProxy& proxy_;
|
||||
};
|
||||
|
||||
}}} // namespaces
|
||||
|
||||
#endif
|
||||
+126
@@ -0,0 +1,126 @@
|
||||
|
||||
/*
|
||||
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
|
||||
*/
|
||||
|
||||
#ifndef __sdbuscpp__networkmanager_connection_active_client_glue_h__proxy__H__
|
||||
#define __sdbuscpp__networkmanager_connection_active_client_glue_h__proxy__H__
|
||||
|
||||
#include <sdbus-c++/sdbus-c++.h>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
namespace org {
|
||||
namespace freedesktop {
|
||||
namespace NetworkManager {
|
||||
namespace Connection {
|
||||
|
||||
class Active_proxy
|
||||
{
|
||||
public:
|
||||
static constexpr const char* INTERFACE_NAME = "org.freedesktop.NetworkManager.Connection.Active";
|
||||
|
||||
protected:
|
||||
Active_proxy(sdbus::IProxy& proxy)
|
||||
: proxy_(proxy)
|
||||
{
|
||||
proxy_.uponSignal("StateChanged").onInterface(INTERFACE_NAME).call([this](const uint32_t& state, const uint32_t& reason){ this->onStateChanged(state, reason); });
|
||||
}
|
||||
|
||||
~Active_proxy() = default;
|
||||
|
||||
virtual void onStateChanged(const uint32_t& state, const uint32_t& reason) = 0;
|
||||
|
||||
public:
|
||||
sdbus::ObjectPath Connection()
|
||||
{
|
||||
return proxy_.getProperty("Connection").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
sdbus::ObjectPath SpecificObject()
|
||||
{
|
||||
return proxy_.getProperty("SpecificObject").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Id()
|
||||
{
|
||||
return proxy_.getProperty("Id").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Uuid()
|
||||
{
|
||||
return proxy_.getProperty("Uuid").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Type()
|
||||
{
|
||||
return proxy_.getProperty("Type").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<sdbus::ObjectPath> Devices()
|
||||
{
|
||||
return proxy_.getProperty("Devices").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint32_t State()
|
||||
{
|
||||
return proxy_.getProperty("State").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint32_t StateFlags()
|
||||
{
|
||||
return proxy_.getProperty("StateFlags").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool Default()
|
||||
{
|
||||
return proxy_.getProperty("Default").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
sdbus::ObjectPath Ip4Config()
|
||||
{
|
||||
return proxy_.getProperty("Ip4Config").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
sdbus::ObjectPath Dhcp4Config()
|
||||
{
|
||||
return proxy_.getProperty("Dhcp4Config").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool Default6()
|
||||
{
|
||||
return proxy_.getProperty("Default6").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
sdbus::ObjectPath Ip6Config()
|
||||
{
|
||||
return proxy_.getProperty("Ip6Config").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
sdbus::ObjectPath Dhcp6Config()
|
||||
{
|
||||
return proxy_.getProperty("Dhcp6Config").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool Vpn()
|
||||
{
|
||||
return proxy_.getProperty("Vpn").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
sdbus::ObjectPath Controller()
|
||||
{
|
||||
return proxy_.getProperty("Controller").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
sdbus::ObjectPath Master()
|
||||
{
|
||||
return proxy_.getProperty("Master").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
private:
|
||||
sdbus::IProxy& proxy_;
|
||||
};
|
||||
|
||||
}}}} // namespaces
|
||||
|
||||
#endif
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
|
||||
/*
|
||||
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
|
||||
*/
|
||||
|
||||
#ifndef __sdbuscpp__networkmanager_device_wifip2p_client_glue_h__proxy__H__
|
||||
#define __sdbuscpp__networkmanager_device_wifip2p_client_glue_h__proxy__H__
|
||||
|
||||
#include <sdbus-c++/sdbus-c++.h>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
namespace org {
|
||||
namespace freedesktop {
|
||||
namespace NetworkManager {
|
||||
namespace Device {
|
||||
|
||||
class WifiP2P_proxy
|
||||
{
|
||||
public:
|
||||
static constexpr const char* INTERFACE_NAME = "org.freedesktop.NetworkManager.Device.WifiP2P";
|
||||
|
||||
protected:
|
||||
WifiP2P_proxy(sdbus::IProxy& proxy)
|
||||
: proxy_(proxy)
|
||||
{
|
||||
proxy_.uponSignal("PeerAdded").onInterface(INTERFACE_NAME).call([this](const sdbus::ObjectPath& peer){ this->onPeerAdded(peer); });
|
||||
proxy_.uponSignal("PeerRemoved").onInterface(INTERFACE_NAME).call([this](const sdbus::ObjectPath& peer){ this->onPeerRemoved(peer); });
|
||||
}
|
||||
|
||||
~WifiP2P_proxy() = default;
|
||||
|
||||
virtual void onPeerAdded(const sdbus::ObjectPath& peer) = 0;
|
||||
virtual void onPeerRemoved(const sdbus::ObjectPath& peer) = 0;
|
||||
|
||||
public:
|
||||
void StartFind(const std::map<std::string, sdbus::Variant>& options)
|
||||
{
|
||||
proxy_.callMethod("StartFind").onInterface(INTERFACE_NAME).withArguments(options);
|
||||
}
|
||||
|
||||
void StopFind()
|
||||
{
|
||||
proxy_.callMethod("StopFind").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
public:
|
||||
std::string HwAddress()
|
||||
{
|
||||
return proxy_.getProperty("HwAddress").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<sdbus::ObjectPath> Peers()
|
||||
{
|
||||
return proxy_.getProperty("Peers").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
private:
|
||||
sdbus::IProxy& proxy_;
|
||||
};
|
||||
|
||||
}}}} // namespaces
|
||||
|
||||
#endif
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
|
||||
/*
|
||||
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
|
||||
*/
|
||||
|
||||
#ifndef __sdbuscpp__networkmanager_device_wireless_client_glue_h__proxy__H__
|
||||
#define __sdbuscpp__networkmanager_device_wireless_client_glue_h__proxy__H__
|
||||
|
||||
#include <sdbus-c++/sdbus-c++.h>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
namespace org {
|
||||
namespace freedesktop {
|
||||
namespace NetworkManager {
|
||||
namespace Device {
|
||||
|
||||
class Wireless_proxy
|
||||
{
|
||||
public:
|
||||
static constexpr const char* INTERFACE_NAME = "org.freedesktop.NetworkManager.Device.Wireless";
|
||||
|
||||
protected:
|
||||
Wireless_proxy(sdbus::IProxy& proxy)
|
||||
: proxy_(proxy)
|
||||
{
|
||||
proxy_.uponSignal("AccessPointAdded").onInterface(INTERFACE_NAME).call([this](const sdbus::ObjectPath& access_point){ this->onAccessPointAdded(access_point); });
|
||||
proxy_.uponSignal("AccessPointRemoved").onInterface(INTERFACE_NAME).call([this](const sdbus::ObjectPath& access_point){ this->onAccessPointRemoved(access_point); });
|
||||
}
|
||||
|
||||
~Wireless_proxy() = default;
|
||||
|
||||
virtual void onAccessPointAdded(const sdbus::ObjectPath& access_point) = 0;
|
||||
virtual void onAccessPointRemoved(const sdbus::ObjectPath& access_point) = 0;
|
||||
|
||||
public:
|
||||
std::vector<sdbus::ObjectPath> GetAccessPoints()
|
||||
{
|
||||
std::vector<sdbus::ObjectPath> result;
|
||||
proxy_.callMethod("GetAccessPoints").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::vector<sdbus::ObjectPath> GetAllAccessPoints()
|
||||
{
|
||||
std::vector<sdbus::ObjectPath> result;
|
||||
proxy_.callMethod("GetAllAccessPoints").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void RequestScan(const std::map<std::string, sdbus::Variant>& options)
|
||||
{
|
||||
proxy_.callMethod("RequestScan").onInterface(INTERFACE_NAME).withArguments(options);
|
||||
}
|
||||
|
||||
public:
|
||||
std::string HwAddress()
|
||||
{
|
||||
return proxy_.getProperty("HwAddress").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string PermHwAddress()
|
||||
{
|
||||
return proxy_.getProperty("PermHwAddress").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint32_t Mode()
|
||||
{
|
||||
return proxy_.getProperty("Mode").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint32_t Bitrate()
|
||||
{
|
||||
return proxy_.getProperty("Bitrate").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<sdbus::ObjectPath> AccessPoints()
|
||||
{
|
||||
return proxy_.getProperty("AccessPoints").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
sdbus::ObjectPath ActiveAccessPoint()
|
||||
{
|
||||
return proxy_.getProperty("ActiveAccessPoint").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint32_t WirelessCapabilities()
|
||||
{
|
||||
return proxy_.getProperty("WirelessCapabilities").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
int64_t LastScan()
|
||||
{
|
||||
return proxy_.getProperty("LastScan").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
private:
|
||||
sdbus::IProxy& proxy_;
|
||||
};
|
||||
|
||||
}}}} // namespaces
|
||||
|
||||
#endif
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
|
||||
/*
|
||||
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
|
||||
*/
|
||||
|
||||
#ifndef __sdbuscpp__networkmanager_ip4config_client_glue_h__proxy__H__
|
||||
#define __sdbuscpp__networkmanager_ip4config_client_glue_h__proxy__H__
|
||||
|
||||
#include <sdbus-c++/sdbus-c++.h>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
namespace org {
|
||||
namespace freedesktop {
|
||||
namespace NetworkManager {
|
||||
|
||||
class IP4Config_proxy
|
||||
{
|
||||
public:
|
||||
static constexpr const char* INTERFACE_NAME = "org.freedesktop.NetworkManager.IP4Config";
|
||||
|
||||
protected:
|
||||
IP4Config_proxy(sdbus::IProxy& proxy)
|
||||
: proxy_(proxy)
|
||||
{
|
||||
}
|
||||
|
||||
~IP4Config_proxy() = default;
|
||||
|
||||
public:
|
||||
std::vector<std::vector<uint32_t>> Addresses()
|
||||
{
|
||||
return proxy_.getProperty("Addresses").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<std::map<std::string, sdbus::Variant>> AddressData()
|
||||
{
|
||||
return proxy_.getProperty("AddressData").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Gateway()
|
||||
{
|
||||
return proxy_.getProperty("Gateway").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<std::vector<uint32_t>> Routes()
|
||||
{
|
||||
return proxy_.getProperty("Routes").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<std::map<std::string, sdbus::Variant>> RouteData()
|
||||
{
|
||||
return proxy_.getProperty("RouteData").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<uint32_t> Nameservers()
|
||||
{
|
||||
return proxy_.getProperty("Nameservers").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<std::map<std::string, sdbus::Variant>> NameserverData()
|
||||
{
|
||||
return proxy_.getProperty("NameserverData").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<std::string> Domains()
|
||||
{
|
||||
return proxy_.getProperty("Domains").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<std::string> Searches()
|
||||
{
|
||||
return proxy_.getProperty("Searches").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<std::string> DnsOptions()
|
||||
{
|
||||
return proxy_.getProperty("DnsOptions").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
int32_t DnsPriority()
|
||||
{
|
||||
return proxy_.getProperty("DnsPriority").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<uint32_t> WinsServers()
|
||||
{
|
||||
return proxy_.getProperty("WinsServers").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<std::string> WinsServerData()
|
||||
{
|
||||
return proxy_.getProperty("WinsServerData").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
private:
|
||||
sdbus::IProxy& proxy_;
|
||||
};
|
||||
|
||||
}}} // namespaces
|
||||
|
||||
#endif
|
||||
+320
@@ -0,0 +1,320 @@
|
||||
|
||||
/*
|
||||
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
|
||||
*/
|
||||
|
||||
#ifndef __sdbuscpp__networkmanager_client_glue_h__proxy__H__
|
||||
#define __sdbuscpp__networkmanager_client_glue_h__proxy__H__
|
||||
|
||||
#include <sdbus-c++/sdbus-c++.h>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
namespace org {
|
||||
namespace freedesktop {
|
||||
|
||||
class NetworkManager_proxy
|
||||
{
|
||||
public:
|
||||
static constexpr const char* INTERFACE_NAME = "org.freedesktop.NetworkManager";
|
||||
|
||||
protected:
|
||||
NetworkManager_proxy(sdbus::IProxy& proxy)
|
||||
: proxy_(proxy)
|
||||
{
|
||||
proxy_.uponSignal("CheckPermissions").onInterface(INTERFACE_NAME).call([this](){ this->onCheckPermissions(); });
|
||||
proxy_.uponSignal("StateChanged").onInterface(INTERFACE_NAME).call([this](const uint32_t& state){ this->onStateChanged(state); });
|
||||
proxy_.uponSignal("DeviceAdded").onInterface(INTERFACE_NAME).call([this](const sdbus::ObjectPath& device_path){ this->onDeviceAdded(device_path); });
|
||||
proxy_.uponSignal("DeviceRemoved").onInterface(INTERFACE_NAME).call([this](const sdbus::ObjectPath& device_path){ this->onDeviceRemoved(device_path); });
|
||||
}
|
||||
|
||||
~NetworkManager_proxy() = default;
|
||||
|
||||
virtual void onCheckPermissions() = 0;
|
||||
virtual void onStateChanged(const uint32_t& state) = 0;
|
||||
virtual void onDeviceAdded(const sdbus::ObjectPath& device_path) = 0;
|
||||
virtual void onDeviceRemoved(const sdbus::ObjectPath& device_path) = 0;
|
||||
|
||||
public:
|
||||
void Reload(const uint32_t& flags)
|
||||
{
|
||||
proxy_.callMethod("Reload").onInterface(INTERFACE_NAME).withArguments(flags);
|
||||
}
|
||||
|
||||
std::vector<sdbus::ObjectPath> GetDevices()
|
||||
{
|
||||
std::vector<sdbus::ObjectPath> result;
|
||||
proxy_.callMethod("GetDevices").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::vector<sdbus::ObjectPath> GetAllDevices()
|
||||
{
|
||||
std::vector<sdbus::ObjectPath> result;
|
||||
proxy_.callMethod("GetAllDevices").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath GetDeviceByIpIface(const std::string& iface)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("GetDeviceByIpIface").onInterface(INTERFACE_NAME).withArguments(iface).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath ActivateConnection(const sdbus::ObjectPath& connection, const sdbus::ObjectPath& device, const sdbus::ObjectPath& specific_object)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("ActivateConnection").onInterface(INTERFACE_NAME).withArguments(connection, device, specific_object).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::tuple<sdbus::ObjectPath, sdbus::ObjectPath> AddAndActivateConnection(const std::map<std::string, std::map<std::string, sdbus::Variant>>& connection, const sdbus::ObjectPath& device, const sdbus::ObjectPath& specific_object)
|
||||
{
|
||||
std::tuple<sdbus::ObjectPath, sdbus::ObjectPath> result;
|
||||
proxy_.callMethod("AddAndActivateConnection").onInterface(INTERFACE_NAME).withArguments(connection, device, specific_object).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::tuple<sdbus::ObjectPath, sdbus::ObjectPath, std::map<std::string, sdbus::Variant>> AddAndActivateConnection2(const std::map<std::string, std::map<std::string, sdbus::Variant>>& connection, const sdbus::ObjectPath& device, const sdbus::ObjectPath& specific_object, const std::map<std::string, sdbus::Variant>& options)
|
||||
{
|
||||
std::tuple<sdbus::ObjectPath, sdbus::ObjectPath, std::map<std::string, sdbus::Variant>> result;
|
||||
proxy_.callMethod("AddAndActivateConnection2").onInterface(INTERFACE_NAME).withArguments(connection, device, specific_object, options).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void DeactivateConnection(const sdbus::ObjectPath& active_connection)
|
||||
{
|
||||
proxy_.callMethod("DeactivateConnection").onInterface(INTERFACE_NAME).withArguments(active_connection);
|
||||
}
|
||||
|
||||
void Sleep(const bool& sleep)
|
||||
{
|
||||
proxy_.callMethod("Sleep").onInterface(INTERFACE_NAME).withArguments(sleep);
|
||||
}
|
||||
|
||||
void Enable(const bool& enable)
|
||||
{
|
||||
proxy_.callMethod("Enable").onInterface(INTERFACE_NAME).withArguments(enable);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> GetPermissions()
|
||||
{
|
||||
std::map<std::string, std::string> result;
|
||||
proxy_.callMethod("GetPermissions").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void SetLogging(const std::string& level, const std::string& domains)
|
||||
{
|
||||
proxy_.callMethod("SetLogging").onInterface(INTERFACE_NAME).withArguments(level, domains);
|
||||
}
|
||||
|
||||
std::tuple<std::string, std::string> GetLogging()
|
||||
{
|
||||
std::tuple<std::string, std::string> result;
|
||||
proxy_.callMethod("GetLogging").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
uint32_t CheckConnectivity()
|
||||
{
|
||||
uint32_t result;
|
||||
proxy_.callMethod("CheckConnectivity").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
uint32_t state()
|
||||
{
|
||||
uint32_t result;
|
||||
proxy_.callMethod("state").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
sdbus::ObjectPath CheckpointCreate(const std::vector<sdbus::ObjectPath>& devices, const uint32_t& rollback_timeout, const uint32_t& flags)
|
||||
{
|
||||
sdbus::ObjectPath result;
|
||||
proxy_.callMethod("CheckpointCreate").onInterface(INTERFACE_NAME).withArguments(devices, rollback_timeout, flags).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void CheckpointDestroy(const sdbus::ObjectPath& checkpoint)
|
||||
{
|
||||
proxy_.callMethod("CheckpointDestroy").onInterface(INTERFACE_NAME).withArguments(checkpoint);
|
||||
}
|
||||
|
||||
std::map<std::string, uint32_t> CheckpointRollback(const sdbus::ObjectPath& checkpoint)
|
||||
{
|
||||
std::map<std::string, uint32_t> result;
|
||||
proxy_.callMethod("CheckpointRollback").onInterface(INTERFACE_NAME).withArguments(checkpoint).storeResultsTo(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void CheckpointAdjustRollbackTimeout(const sdbus::ObjectPath& checkpoint, const uint32_t& add_timeout)
|
||||
{
|
||||
proxy_.callMethod("CheckpointAdjustRollbackTimeout").onInterface(INTERFACE_NAME).withArguments(checkpoint, add_timeout);
|
||||
}
|
||||
|
||||
public:
|
||||
std::vector<sdbus::ObjectPath> Devices()
|
||||
{
|
||||
return proxy_.getProperty("Devices").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<sdbus::ObjectPath> AllDevices()
|
||||
{
|
||||
return proxy_.getProperty("AllDevices").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<sdbus::ObjectPath> Checkpoints()
|
||||
{
|
||||
return proxy_.getProperty("Checkpoints").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool NetworkingEnabled()
|
||||
{
|
||||
return proxy_.getProperty("NetworkingEnabled").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool WirelessEnabled()
|
||||
{
|
||||
return proxy_.getProperty("WirelessEnabled").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void WirelessEnabled(const bool& value)
|
||||
{
|
||||
proxy_.setProperty("WirelessEnabled").onInterface(INTERFACE_NAME).toValue(value);
|
||||
}
|
||||
|
||||
bool WirelessHardwareEnabled()
|
||||
{
|
||||
return proxy_.getProperty("WirelessHardwareEnabled").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool WwanEnabled()
|
||||
{
|
||||
return proxy_.getProperty("WwanEnabled").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void WwanEnabled(const bool& value)
|
||||
{
|
||||
proxy_.setProperty("WwanEnabled").onInterface(INTERFACE_NAME).toValue(value);
|
||||
}
|
||||
|
||||
bool WwanHardwareEnabled()
|
||||
{
|
||||
return proxy_.getProperty("WwanHardwareEnabled").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool WimaxEnabled()
|
||||
{
|
||||
return proxy_.getProperty("WimaxEnabled").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void WimaxEnabled(const bool& value)
|
||||
{
|
||||
proxy_.setProperty("WimaxEnabled").onInterface(INTERFACE_NAME).toValue(value);
|
||||
}
|
||||
|
||||
bool WimaxHardwareEnabled()
|
||||
{
|
||||
return proxy_.getProperty("WimaxHardwareEnabled").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint32_t RadioFlags()
|
||||
{
|
||||
return proxy_.getProperty("RadioFlags").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<sdbus::ObjectPath> ActiveConnections()
|
||||
{
|
||||
return proxy_.getProperty("ActiveConnections").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
sdbus::ObjectPath PrimaryConnection()
|
||||
{
|
||||
return proxy_.getProperty("PrimaryConnection").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string PrimaryConnectionType()
|
||||
{
|
||||
return proxy_.getProperty("PrimaryConnectionType").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint32_t Metered()
|
||||
{
|
||||
return proxy_.getProperty("Metered").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
sdbus::ObjectPath ActivatingConnection()
|
||||
{
|
||||
return proxy_.getProperty("ActivatingConnection").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool Startup()
|
||||
{
|
||||
return proxy_.getProperty("Startup").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::string Version()
|
||||
{
|
||||
return proxy_.getProperty("Version").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<uint32_t> VersionInfo()
|
||||
{
|
||||
return proxy_.getProperty("VersionInfo").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::vector<uint32_t> Capabilities()
|
||||
{
|
||||
return proxy_.getProperty("Capabilities").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint32_t State()
|
||||
{
|
||||
return proxy_.getProperty("State").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
uint32_t Connectivity()
|
||||
{
|
||||
return proxy_.getProperty("Connectivity").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool ConnectivityCheckAvailable()
|
||||
{
|
||||
return proxy_.getProperty("ConnectivityCheckAvailable").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
bool ConnectivityCheckEnabled()
|
||||
{
|
||||
return proxy_.getProperty("ConnectivityCheckEnabled").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void ConnectivityCheckEnabled(const bool& value)
|
||||
{
|
||||
proxy_.setProperty("ConnectivityCheckEnabled").onInterface(INTERFACE_NAME).toValue(value);
|
||||
}
|
||||
|
||||
std::string ConnectivityCheckUri()
|
||||
{
|
||||
return proxy_.getProperty("ConnectivityCheckUri").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
std::map<std::string, sdbus::Variant> GlobalDnsConfiguration()
|
||||
{
|
||||
return proxy_.getProperty("GlobalDnsConfiguration").onInterface(INTERFACE_NAME);
|
||||
}
|
||||
|
||||
void GlobalDnsConfiguration(const std::map<std::string, sdbus::Variant>& value)
|
||||
{
|
||||
proxy_.setProperty("GlobalDnsConfiguration").onInterface(INTERFACE_NAME).toValue(value);
|
||||
}
|
||||
|
||||
private:
|
||||
sdbus::IProxy& proxy_;
|
||||
};
|
||||
|
||||
}} // namespaces
|
||||
|
||||
#endif
|
||||
+99
@@ -0,0 +1,99 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<node name="/">
|
||||
<!--
|
||||
org.freedesktop.NetworkManager.AccessPoint:
|
||||
@short_description: Wi-Fi Access Point.
|
||||
|
||||
-->
|
||||
<interface name="org.freedesktop.NetworkManager.AccessPoint">
|
||||
|
||||
<!--
|
||||
Flags:
|
||||
|
||||
Flags describing the capabilities of the access point.
|
||||
|
||||
Returns: <link linkend="NM80211ApFlags">NM80211ApFlags</link>
|
||||
-->
|
||||
<property name="Flags" type="u" access="read"/>
|
||||
|
||||
<!--
|
||||
WpaFlags:
|
||||
|
||||
Flags describing the access point's capabilities according to WPA (Wifi
|
||||
Protected Access).
|
||||
|
||||
Returns: <link linkend="NM80211ApSecurityFlags">NM80211ApSecurityFlags</link>
|
||||
-->
|
||||
<property name="WpaFlags" type="u" access="read"/>
|
||||
|
||||
<!--
|
||||
RsnFlags:
|
||||
|
||||
Flags describing the access point's capabilities according to the RSN
|
||||
(Robust Secure Network) protocol.
|
||||
|
||||
Returns: <link linkend="NM80211ApSecurityFlags">NM80211ApSecurityFlags</link>
|
||||
-->
|
||||
<property name="RsnFlags" type="u" access="read"/>
|
||||
|
||||
<!--
|
||||
Ssid:
|
||||
|
||||
The Service Set Identifier identifying the access point.
|
||||
-->
|
||||
<property name="Ssid" type="ay" access="read">
|
||||
<!-- gdbus-codegen assumes that "ay" means "non-UTF-8 string" and
|
||||
won't deal with '\0' bytes correctly.
|
||||
-->
|
||||
<annotation name="org.gtk.GDBus.C.ForceGVariant" value="1"/>
|
||||
</property>
|
||||
|
||||
<!--
|
||||
Frequency:
|
||||
|
||||
The radio channel frequency in use by the access point, in MHz.
|
||||
-->
|
||||
<property name="Frequency" type="u" access="read"/>
|
||||
|
||||
<!--
|
||||
HwAddress:
|
||||
|
||||
The hardware address (BSSID) of the access point.
|
||||
-->
|
||||
<property name="HwAddress" type="s" access="read"/>
|
||||
|
||||
<!--
|
||||
Mode:
|
||||
|
||||
Describes the operating mode of the access point.
|
||||
|
||||
Returns: <link linkend="NM80211Mode">NM80211Mode</link>
|
||||
-->
|
||||
<property name="Mode" type="u" access="read"/>
|
||||
|
||||
<!--
|
||||
MaxBitrate:
|
||||
|
||||
The maximum bitrate this access point is capable of, in kilobits/second
|
||||
(Kb/s).
|
||||
-->
|
||||
<property name="MaxBitrate" type="u" access="read"/>
|
||||
|
||||
<!--
|
||||
Strength:
|
||||
|
||||
The current signal quality of the access point, in percent.
|
||||
-->
|
||||
<property name="Strength" type="y" access="read"/>
|
||||
|
||||
<!--
|
||||
LastSeen:
|
||||
|
||||
The timestamp (in CLOCK_BOOTTIME seconds) for the last time the access
|
||||
point was found in scan results. A value of -1 means the access point has
|
||||
never been found in scan results.
|
||||
-->
|
||||
<property name="LastSeen" type="i" access="read"/>
|
||||
|
||||
</interface>
|
||||
</node>
|
||||
+185
@@ -0,0 +1,185 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<node name="/">
|
||||
|
||||
<!--
|
||||
org.freedesktop.NetworkManager.Connection.Active:
|
||||
@short_description: Active Connection.
|
||||
|
||||
Objects that implement the Connection.Active interface represent an
|
||||
attempt to connect to a network using the details provided by a Connection
|
||||
object. The Connection.Active object tracks the life-cycle of the
|
||||
connection attempt and if successful indicates whether the connected
|
||||
network is the "default" or preferred network for access. NetworkManager
|
||||
has the concept of connections, which can be thought of as settings, a
|
||||
profile or a configuration that can be applied on a networking device.
|
||||
Such settings-connections are exposed as D-Bus object and the
|
||||
active-connection expresses this relationship between device and
|
||||
settings-connection. At any time a settings-connection can only be
|
||||
activated on one device and vice versa. However, during activation and
|
||||
deactivation multiple active-connections can reference the same device or
|
||||
settings-connection as they are waiting to be activated or to be
|
||||
deactivated.
|
||||
-->
|
||||
<interface name="org.freedesktop.NetworkManager.Connection.Active">
|
||||
<annotation name="org.gtk.GDBus.C.Name" value="ActiveConnection"/>
|
||||
|
||||
<!--
|
||||
Connection:
|
||||
|
||||
The path of the connection.
|
||||
-->
|
||||
<property name="Connection" type="o" access="read"/>
|
||||
|
||||
<!--
|
||||
SpecificObject:
|
||||
|
||||
A specific object associated with the active connection. This property
|
||||
reflects the specific object used during connection activation, and will
|
||||
not change over the lifetime of the ActiveConnection once set.
|
||||
-->
|
||||
<property name="SpecificObject" type="o" access="read"/>
|
||||
|
||||
<!--
|
||||
Id:
|
||||
|
||||
The ID of the connection, provided as a convenience so that clients do not
|
||||
have to retrieve all connection details.
|
||||
-->
|
||||
<property name="Id" type="s" access="read"/>
|
||||
|
||||
<!--
|
||||
Uuid:
|
||||
|
||||
The UUID of the connection, provided as a convenience so that clients do
|
||||
not have to retrieve all connection details.
|
||||
-->
|
||||
<property name="Uuid" type="s" access="read"/>
|
||||
|
||||
<!--
|
||||
Type:
|
||||
|
||||
The type of the connection, provided as a convenience so that clients do
|
||||
not have to retrieve all connection details.
|
||||
-->
|
||||
<property name="Type" type="s" access="read"/>
|
||||
|
||||
<!--
|
||||
Devices:
|
||||
|
||||
Array of object paths representing devices which are part of this active
|
||||
connection.
|
||||
-->
|
||||
<property name="Devices" type="ao" access="read"/>
|
||||
|
||||
<!--
|
||||
State:
|
||||
|
||||
The state of this active connection.
|
||||
|
||||
Returns: <link linkend="NMActiveConnectionState">NMActiveConnectionState</link>
|
||||
-->
|
||||
<property name="State" type="u" access="read"/>
|
||||
|
||||
<!--
|
||||
StateFlags:
|
||||
|
||||
The state flags of this active connection.
|
||||
|
||||
Returns: <link linkend="NMActivationStateFlags">NMActivationStateFlags</link>
|
||||
-->
|
||||
<property name="StateFlags" type="u" access="read"/>
|
||||
|
||||
<!--
|
||||
StateChanged:
|
||||
@state: (<link linkend="NMActiveConnectionState">NMActiveConnectionState</link>) The new state of the active connection.
|
||||
@reason: (<link linkend="NMActiveConnectionStateReason">NMActiveConnectionStateReason</link>) Reason code describing the change to the new state.
|
||||
@since: 1.8
|
||||
|
||||
Emitted when the state of the active connection has changed.
|
||||
|
||||
-->
|
||||
<signal name="StateChanged">
|
||||
<arg name="state" type="u"/>
|
||||
<arg name="reason" type="u"/>
|
||||
</signal>
|
||||
|
||||
<!--
|
||||
Default:
|
||||
|
||||
Whether this active connection is the default IPv4 connection, i.e.
|
||||
whether it currently owns the default IPv4 route.
|
||||
-->
|
||||
<property name="Default" type="b" access="read"/>
|
||||
|
||||
<!--
|
||||
Ip4Config:
|
||||
|
||||
Object path of the Ip4Config object describing the configuration of the
|
||||
connection. Only valid when the connection is in the
|
||||
NM_ACTIVE_CONNECTION_STATE_ACTIVATED state.
|
||||
-->
|
||||
<property name="Ip4Config" type="o" access="read"/>
|
||||
|
||||
<!--
|
||||
Dhcp4Config:
|
||||
|
||||
Object path of the Dhcp4Config object describing the DHCP options returned
|
||||
by the DHCP server (assuming the connection used DHCP). Only valid when
|
||||
the connection is in the NM_ACTIVE_CONNECTION_STATE_ACTIVATED state.
|
||||
-->
|
||||
<property name="Dhcp4Config" type="o" access="read"/>
|
||||
|
||||
<!--
|
||||
Default6:
|
||||
|
||||
Whether this active connection is the default IPv6 connection, i.e.
|
||||
whether it currently owns the default IPv6 route.
|
||||
-->
|
||||
<property name="Default6" type="b" access="read"/>
|
||||
|
||||
<!--
|
||||
Ip6Config:
|
||||
|
||||
Object path of the Ip6Config object describing the configuration of the
|
||||
connection. Only valid when the connection is in the
|
||||
NM_ACTIVE_CONNECTION_STATE_ACTIVATED state.
|
||||
-->
|
||||
<property name="Ip6Config" type="o" access="read"/>
|
||||
|
||||
<!--
|
||||
Dhcp6Config:
|
||||
|
||||
Object path of the Dhcp6Config object describing the DHCP options returned
|
||||
by the DHCP server (assuming the connection used DHCP). Only valid when
|
||||
the connection is in the NM_ACTIVE_CONNECTION_STATE_ACTIVATED state.
|
||||
-->
|
||||
<property name="Dhcp6Config" type="o" access="read"/>
|
||||
|
||||
<!--
|
||||
Vpn:
|
||||
|
||||
Whether this active connection is also a VPN connection.
|
||||
-->
|
||||
<property name="Vpn" type="b" access="read"/>
|
||||
|
||||
<!--
|
||||
Controller:
|
||||
@Since: 1.44, 1.42.2
|
||||
|
||||
The path to the controller device if the connection is a port. This
|
||||
property replaces the deprecated 'Master' property.
|
||||
-->
|
||||
<property name="Controller" type="o" access="read"/>
|
||||
|
||||
<!--
|
||||
Master:
|
||||
|
||||
The path to the controller device if the connection is a port.
|
||||
|
||||
This property is deprecated in favor of the 'Controller'
|
||||
property since 1.44 and 1.42.2.
|
||||
-->
|
||||
<property name="Master" type="o" access="read"/>
|
||||
|
||||
</interface>
|
||||
</node>
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<node name="/">
|
||||
<!--
|
||||
org.freedesktop.NetworkManager.Device.WifiP2P:
|
||||
@short_description: Wi-Fi P2P Device.
|
||||
@since: 1.16
|
||||
-->
|
||||
<interface name="org.freedesktop.NetworkManager.Device.WifiP2P">
|
||||
<annotation name="org.gtk.GDBus.C.Name" value="Device_Wifi_P2P"/>
|
||||
|
||||
<!--
|
||||
HwAddress:
|
||||
|
||||
The active hardware address of the device.
|
||||
|
||||
DEPRECATED. Use the "HwAddress" property in "org.freedesktop.NetworkManager.Device" instead which exists since version NetworkManager 1.24.0.
|
||||
-->
|
||||
<property name="HwAddress" type="s" access="read"/>
|
||||
|
||||
<!--
|
||||
Peers:
|
||||
|
||||
List of object paths of peers visible to this Wi-Fi P2P device.
|
||||
-->
|
||||
<property name="Peers" type="ao" access="read"/>
|
||||
|
||||
<!--
|
||||
StartFind:
|
||||
@options: Options of find.
|
||||
|
||||
Start a find operation for Wi-Fi P2P peers.
|
||||
|
||||
The %options argument accepts the following keys:
|
||||
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><literal>i timeout</literal>:</term>
|
||||
<listitem><para>Timeout value in the range of 1-600 seconds.</para>
|
||||
<para>The default is 30 seconds.</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
-->
|
||||
<method name="StartFind">
|
||||
<arg name="options" type="a{sv}" direction="in"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
StopFind:
|
||||
|
||||
Stop an ongoing find operation again.
|
||||
-->
|
||||
<method name="StopFind">
|
||||
</method>
|
||||
|
||||
<!--
|
||||
PeerAdded:
|
||||
@peer: The object path of the newly found access point.
|
||||
|
||||
Emitted when a new Wi-Fi P2P peer is found by the device.
|
||||
-->
|
||||
<signal name="PeerAdded">
|
||||
<arg name="peer" type="o"/>
|
||||
</signal>
|
||||
|
||||
<!--
|
||||
PeerRemoved:
|
||||
@peer: The object path of the Wi-Fi P2P peer that has disappeared.
|
||||
|
||||
Emitted when a Wi-Fi P2P peer disappears from view of the device.
|
||||
-->
|
||||
<signal name="PeerRemoved">
|
||||
<arg name="peer" type="o"/>
|
||||
</signal>
|
||||
|
||||
</interface>
|
||||
</node>
|
||||
+131
@@ -0,0 +1,131 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<node name="/">
|
||||
<!--
|
||||
org.freedesktop.NetworkManager.Device.Wireless:
|
||||
@short_description: Wi-Fi Device.
|
||||
|
||||
-->
|
||||
<interface name="org.freedesktop.NetworkManager.Device.Wireless">
|
||||
<annotation name="org.gtk.GDBus.C.Name" value="DeviceWifi"/>
|
||||
|
||||
<!--
|
||||
GetAccessPoints:
|
||||
@access_points: List of access point object paths.
|
||||
|
||||
DEPRECATED. Get the list of access points visible to this device. Note
|
||||
that this list does not include access points which hide their SSID. To
|
||||
retrieve a list of all access points (including hidden ones) use the
|
||||
GetAllAccessPoints() method.
|
||||
-->
|
||||
<method name="GetAccessPoints">
|
||||
<arg name="access_points" type="ao" direction="out"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
GetAllAccessPoints:
|
||||
@access_points: List of access point object paths.
|
||||
|
||||
Get the list of all access points visible to this device, including hidden
|
||||
ones for which the SSID is not yet known.
|
||||
-->
|
||||
<method name="GetAllAccessPoints">
|
||||
<arg name="access_points" type="ao" direction="out"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
RequestScan:
|
||||
@options: Options of scan. Currently, 'ssids' option with value of "aay" type is supported.
|
||||
|
||||
Request the device to scan. To know when the scan is finished, use the "PropertiesChanged" signal from "org.freedesktop.DBus.Properties" to listen to changes to the "LastScan" property.
|
||||
-->
|
||||
<method name="RequestScan">
|
||||
<arg name="options" type="a{sv}" direction="in"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
HwAddress:
|
||||
|
||||
The active hardware address of the device.
|
||||
|
||||
DEPRECATED. Use the "HwAddress" property in "org.freedesktop.NetworkManager.Device" instead which exists since version NetworkManager 1.24.0.
|
||||
-->
|
||||
<property name="HwAddress" type="s" access="read"/>
|
||||
|
||||
<!--
|
||||
PermHwAddress:
|
||||
|
||||
The permanent hardware address of the device.
|
||||
-->
|
||||
<property name="PermHwAddress" type="s" access="read"/>
|
||||
|
||||
<!--
|
||||
Mode:
|
||||
|
||||
The operating mode of the wireless device.
|
||||
|
||||
Returns: <link linkend="NM80211Mode">NM80211Mode</link>
|
||||
-->
|
||||
<property name="Mode" type="u" access="read"/>
|
||||
|
||||
<!--
|
||||
Bitrate:
|
||||
|
||||
The bit rate currently used by the wireless device, in kilobits/second
|
||||
(Kb/s).
|
||||
-->
|
||||
<property name="Bitrate" type="u" access="read"/>
|
||||
|
||||
<!--
|
||||
AccessPoints:
|
||||
|
||||
List of object paths of access point visible to this wireless device.
|
||||
-->
|
||||
<property name="AccessPoints" type="ao" access="read"/>
|
||||
|
||||
<!--
|
||||
ActiveAccessPoint:
|
||||
|
||||
Object path of the access point currently used by the wireless device.
|
||||
-->
|
||||
<property name="ActiveAccessPoint" type="o" access="read"/>
|
||||
|
||||
<!--
|
||||
WirelessCapabilities:
|
||||
|
||||
The capabilities of the wireless device.
|
||||
|
||||
Returns: <link linkend="NMDeviceWifiCapabilities">NMDeviceWifiCapabilities</link>
|
||||
-->
|
||||
<property name="WirelessCapabilities" type="u" access="read"/>
|
||||
|
||||
<!--
|
||||
LastScan:
|
||||
@since: 1.12
|
||||
|
||||
The timestamp (in CLOCK_BOOTTIME milliseconds) for the last finished network scan.
|
||||
A value of -1 means the device never scanned for access points.
|
||||
-->
|
||||
<property name="LastScan" type="x" access="read"/>
|
||||
|
||||
<!--
|
||||
AccessPointAdded:
|
||||
@access_point: The object path of the newly found access point.
|
||||
|
||||
Emitted when a new access point is found by the device.
|
||||
-->
|
||||
<signal name="AccessPointAdded">
|
||||
<arg name="access_point" type="o"/>
|
||||
</signal>
|
||||
|
||||
<!--
|
||||
AccessPointRemoved:
|
||||
@access_point: The object path of the access point that has disappeared.
|
||||
|
||||
Emitted when an access point disappears from view of the device.
|
||||
-->
|
||||
<signal name="AccessPointRemoved">
|
||||
<arg name="access_point" type="o"/>
|
||||
</signal>
|
||||
|
||||
</interface>
|
||||
</node>
|
||||
+117
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<node name="/">
|
||||
<!--
|
||||
org.freedesktop.NetworkManager.IP4Config:
|
||||
@short_description: IPv4 Configuration Set.
|
||||
|
||||
-->
|
||||
<interface name="org.freedesktop.NetworkManager.IP4Config">
|
||||
|
||||
<!--
|
||||
Addresses:
|
||||
|
||||
Array of arrays of IPv4 address/prefix/gateway. All 3 elements of each
|
||||
array are in network byte order. Essentially: [(addr, prefix, gateway),
|
||||
(addr, prefix, gateway), ...] Deprecated: use AddressData and Gateway
|
||||
-->
|
||||
<property name="Addresses" type="aau" access="read"/>
|
||||
|
||||
<!--
|
||||
AddressData:
|
||||
|
||||
Array of IP address data objects. All addresses will include "address" (an
|
||||
IP address string), and "prefix" (a uint). Some addresses may include
|
||||
additional attributes.
|
||||
-->
|
||||
<property name="AddressData" type="aa{sv}" access="read"/>
|
||||
|
||||
<!--
|
||||
Gateway:
|
||||
|
||||
The gateway in use.
|
||||
-->
|
||||
<property name="Gateway" type="s" access="read"/>
|
||||
|
||||
<!--
|
||||
Routes:
|
||||
|
||||
Arrays of IPv4 route/prefix/next-hop/metric. All 4 elements of each tuple
|
||||
are in network byte order. 'route' and 'next hop' are IPv4 addresses,
|
||||
while prefix and metric are simple unsigned integers. Essentially:
|
||||
[(route, prefix, next-hop, metric), (route, prefix, next-hop, metric),
|
||||
...] Deprecated: use RouteData
|
||||
-->
|
||||
<property name="Routes" type="aau" access="read"/>
|
||||
|
||||
<!--
|
||||
RouteData:
|
||||
|
||||
Array of IP route data objects. All routes will include "dest" (an IP
|
||||
address string) and "prefix" (a uint). Some routes may include "next-hop"
|
||||
(an IP address string), "metric" (a uint), and additional attributes.
|
||||
-->
|
||||
<property name="RouteData" type="aa{sv}" access="read"/>
|
||||
|
||||
<!--
|
||||
Nameservers:
|
||||
|
||||
The nameservers in use. Deprecated: use NameserverData
|
||||
-->
|
||||
<property name="Nameservers" type="au" access="read"/>
|
||||
|
||||
<!--
|
||||
NameserverData:
|
||||
@since: 1.14
|
||||
|
||||
The nameservers in use. Currently, only the value "address"
|
||||
is recognized (with an IP address string).
|
||||
-->
|
||||
<property name="NameserverData" type="aa{sv}" access="read"/>
|
||||
|
||||
<!--
|
||||
Domains:
|
||||
|
||||
A list of domains this address belongs to.
|
||||
-->
|
||||
<property name="Domains" type="as" access="read"/>
|
||||
|
||||
<!--
|
||||
Searches:
|
||||
|
||||
A list of dns searches.
|
||||
-->
|
||||
<property name="Searches" type="as" access="read"/>
|
||||
|
||||
<!--
|
||||
DnsOptions:
|
||||
|
||||
A list of DNS options that modify the behavior of the DNS resolver. See
|
||||
resolv.conf(5) manual page for the list of supported options.
|
||||
-->
|
||||
<property name="DnsOptions" type="as" access="read"/>
|
||||
|
||||
<!--
|
||||
DnsPriority:
|
||||
|
||||
The relative priority of DNS servers.
|
||||
-->
|
||||
<property name="DnsPriority" type="i" access="read"/>
|
||||
|
||||
<!--
|
||||
WinsServers:
|
||||
|
||||
The Windows Internet Name Service servers associated with the connection.
|
||||
Each address is in network byte order. Deprecated: use WinsServerData
|
||||
-->
|
||||
<property name="WinsServers" type="au" access="read"/>
|
||||
|
||||
<!--
|
||||
WinsServerData:
|
||||
@since: 1.14
|
||||
|
||||
The Windows Internet Name Service servers associated with the connection.
|
||||
-->
|
||||
<property name="WinsServerData" type="as" access="read"/>
|
||||
|
||||
</interface>
|
||||
</node>
|
||||
+598
@@ -0,0 +1,598 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<node name="/org/freedesktop/NetworkManager">
|
||||
<!--
|
||||
org.freedesktop.NetworkManager:
|
||||
@short_description: Connection Manager.
|
||||
|
||||
-->
|
||||
<interface name="org.freedesktop.NetworkManager">
|
||||
<annotation name="org.gtk.GDBus.C.Name" value="Manager"/>
|
||||
|
||||
<!--
|
||||
Reload:
|
||||
@flags: Optional flags to specify which parts shall be reloaded.
|
||||
|
||||
Reload NetworkManager's configuration and perform certain updates, like flushing a cache or
|
||||
rewriting external state to disk. This is similar to sending SIGHUP to NetworkManager but it
|
||||
allows for more fine-grained control over what to reload (see @flags). It also allows
|
||||
non-root access via PolicyKit and contrary to signals it is synchronous.
|
||||
|
||||
No flags (0x00) means to reload everything that is supported which is identical to
|
||||
sending a SIGHUP.
|
||||
(0x01) means to reload the NetworkManager.conf configuration from disk. Note that this
|
||||
does not include connections, which can be reloaded via Setting's ReloadConnections.
|
||||
(0x02) means to update DNS configuration, which usually involves writing /etc/resolv.conf
|
||||
anew.
|
||||
(0x04) means to restart the DNS plugin. This is for example useful when using
|
||||
dnsmasq plugin, which uses additional configuration in /etc/NetworkManager/dnsmasq.d.
|
||||
If you edit those files, you can restart the DNS plugin. This action shortly interrupts
|
||||
name resolution.
|
||||
Note that flags may affect each other. For example, restarting the DNS plugin (0x04)
|
||||
implicitly updates DNS too (0x02). Or when reloading the configuration (0x01), changes
|
||||
to DNS setting also cause a DNS update (0x02). However, (0x01) does not involve restarting
|
||||
the DNS plugin (0x04) or update resolv.conf (0x02), unless the DNS related configuration
|
||||
changes in NetworkManager.conf.
|
||||
-->
|
||||
<method name="Reload">
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
GetDevices:
|
||||
@devices: List of object paths of network devices known to the system. This list does not include device placeholders (see GetAllDevices()).
|
||||
|
||||
Get the list of realized network devices.
|
||||
-->
|
||||
<method name="GetDevices">
|
||||
<arg name="devices" type="ao" direction="out"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
GetAllDevices:
|
||||
@devices: List of object paths of network devices and device placeholders (eg, devices that do not yet exist but which can be automatically created by NetworkManager if one of their AvailableConnections was activated).
|
||||
|
||||
Get the list of all network devices.
|
||||
-->
|
||||
<method name="GetAllDevices">
|
||||
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_get_all_devices"/>
|
||||
<arg name="devices" type="ao" direction="out"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
GetDeviceByIpIface:
|
||||
@iface: Interface name of the device to find.
|
||||
@device: Object path of the network device.
|
||||
|
||||
Return the object path of the network device referenced by its IP
|
||||
interface name. Note that some devices (usually modems) only have an IP
|
||||
interface name when they are connected.
|
||||
-->
|
||||
<method name="GetDeviceByIpIface">
|
||||
<arg name="iface" type="s" direction="in"/>
|
||||
<arg name="device" type="o" direction="out"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
ActivateConnection:
|
||||
@connection: The connection to activate. If "/" is given, a valid device path must be given, and NetworkManager picks the best connection to activate for the given device. VPN connections must always pass a valid connection path.
|
||||
@device: The object path of device to be activated for physical connections. This parameter is ignored for VPN connections, because the specific_object (if provided) specifies the device to use.
|
||||
@specific_object: The path of a connection-type-specific object this activation should use. This parameter is currently ignored for wired and mobile broadband connections, and the value of "/" should be used (ie, no specific object). For Wi-Fi connections, pass the object path of a specific AP from the card's scan list, or "/" to pick an AP automatically. For VPN connections, pass the object path of an ActiveConnection object that should serve as the "base" connection (to which the VPN connections lifetime will be tied), or pass "/" and NM will automatically use the current default device.
|
||||
@active_connection: The path of the active connection object representing this active connection.
|
||||
|
||||
Activate a connection using the supplied device.
|
||||
-->
|
||||
<method name="ActivateConnection">
|
||||
<arg name="connection" type="o" direction="in"/>
|
||||
<arg name="device" type="o" direction="in"/>
|
||||
<arg name="specific_object" type="o" direction="in"/>
|
||||
<arg name="active_connection" type="o" direction="out"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
AddAndActivateConnection:
|
||||
@connection: Connection settings and properties; if incomplete missing settings will be automatically completed using the given device and specific object.
|
||||
@device: The object path of device to be activated using the given connection.
|
||||
@specific_object: The path of a connection-type-specific object this activation should use. This parameter is currently ignored for wired and mobile broadband connections, and the value of "/" should be used (ie, no specific object). For Wi-Fi connections, pass the object path of a specific AP from the card's scan list, which will be used to complete the details of the newly added connection.
|
||||
@path: Object path of the new connection that was just added.
|
||||
@active_connection: The path of the active connection object representing this active connection.
|
||||
|
||||
Adds a new connection using the given details (if any) as a template
|
||||
(automatically filling in missing settings with the capabilities of the
|
||||
given device and specific object), then activate the new connection.
|
||||
Cannot be used for VPN connections at this time.
|
||||
|
||||
See also AddAndActivateConnection2.
|
||||
-->
|
||||
<method name="AddAndActivateConnection">
|
||||
<arg name="connection" type="a{sa{sv}}" direction="in"/>
|
||||
<arg name="device" type="o" direction="in"/>
|
||||
<arg name="specific_object" type="o" direction="in"/>
|
||||
<arg name="path" type="o" direction="out"/>
|
||||
<arg name="active_connection" type="o" direction="out"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
AddAndActivateConnection2:
|
||||
@connection: Connection settings and properties; if incomplete missing settings will be automatically completed using the given device and specific object.
|
||||
@device: The object path of device to be activated using the given connection.
|
||||
@specific_object: The path of a connection-type-specific object this activation should use. This parameter is currently ignored for wired and mobile broadband connections, and the value of "/" should be used (ie, no specific object). For Wi-Fi connections, pass the object path of a specific AP from the card's scan list, which will be used to complete the details of the newly added connection.
|
||||
@options: Further options for the method call.
|
||||
@path: Object path of the new connection that was just added.
|
||||
@active_connection: The path of the active connection object representing this active connection.
|
||||
@result: A dictionary of additional output arguments for future extension. Currently, not additional output arguments are supported.
|
||||
|
||||
Adds a new connection using the given details (if any) as a template
|
||||
(automatically filling in missing settings with the capabilities of the
|
||||
given device and specific object), then activate the new connection.
|
||||
Cannot be used for VPN connections at this time.
|
||||
|
||||
This method extends AddAndActivateConnection to allow passing further
|
||||
parameters. At this time the following options are supported:
|
||||
|
||||
* persist: A string value of either "disk" (default), "memory" or "volatile". If "memory" is passed, the connection will not be saved to disk. If "volatile" is passed, the connection will not be saved to disk and will be destroyed when disconnected.
|
||||
* bind-activation: Bind the activation lifetime. Set to "dbus-client" to automatically disconnect when the requesting process disappears from the bus. The default of "none" means the connection is kept activated normally.
|
||||
-->
|
||||
<method name="AddAndActivateConnection2">
|
||||
<arg name="connection" type="a{sa{sv}}" direction="in"/>
|
||||
<arg name="device" type="o" direction="in"/>
|
||||
<arg name="specific_object" type="o" direction="in"/>
|
||||
<arg name="options" type="a{sv}" direction="in"/>
|
||||
<arg name="path" type="o" direction="out"/>
|
||||
<arg name="active_connection" type="o" direction="out"/>
|
||||
<arg name="result" type="a{sv}" direction="out"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
DeactivateConnection:
|
||||
@active_connection: The currently active connection to deactivate.
|
||||
|
||||
Deactivate an active connection.
|
||||
-->
|
||||
<method name="DeactivateConnection">
|
||||
<arg name="active_connection" type="o" direction="in"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
Sleep:
|
||||
@sleep: Indicates whether the NetworkManager daemon should sleep or wake.
|
||||
|
||||
Control the NetworkManager daemon's sleep state. When asleep, all
|
||||
interfaces that it manages are deactivated. When awake, devices are
|
||||
available to be activated. This command should not be called directly by
|
||||
users or clients; it is intended for system suspend/resume tracking.
|
||||
-->
|
||||
<method name="Sleep">
|
||||
<arg name="sleep" type="b" direction="in"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
Enable:
|
||||
@enable: If FALSE, indicates that all networking should be disabled. If TRUE, indicates that NetworkManager should begin managing network devices.
|
||||
|
||||
Control whether overall networking is enabled or disabled. When disabled,
|
||||
all interfaces that NM manages are deactivated. When enabled, all managed
|
||||
interfaces are re-enabled and available to be activated. This command
|
||||
should be used by clients that provide to users the ability to
|
||||
enable/disable all networking.
|
||||
-->
|
||||
<method name="Enable">
|
||||
<arg name="enable" type="b" direction="in"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
GetPermissions:
|
||||
@permissions: Dictionary of available permissions and results. Each permission is represented by a name (ie "org.freedesktop.NetworkManager.Foobar") and each result is one of the following values: "yes" (the permission is available), "auth" (the permission is available after a successful authentication), or "no" (the permission is denied). Clients may use these values in the UI to indicate the ability to perform certain operations.
|
||||
|
||||
Returns the permissions a caller has for various authenticated operations
|
||||
that NetworkManager provides, like Enable/Disable networking, changing
|
||||
Wi-Fi, WWAN, and WiMAX state, etc.
|
||||
-->
|
||||
<method name="GetPermissions">
|
||||
<arg name="permissions" type="a{ss}" direction="out"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
CheckPermissions:
|
||||
|
||||
Emitted when system authorization details change, indicating that clients
|
||||
may wish to recheck permissions with GetPermissions.
|
||||
-->
|
||||
<signal name="CheckPermissions"/>
|
||||
|
||||
<!--
|
||||
SetLogging:
|
||||
@level: One of [ERR, WARN, INFO, DEBUG, TRACE, OFF, KEEP]. This level is applied to the domains as specified in the domains argument. Except for the special level "KEEP", all unmentioned domains are disabled entirely. "KEEP" is special and allows not to change the current setting except for the specified domains. E.g. level=KEEP and domains=PLATFORM:DEBUG will only touch the platform domain.
|
||||
@domains: A combination of logging domains separated by commas (','), or "NONE" to disable logging. Each domain enables logging for operations related to that domain. Available domains are: [PLATFORM, RFKILL, ETHER, WIFI, BT, MB, DHCP4, DHCP6, PPP, WIFI_SCAN, IP4, IP6, AUTOIP4, DNS, VPN, SHARING, SUPPLICANT, AGENTS, SETTINGS, SUSPEND, CORE, DEVICE, OLPC, WIMAX, INFINIBAND, FIREWALL, ADSL, BOND, VLAN, BRIDGE, DBUS_PROPS, TEAM, CONCHECK, DCB, DISPATCH, AUDIT]. In addition to these domains, the following special domains can be used: [NONE, ALL, DEFAULT, DHCP, IP]. You can also specify that some domains should log at a different level from the default by appending a colon (':') and a log level (eg, 'WIFI:DEBUG'). If an empty string is given, the log level is changed but the current set of log domains remains unchanged.
|
||||
|
||||
Set logging verbosity and which operations are logged.
|
||||
-->
|
||||
<method name="SetLogging">
|
||||
<arg name="level" type="s" direction="in"/>
|
||||
<arg name="domains" type="s" direction="in"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
GetLogging:
|
||||
@level: One of [ERR, WARN, INFO, DEBUG, TRACE].
|
||||
@domains: For available domains see SetLogging() call.
|
||||
|
||||
Get current logging verbosity level and operations domains.
|
||||
-->
|
||||
<method name="GetLogging">
|
||||
<arg name="level" type="s" direction="out"/>
|
||||
<arg name="domains" type="s" direction="out"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
CheckConnectivity:
|
||||
@connectivity: (<link linkend="NMConnectivityState">NMConnectivityState</link>) The current connectivity state.
|
||||
|
||||
Re-check the network connectivity state.
|
||||
-->
|
||||
<method name="CheckConnectivity">
|
||||
<arg name="connectivity" type="u" direction="out"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
state:
|
||||
@state: <link linkend="NMState">NMState</link>
|
||||
|
||||
The overall networking state as determined by the NetworkManager daemon,
|
||||
based on the state of network devices under its management.
|
||||
-->
|
||||
<method name="state">
|
||||
<arg name="state" type="u" direction="out"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
CheckpointCreate:
|
||||
@devices: A list of device paths for which a checkpoint should be created. An empty list means all devices.
|
||||
@rollback_timeout: The time in seconds until NetworkManager will automatically rollback to the checkpoint. Set to zero for infinite.
|
||||
@flags: (<link linkend="NMCheckpointCreateFlags">NMCheckpointCreateFlags</link>) Flags for the creation.
|
||||
@checkpoint: On success, the path of the new checkpoint.
|
||||
|
||||
Create a checkpoint of the current networking configuration
|
||||
for given interfaces. If @rollback_timeout is not zero, a
|
||||
rollback is automatically performed after the given timeout.
|
||||
-->
|
||||
<method name="CheckpointCreate">
|
||||
<arg name="devices" type="ao" direction="in"/>
|
||||
<arg name="rollback_timeout" type="u" direction="in"/>
|
||||
<arg name="flags" type="u" direction="in"/>
|
||||
<arg name="checkpoint" type="o" direction="out"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
CheckpointDestroy:
|
||||
@checkpoint: The checkpoint to be destroyed. Set to empty to cancel all pending checkpoints.
|
||||
|
||||
Destroy a previously created checkpoint.
|
||||
-->
|
||||
<method name="CheckpointDestroy">
|
||||
<arg name="checkpoint" type="o" direction="in"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
CheckpointRollback:
|
||||
@checkpoint: The checkpoint to be rolled back.
|
||||
@result: On return, a dictionary of devices and results. Devices are represented by their original D-Bus path; each result is a <link linkend="NMRollbackResult">RollbackResult</link>.
|
||||
|
||||
Rollback a checkpoint before the timeout is reached.
|
||||
-->
|
||||
<method name="CheckpointRollback">
|
||||
<arg name="checkpoint" type="o" direction="in"/>
|
||||
<arg name="result" type="a{su}" direction="out" />
|
||||
</method>
|
||||
|
||||
<!--
|
||||
CheckpointAdjustRollbackTimeout:
|
||||
@checkpoint: The checkpoint to be rolled back.
|
||||
@add_timeout: Number of seconds from <emphasis>now</emphasis> in which the timeout will expire. Set to 0 to disable the timeout.
|
||||
@since: 1.12
|
||||
|
||||
Reset the timeout for rollback for the checkpoint.
|
||||
|
||||
Note that the added seconds start counting from now,
|
||||
not "Created" timestamp or the previous expiration
|
||||
time. Note that the "Created" property of the checkpoint
|
||||
will stay unchanged by this call. However, the "RollbackTimeout"
|
||||
will be recalculated to give the approximate new expiration time.
|
||||
The new "RollbackTimeout" property will be approximate up to
|
||||
one second precision, which is the accuracy of the property.
|
||||
-->
|
||||
<method name="CheckpointAdjustRollbackTimeout">
|
||||
<arg name="checkpoint" type="o" direction="in"/>
|
||||
<arg name="add_timeout" type="u" direction="in"/>
|
||||
</method>
|
||||
|
||||
<!--
|
||||
Devices:
|
||||
|
||||
The list of realized network devices. Realized devices are those which
|
||||
have backing resources (eg from the kernel or a management daemon like
|
||||
ModemManager, teamd, etc).
|
||||
-->
|
||||
<property name="Devices" type="ao" access="read"/>
|
||||
|
||||
<!--
|
||||
AllDevices:
|
||||
|
||||
The list of both realized and un-realized network devices. Un-realized
|
||||
devices are software devices which do not yet have backing resources, but
|
||||
for which backing resources can be created if the device is activated.
|
||||
-->
|
||||
<property name="AllDevices" type="ao" access="read"/>
|
||||
|
||||
<!--
|
||||
Checkpoints:
|
||||
|
||||
The list of active checkpoints.
|
||||
-->
|
||||
<property name="Checkpoints" type="ao" access="read"/>
|
||||
|
||||
<!--
|
||||
NetworkingEnabled:
|
||||
|
||||
Indicates if overall networking is currently enabled or not. See the
|
||||
Enable() method.
|
||||
-->
|
||||
<property name="NetworkingEnabled" type="b" access="read"/>
|
||||
|
||||
<!--
|
||||
WirelessEnabled:
|
||||
|
||||
Indicates if wireless is currently enabled or not.
|
||||
-->
|
||||
<property name="WirelessEnabled" type="b" access="readwrite"/>
|
||||
|
||||
<!--
|
||||
WirelessHardwareEnabled:
|
||||
|
||||
Indicates if the wireless hardware is currently enabled, i.e. the state of
|
||||
the RF kill switch.
|
||||
-->
|
||||
<property name="WirelessHardwareEnabled" type="b" access="read"/>
|
||||
|
||||
<!--
|
||||
WwanEnabled:
|
||||
|
||||
Indicates if mobile broadband devices are currently enabled or not.
|
||||
-->
|
||||
<property name="WwanEnabled" type="b" access="readwrite"/>
|
||||
|
||||
<!--
|
||||
WwanHardwareEnabled:
|
||||
|
||||
Indicates if the mobile broadband hardware is currently enabled, i.e. the
|
||||
state of the RF kill switch.
|
||||
-->
|
||||
<property name="WwanHardwareEnabled" type="b" access="read"/>
|
||||
|
||||
<!--
|
||||
WimaxEnabled:
|
||||
|
||||
DEPRECATED. Doesn't have any meaning and is around only for
|
||||
compatibility reasons.
|
||||
-->
|
||||
<property name="WimaxEnabled" type="b" access="readwrite"/>
|
||||
|
||||
<!--
|
||||
WimaxHardwareEnabled:
|
||||
|
||||
DEPRECATED. Doesn't have any meaning and is around only for
|
||||
compatibility reasons.
|
||||
-->
|
||||
<property name="WimaxHardwareEnabled" type="b" access="read"/>
|
||||
|
||||
<!--
|
||||
RadioFlags:
|
||||
@since: 1.38
|
||||
|
||||
Flags related to radio devices. See <link
|
||||
linkend="NMRadioFlags">NMRadioFlags</link> for the list of flags
|
||||
supported.
|
||||
-->
|
||||
<property name="RadioFlags" type="u" access="read"/>
|
||||
|
||||
<!--
|
||||
ActiveConnections:
|
||||
|
||||
List of active connection object paths.
|
||||
-->
|
||||
<property name="ActiveConnections" type="ao" access="read"/>
|
||||
|
||||
<!--
|
||||
PrimaryConnection:
|
||||
|
||||
The object path of the "primary" active connection being used to access
|
||||
the network. In particular, if there is no VPN active, or the VPN does not
|
||||
have the default route, then this indicates the connection that has the
|
||||
default route. If there is a VPN active with the default route, then this
|
||||
indicates the connection that contains the route to the VPN endpoint.
|
||||
-->
|
||||
<property name="PrimaryConnection" type="o" access="read"/>
|
||||
|
||||
<!--
|
||||
PrimaryConnectionType:
|
||||
|
||||
The connection type of the "primary" active connection being used to
|
||||
access the network. This is the same as the Type property on the object
|
||||
indicated by PrimaryConnection.
|
||||
-->
|
||||
<property name="PrimaryConnectionType" type="s" access="read"/>
|
||||
|
||||
<!--
|
||||
Metered:
|
||||
|
||||
Indicates whether the connectivity is metered. This is equivalent to the
|
||||
metered property of the device associated with the primary connection.
|
||||
|
||||
Returns: <link linkend="NMMetered">NMMetered</link>
|
||||
-->
|
||||
<property name="Metered" type="u" access="read"/>
|
||||
|
||||
<!--
|
||||
ActivatingConnection:
|
||||
|
||||
The object path of an active connection that is currently being activated
|
||||
and which is expected to become the new PrimaryConnection when it finishes
|
||||
activating.
|
||||
-->
|
||||
<property name="ActivatingConnection" type="o" access="read"/>
|
||||
|
||||
<!--
|
||||
Startup:
|
||||
|
||||
Indicates whether NM is still starting up; this becomes FALSE when NM has
|
||||
finished attempting to activate every connection that it might be able to
|
||||
activate at startup.
|
||||
-->
|
||||
<property name="Startup" type="b" access="read"/>
|
||||
|
||||
<!--
|
||||
Version:
|
||||
|
||||
NetworkManager version.
|
||||
-->
|
||||
<property name="Version" type="s" access="read"/>
|
||||
|
||||
<!--
|
||||
VersionInfo:
|
||||
|
||||
NetworkManager version and capabilities.
|
||||
|
||||
The first element in the array is the NM_VERSION of the daemon. It is a binary representation
|
||||
of the "Version" and can be compared numerically. The version is encoded as
|
||||
"(major << 16 | minor << 8 | micro)".
|
||||
|
||||
The following elements are a bitfield of static capabilities of the daemon. See
|
||||
#NMVersionInfoCapability for the available capability numbers.
|
||||
|
||||
Since: 1.42
|
||||
-->
|
||||
<property name="VersionInfo" type="au" access="read"/>
|
||||
|
||||
<!--
|
||||
Capabilities:
|
||||
|
||||
The current set of capabilities. See <link
|
||||
linkend="NMCapability">NMCapability</link> for currently
|
||||
defined capability numbers. The array is guaranteed to
|
||||
be sorted in ascending order without duplicates.
|
||||
-->
|
||||
<property name="Capabilities" type="au" access="read"/>
|
||||
|
||||
<!--
|
||||
State:
|
||||
|
||||
The overall state of the NetworkManager daemon.
|
||||
|
||||
This takes state of all active connections and the connectivity state into account
|
||||
to produce a single indicator of the network accessibility status.
|
||||
|
||||
The graphical shells may use this property to provide network connection status
|
||||
indication and applications may use this to check if Internet connection is
|
||||
accessible. Shell that is able to cope with captive portals should use the
|
||||
"Connectivity" property to decide whether to present a captive portal authentication
|
||||
dialog.
|
||||
|
||||
Returns: <link linkend="NMState">NMState</link>
|
||||
-->
|
||||
<property name="State" type="u" access="read"/>
|
||||
|
||||
<!--
|
||||
StateChanged:
|
||||
@state: (<link linkend="NMState">NMState</link>) The new state of NetworkManager.
|
||||
|
||||
NetworkManager's state changed.
|
||||
-->
|
||||
<signal name="StateChanged">
|
||||
<arg name="state" type="u"/>
|
||||
</signal>
|
||||
|
||||
<!--
|
||||
Connectivity:
|
||||
|
||||
The result of the last connectivity check. The connectivity check is triggered
|
||||
automatically when a default connection becomes available, periodically and by
|
||||
calling a CheckConnectivity() method.
|
||||
|
||||
This property is in general useful for the graphical shell to determine whether
|
||||
the Internet access is being hijacked by an authentication gateway (a "captive
|
||||
portal"). In such case it would typically present a web browser window to give
|
||||
the user a chance to authenticate and call CheckConnectivity() when the user
|
||||
submits a form or dismisses the window.
|
||||
|
||||
To determine the whether the user is able to access the Internet without dealing
|
||||
with captive portals (e.g. to provide a network connection indicator or disable
|
||||
controls that require Internet access), the "State" property is more suitable.
|
||||
|
||||
Returns: <link linkend="NMConnectivityState">NMConnectivityState</link>
|
||||
-->
|
||||
<property name="Connectivity" type="u" access="read"/>
|
||||
|
||||
<!--
|
||||
ConnectivityCheckAvailable:
|
||||
|
||||
Indicates whether connectivity checking service has been
|
||||
configured. This may return true even if the service is not
|
||||
currently enabled.
|
||||
|
||||
This is primarily intended for use in a privacy control panel,
|
||||
as a way to determine whether to show an option to
|
||||
enable/disable the feature.
|
||||
-->
|
||||
<property name="ConnectivityCheckAvailable" type="b" access="read"/>
|
||||
|
||||
<!--
|
||||
ConnectivityCheckEnabled:
|
||||
|
||||
Indicates whether connectivity checking is enabled. This
|
||||
property can also be written to disable connectivity
|
||||
checking (as a privacy control panel might want to do).
|
||||
-->
|
||||
<property name="ConnectivityCheckEnabled" type="b" access="readwrite"/>
|
||||
|
||||
<!--
|
||||
ConnectivityCheckUri:
|
||||
|
||||
The URI that NetworkManager will hit to check if there is internet connectivity.
|
||||
-->
|
||||
<property name="ConnectivityCheckUri" type="s" access="read"/>
|
||||
|
||||
<!--
|
||||
GlobalDnsConfiguration:
|
||||
|
||||
Dictionary of global DNS settings where the key is one of "searches",
|
||||
"options" and "domains". The values for the "searches" and "options" keys
|
||||
are string arrays describing the list of search domains and resolver
|
||||
options, respectively. The value of the "domains" key is a second-level
|
||||
dictionary, where each key is a domain name, and each key's value is a
|
||||
third-level dictionary with the keys "servers" and "options". "servers" is
|
||||
a string array of DNS servers, "options" is a string array of
|
||||
domain-specific options.
|
||||
-->
|
||||
<property name="GlobalDnsConfiguration" type="a{sv}" access="readwrite"/>
|
||||
|
||||
<!--
|
||||
DeviceAdded:
|
||||
@device_path: The object path of the newly added device.
|
||||
|
||||
A device was added to the system
|
||||
-->
|
||||
<signal name="DeviceAdded">
|
||||
<arg name="device_path" type="o"/>
|
||||
</signal>
|
||||
|
||||
<!--
|
||||
DeviceRemoved:
|
||||
@device_path: The object path of the device that was just removed.
|
||||
|
||||
A device was removed from the system, and is no longer available.
|
||||
-->
|
||||
<signal name="DeviceRemoved">
|
||||
<arg name="device_path" type="o"/>
|
||||
</signal>
|
||||
|
||||
</interface>
|
||||
</node>
|
||||
Reference in New Issue
Block a user