1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234
|
// Code generated by "./generator ./org.freedesktop.hostname1"; DO NOT EDIT.
package hostname1
import (
"unsafe"
"github.com/godbus/dbus"
"pkg.deepin.io/lib/dbusutil/proxy"
)
type Hostname struct {
hostname // interface org.freedesktop.hostname1
proxy.Object
}
func NewHostname(conn *dbus.Conn) *Hostname {
obj := new(Hostname)
obj.Object.Init_(conn, "org.freedesktop.hostname1", "/org/freedesktop/hostname1")
return obj
}
type hostname struct{}
func (v *hostname) GetObject_() *proxy.Object {
return (*proxy.Object)(unsafe.Pointer(v))
}
func (*hostname) GetInterfaceName_() string {
return "org.freedesktop.hostname1"
}
// method SetHostname
func (v *hostname) GoSetHostname(flags dbus.Flags, ch chan *dbus.Call, arg0 string, arg1 bool) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".SetHostname", flags, ch, arg0, arg1)
}
func (v *hostname) SetHostname(flags dbus.Flags, arg0 string, arg1 bool) error {
return (<-v.GoSetHostname(flags, make(chan *dbus.Call, 1), arg0, arg1).Done).Err
}
// method SetStaticHostname
func (v *hostname) GoSetStaticHostname(flags dbus.Flags, ch chan *dbus.Call, arg0 string, arg1 bool) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".SetStaticHostname", flags, ch, arg0, arg1)
}
func (v *hostname) SetStaticHostname(flags dbus.Flags, arg0 string, arg1 bool) error {
return (<-v.GoSetStaticHostname(flags, make(chan *dbus.Call, 1), arg0, arg1).Done).Err
}
// method SetPrettyHostname
func (v *hostname) GoSetPrettyHostname(flags dbus.Flags, ch chan *dbus.Call, arg0 string, arg1 bool) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".SetPrettyHostname", flags, ch, arg0, arg1)
}
func (v *hostname) SetPrettyHostname(flags dbus.Flags, arg0 string, arg1 bool) error {
return (<-v.GoSetPrettyHostname(flags, make(chan *dbus.Call, 1), arg0, arg1).Done).Err
}
// method SetIconName
func (v *hostname) GoSetIconName(flags dbus.Flags, ch chan *dbus.Call, arg0 string, arg1 bool) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".SetIconName", flags, ch, arg0, arg1)
}
func (v *hostname) SetIconName(flags dbus.Flags, arg0 string, arg1 bool) error {
return (<-v.GoSetIconName(flags, make(chan *dbus.Call, 1), arg0, arg1).Done).Err
}
// method SetChassis
func (v *hostname) GoSetChassis(flags dbus.Flags, ch chan *dbus.Call, arg0 string, arg1 bool) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".SetChassis", flags, ch, arg0, arg1)
}
func (v *hostname) SetChassis(flags dbus.Flags, arg0 string, arg1 bool) error {
return (<-v.GoSetChassis(flags, make(chan *dbus.Call, 1), arg0, arg1).Done).Err
}
// method SetDeployment
func (v *hostname) GoSetDeployment(flags dbus.Flags, ch chan *dbus.Call, arg0 string, arg1 bool) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".SetDeployment", flags, ch, arg0, arg1)
}
func (v *hostname) SetDeployment(flags dbus.Flags, arg0 string, arg1 bool) error {
return (<-v.GoSetDeployment(flags, make(chan *dbus.Call, 1), arg0, arg1).Done).Err
}
// method SetLocation
func (v *hostname) GoSetLocation(flags dbus.Flags, ch chan *dbus.Call, arg0 string, arg1 bool) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".SetLocation", flags, ch, arg0, arg1)
}
func (v *hostname) SetLocation(flags dbus.Flags, arg0 string, arg1 bool) error {
return (<-v.GoSetLocation(flags, make(chan *dbus.Call, 1), arg0, arg1).Done).Err
}
// method GetProductUUID
func (v *hostname) GoGetProductUUID(flags dbus.Flags, ch chan *dbus.Call, arg0 bool) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".GetProductUUID", flags, ch, arg0)
}
func (*hostname) StoreGetProductUUID(call *dbus.Call) (arg1 []uint8, err error) {
err = call.Store(&arg1)
return
}
func (v *hostname) GetProductUUID(flags dbus.Flags, arg0 bool) (arg1 []uint8, err error) {
return v.StoreGetProductUUID(
<-v.GoGetProductUUID(flags, make(chan *dbus.Call, 1), arg0).Done)
}
// property Hostname s
func (v *hostname) Hostname() proxy.PropString {
return proxy.PropString{
Impl: v,
Name: "Hostname",
}
}
// property StaticHostname s
func (v *hostname) StaticHostname() proxy.PropString {
return proxy.PropString{
Impl: v,
Name: "StaticHostname",
}
}
// property PrettyHostname s
func (v *hostname) PrettyHostname() proxy.PropString {
return proxy.PropString{
Impl: v,
Name: "PrettyHostname",
}
}
// property IconName s
func (v *hostname) IconName() proxy.PropString {
return proxy.PropString{
Impl: v,
Name: "IconName",
}
}
// property Chassis s
func (v *hostname) Chassis() proxy.PropString {
return proxy.PropString{
Impl: v,
Name: "Chassis",
}
}
// property Deployment s
func (v *hostname) Deployment() proxy.PropString {
return proxy.PropString{
Impl: v,
Name: "Deployment",
}
}
// property Location s
func (v *hostname) Location() proxy.PropString {
return proxy.PropString{
Impl: v,
Name: "Location",
}
}
// property KernelName s
func (v *hostname) KernelName() proxy.PropString {
return proxy.PropString{
Impl: v,
Name: "KernelName",
}
}
// property KernelRelease s
func (v *hostname) KernelRelease() proxy.PropString {
return proxy.PropString{
Impl: v,
Name: "KernelRelease",
}
}
// property KernelVersion s
func (v *hostname) KernelVersion() proxy.PropString {
return proxy.PropString{
Impl: v,
Name: "KernelVersion",
}
}
// property OperatingSystemPrettyName s
func (v *hostname) OperatingSystemPrettyName() proxy.PropString {
return proxy.PropString{
Impl: v,
Name: "OperatingSystemPrettyName",
}
}
// property OperatingSystemCPEName s
func (v *hostname) OperatingSystemCPEName() proxy.PropString {
return proxy.PropString{
Impl: v,
Name: "OperatingSystemCPEName",
}
}
// property HomeURL s
func (v *hostname) HomeURL() proxy.PropString {
return proxy.PropString{
Impl: v,
Name: "HomeURL",
}
}
|