Table of Contents

Class DBusProxy

Namespace
Gio
Assembly
Gio-2.0.dll
public class DBusProxy : Object, IObject, INotifyPropertyChanged, IDisposable, AsyncInitable, DBusInterface, Initable, IHandle, GTypeProvider
Inheritance
DBusProxy
Implements
Inherited Members

Constructors

DBusProxy(bool, params ConstructArgument[])

protected DBusProxy(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

DBusProxy(IntPtr, bool)

protected DBusProxy(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

GConnectionPropertyDefinition

public static readonly Property<DBusConnection?, DBusProxy> GConnectionPropertyDefinition

Field Value

Property<DBusConnection, DBusProxy>

GDefaultTimeoutPropertyDefinition

public static readonly Property<int, DBusProxy> GDefaultTimeoutPropertyDefinition

Field Value

Property<int, DBusProxy>

GFlagsPropertyDefinition

public static readonly Property<DBusProxyFlags, DBusProxy> GFlagsPropertyDefinition

Field Value

Property<DBusProxyFlags, DBusProxy>

GInterfaceInfoPropertyDefinition

public static readonly Property<DBusInterfaceInfo, DBusProxy> GInterfaceInfoPropertyDefinition

Field Value

Property<DBusInterfaceInfo, DBusProxy>

GInterfaceNamePropertyDefinition

public static readonly Property<string?, DBusProxy> GInterfaceNamePropertyDefinition

Field Value

Property<string, DBusProxy>

GNameOwnerPropertyDefinition

public static readonly Property<string?, DBusProxy> GNameOwnerPropertyDefinition

Field Value

Property<string, DBusProxy>

GNamePropertyDefinition

public static readonly Property<string?, DBusProxy> GNamePropertyDefinition

Field Value

Property<string, DBusProxy>

GObjectPathPropertyDefinition

public static readonly Property<string?, DBusProxy> GObjectPathPropertyDefinition

Field Value

Property<string, DBusProxy>

GPropertiesChangedSignal

Signal Descriptor for OnGPropertiesChanged.

public static readonly Signal<DBusProxy, DBusProxy.GPropertiesChangedSignalArgs> GPropertiesChangedSignal

Field Value

Signal<DBusProxy, DBusProxy.GPropertiesChangedSignalArgs>

GSignalSignal

Signal Descriptor for OnGSignal.

public static readonly Signal<DBusProxy, DBusProxy.GSignalSignalArgs> GSignalSignal

Field Value

Signal<DBusProxy, DBusProxy.GSignalSignalArgs>

Properties

GConnection

public DBusConnection? GConnection { get; }

Property Value

DBusConnection

GDefaultTimeout

public int GDefaultTimeout { get; set; }

Property Value

int

GFlags

public DBusProxyFlags GFlags { get; }

Property Value

DBusProxyFlags

GInterfaceInfo

public DBusInterfaceInfo GInterfaceInfo { get; set; }

Property Value

DBusInterfaceInfo

GInterfaceName

public string? GInterfaceName { get; }

Property Value

string

GName

public string? GName { get; }

Property Value

string

GNameOwner

public string? GNameOwner { get; }

Property Value

string

GObjectPath

public string? GObjectPath { get; }

Property Value

string

Methods

CallFinish(AsyncResult)

[Version("2.26")]
public Variant CallFinish(AsyncResult res)

Parameters

res AsyncResult

Returns

Variant

CallSync(string, Variant?, DBusCallFlags, int, Cancellable?)

[Version("2.26")]
public Variant CallSync(string methodName, Variant? parameters, DBusCallFlags flags, int timeoutMsec, Cancellable? cancellable)

Parameters

methodName string
parameters Variant
flags DBusCallFlags
timeoutMsec int
cancellable Cancellable

Returns

Variant

DupObject()

[Version("2.32")]
public DBusObject? DupObject()

Returns

DBusObject

GetCachedProperty(string)

[Version("2.26")]
public Variant? GetCachedProperty(string propertyName)

Parameters

propertyName string

Returns

Variant

GetCachedPropertyNames()

[Version("2.26")]
public string[]? GetCachedPropertyNames()

Returns

string[]

GetConnection()

[Version("2.26")]
public DBusConnection GetConnection()

Returns

DBusConnection

GetDefaultTimeout()

[Version("2.26")]
public int GetDefaultTimeout()

Returns

int

GetFlags()

[Version("2.26")]
public DBusProxyFlags GetFlags()

Returns

DBusProxyFlags

GetGType()

public static Type GetGType()

Returns

Type

GetInterfaceInfo()

[Version("2.26")]
public DBusInterfaceInfo? GetInterfaceInfo()

Returns

DBusInterfaceInfo

GetInterfaceName()

[Version("2.26")]
public string GetInterfaceName()

Returns

string

GetName()

[Version("2.26")]
public string? GetName()

Returns

string

GetNameOwner()

[Version("2.26")]
public string? GetNameOwner()

Returns

string

GetObject()

[Version("2.30")]
public DBusObject? GetObject()

Returns

DBusObject

GetObjectPath()

[Version("2.26")]
public string GetObjectPath()

Returns

string

Init(Cancellable?)

[Version("2.22")]
public bool Init(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

bool

InitFinish(AsyncResult)

[Version("2.22")]
public bool InitFinish(AsyncResult res)

Parameters

res AsyncResult

Returns

bool

NewFinish(AsyncResult)

[Version("2.26")]
public static DBusProxy NewFinish(AsyncResult res)

Parameters

res AsyncResult

Returns

DBusProxy

NewForBusFinish(AsyncResult)

[Version("2.26")]
public static DBusProxy NewForBusFinish(AsyncResult res)

Parameters

res AsyncResult

Returns

DBusProxy

NewForBusSync(BusType, DBusProxyFlags, DBusInterfaceInfo?, string, string, string, Cancellable?)

[Version("2.26")]
public static DBusProxy NewForBusSync(BusType busType, DBusProxyFlags flags, DBusInterfaceInfo? info, string name, string objectPath, string interfaceName, Cancellable? cancellable)

Parameters

busType BusType
flags DBusProxyFlags
info DBusInterfaceInfo
name string
objectPath string
interfaceName string
cancellable Cancellable

Returns

DBusProxy

NewSync(DBusConnection, DBusProxyFlags, DBusInterfaceInfo?, string?, string, string, Cancellable?)

[Version("2.26")]
public static DBusProxy NewSync(DBusConnection connection, DBusProxyFlags flags, DBusInterfaceInfo? info, string? name, string objectPath, string interfaceName, Cancellable? cancellable)

Parameters

connection DBusConnection
flags DBusProxyFlags
info DBusInterfaceInfo
name string
objectPath string
interfaceName string
cancellable Cancellable

Returns

DBusProxy

SetCachedProperty(string, Variant?)

[Version("2.26")]
public void SetCachedProperty(string propertyName, Variant? value)

Parameters

propertyName string
value Variant

SetDefaultTimeout(int)

[Version("2.26")]
public void SetDefaultTimeout(int timeoutMsec)

Parameters

timeoutMsec int

SetInterfaceInfo(DBusInterfaceInfo?)

[Version("2.26")]
public void SetInterfaceInfo(DBusInterfaceInfo? info)

Parameters

info DBusInterfaceInfo

SetObject(DBusObject?)

[Version("2.30")]
public void SetObject(DBusObject? @object)

Parameters

object DBusObject

Events

OnGPropertiesChanged

public event SignalHandler<DBusProxy, DBusProxy.GPropertiesChangedSignalArgs> OnGPropertiesChanged

Event Type

SignalHandler<DBusProxy, DBusProxy.GPropertiesChangedSignalArgs>

OnGSignal

public event SignalHandler<DBusProxy, DBusProxy.GSignalSignalArgs> OnGSignal

Event Type

SignalHandler<DBusProxy, DBusProxy.GSignalSignalArgs>