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
boolconstructArguments
ConstructArgument[]
DBusProxy(IntPtr, bool)
protected DBusProxy(IntPtr ptr, bool ownedRef)
Parameters
Fields
GConnectionPropertyDefinition
public static readonly Property<DBusConnection?, DBusProxy> GConnectionPropertyDefinition
Field Value
GDefaultTimeoutPropertyDefinition
public static readonly Property<int, DBusProxy> GDefaultTimeoutPropertyDefinition
Field Value
GFlagsPropertyDefinition
public static readonly Property<DBusProxyFlags, DBusProxy> GFlagsPropertyDefinition
Field Value
GInterfaceInfoPropertyDefinition
public static readonly Property<DBusInterfaceInfo, DBusProxy> GInterfaceInfoPropertyDefinition
Field Value
GInterfaceNamePropertyDefinition
public static readonly Property<string?, DBusProxy> GInterfaceNamePropertyDefinition
Field Value
GNameOwnerPropertyDefinition
public static readonly Property<string?, DBusProxy> GNameOwnerPropertyDefinition
Field Value
GNamePropertyDefinition
public static readonly Property<string?, DBusProxy> GNamePropertyDefinition
Field Value
GObjectPathPropertyDefinition
public static readonly Property<string?, DBusProxy> GObjectPathPropertyDefinition
Field Value
GPropertiesChangedSignal
Signal Descriptor for OnGPropertiesChanged.
public static readonly Signal<DBusProxy, DBusProxy.GPropertiesChangedSignalArgs> GPropertiesChangedSignal
Field Value
GSignalSignal
Signal Descriptor for OnGSignal.
public static readonly Signal<DBusProxy, DBusProxy.GSignalSignalArgs> GSignalSignal
Field Value
Properties
GConnection
public DBusConnection? GConnection { get; }
Property Value
GDefaultTimeout
public int GDefaultTimeout { get; set; }
Property Value
GFlags
public DBusProxyFlags GFlags { get; }
Property Value
GInterfaceInfo
public DBusInterfaceInfo GInterfaceInfo { get; set; }
Property Value
GInterfaceName
public string? GInterfaceName { get; }
Property Value
GName
public string? GName { get; }
Property Value
GNameOwner
public string? GNameOwner { get; }
Property Value
GObjectPath
public string? GObjectPath { get; }
Property Value
Methods
CallFinish(AsyncResult)
[Version("2.26")]
public Variant CallFinish(AsyncResult res)
Parameters
res
AsyncResult
Returns
CallSync(string, Variant?, DBusCallFlags, int, Cancellable?)
[Version("2.26")]
public Variant CallSync(string methodName, Variant? parameters, DBusCallFlags flags, int timeoutMsec, Cancellable? cancellable)
Parameters
methodName
stringparameters
Variantflags
DBusCallFlagstimeoutMsec
intcancellable
Cancellable
Returns
DupObject()
[Version("2.32")]
public DBusObject? DupObject()
Returns
GetCachedProperty(string)
[Version("2.26")]
public Variant? GetCachedProperty(string propertyName)
Parameters
propertyName
string
Returns
GetCachedPropertyNames()
[Version("2.26")]
public string[]? GetCachedPropertyNames()
Returns
- string[]
GetConnection()
[Version("2.26")]
public DBusConnection GetConnection()
Returns
GetDefaultTimeout()
[Version("2.26")]
public int GetDefaultTimeout()
Returns
GetFlags()
[Version("2.26")]
public DBusProxyFlags GetFlags()
Returns
GetGType()
public static Type GetGType()
Returns
GetInterfaceInfo()
[Version("2.26")]
public DBusInterfaceInfo? GetInterfaceInfo()
Returns
GetInterfaceName()
[Version("2.26")]
public string GetInterfaceName()
Returns
GetName()
[Version("2.26")]
public string? GetName()
Returns
GetNameOwner()
[Version("2.26")]
public string? GetNameOwner()
Returns
GetObject()
[Version("2.30")]
public DBusObject? GetObject()
Returns
GetObjectPath()
[Version("2.26")]
public string GetObjectPath()
Returns
Init(Cancellable?)
[Version("2.22")]
public bool Init(Cancellable? cancellable)
Parameters
cancellable
Cancellable
Returns
InitFinish(AsyncResult)
[Version("2.22")]
public bool InitFinish(AsyncResult res)
Parameters
res
AsyncResult
Returns
NewFinish(AsyncResult)
[Version("2.26")]
public static DBusProxy NewFinish(AsyncResult res)
Parameters
res
AsyncResult
Returns
NewForBusFinish(AsyncResult)
[Version("2.26")]
public static DBusProxy NewForBusFinish(AsyncResult res)
Parameters
res
AsyncResult
Returns
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
BusTypeflags
DBusProxyFlagsinfo
DBusInterfaceInfoname
stringobjectPath
stringinterfaceName
stringcancellable
Cancellable
Returns
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
DBusConnectionflags
DBusProxyFlagsinfo
DBusInterfaceInfoname
stringobjectPath
stringinterfaceName
stringcancellable
Cancellable
Returns
SetCachedProperty(string, Variant?)
[Version("2.26")]
public void SetCachedProperty(string propertyName, Variant? value)
Parameters
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
OnGSignal
public event SignalHandler<DBusProxy, DBusProxy.GSignalSignalArgs> OnGSignal