Class DBusConnection
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class DBusConnection : Object, IObject, INotifyPropertyChanged, IDisposable, AsyncInitable, Initable, IHandle, GTypeProvider
- Inheritance
-
DBusConnection
- Implements
- Inherited Members
Constructors
DBusConnection(bool, params ConstructArgument[])
protected DBusConnection(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
boolconstructArguments
ConstructArgument[]
DBusConnection(IntPtr, bool)
protected DBusConnection(IntPtr ptr, bool ownedRef)
Parameters
Fields
CapabilitiesPropertyDefinition
public static readonly Property<DBusCapabilityFlags, DBusConnection> CapabilitiesPropertyDefinition
Field Value
ClosedPropertyDefinition
public static readonly Property<bool, DBusConnection> ClosedPropertyDefinition
Field Value
ClosedSignal
Signal Descriptor for OnClosed.
public static readonly Signal<DBusConnection, DBusConnection.ClosedSignalArgs> ClosedSignal
Field Value
ExitOnClosePropertyDefinition
public static readonly Property<bool, DBusConnection> ExitOnClosePropertyDefinition
Field Value
FlagsPropertyDefinition
public static readonly Property<DBusConnectionFlags, DBusConnection> FlagsPropertyDefinition
Field Value
GuidPropertyDefinition
public static readonly Property<string?, DBusConnection> GuidPropertyDefinition
Field Value
StreamPropertyDefinition
public static readonly Property<IOStream?, DBusConnection> StreamPropertyDefinition
Field Value
UniqueNamePropertyDefinition
public static readonly Property<string?, DBusConnection> UniqueNamePropertyDefinition
Field Value
Properties
Capabilities
public DBusCapabilityFlags Capabilities { get; }
Property Value
Closed
public bool Closed { get; }
Property Value
ExitOnClose
public bool ExitOnClose { get; set; }
Property Value
Flags
public DBusConnectionFlags Flags { get; }
Property Value
Guid
public string? Guid { get; }
Property Value
Stream
public IOStream? Stream { get; }
Property Value
UniqueName
public string? UniqueName { get; }
Property Value
Methods
AddFilter(DBusMessageFilterFunction)
[Version("2.26")]
public uint AddFilter(DBusMessageFilterFunction filterFunction)
Parameters
filterFunction
DBusMessageFilterFunction
Returns
CallAsync(string, string, string, string, Variant?)
public Task<Variant> CallAsync(string busName, string objectPath, string interfaceName, string methodName, Variant? parameters = null)
Parameters
Returns
CallFinish(AsyncResult)
[Version("2.26")]
public Variant CallFinish(AsyncResult res)
Parameters
res
AsyncResult
Returns
CallSync(string?, string, string, string, Variant?, VariantType?, DBusCallFlags, int, Cancellable?)
[Version("2.26")]
public Variant CallSync(string? busName, string objectPath, string interfaceName, string methodName, Variant? parameters, VariantType? replyType, DBusCallFlags flags, int timeoutMsec, Cancellable? cancellable)
Parameters
busName
stringobjectPath
stringinterfaceName
stringmethodName
stringparameters
VariantreplyType
VariantTypeflags
DBusCallFlagstimeoutMsec
intcancellable
Cancellable
Returns
CloseFinish(AsyncResult)
[Version("2.26")]
public bool CloseFinish(AsyncResult res)
Parameters
res
AsyncResult
Returns
CloseSync(Cancellable?)
[Version("2.26")]
public bool CloseSync(Cancellable? cancellable)
Parameters
cancellable
Cancellable
Returns
EmitSignal(string?, string, string, string, Variant?)
[Version("2.26")]
public bool EmitSignal(string? destinationBusName, string objectPath, string interfaceName, string signalName, Variant? parameters)
Parameters
destinationBusName
stringobjectPath
stringinterfaceName
stringsignalName
stringparameters
Variant
Returns
ExportActionGroup(string, ActionGroup)
[Version("2.32")]
public uint ExportActionGroup(string objectPath, ActionGroup actionGroup)
Parameters
objectPath
stringactionGroup
ActionGroup
Returns
ExportMenuModel(string, MenuModel)
[Version("2.32")]
public uint ExportMenuModel(string objectPath, MenuModel menu)
Parameters
Returns
FlushFinish(AsyncResult)
[Version("2.26")]
public bool FlushFinish(AsyncResult res)
Parameters
res
AsyncResult
Returns
FlushSync(Cancellable?)
[Version("2.26")]
public bool FlushSync(Cancellable? cancellable)
Parameters
cancellable
Cancellable
Returns
Get(BusType)
public static DBusConnection Get(BusType busType)
Parameters
busType
BusType
Returns
GetCapabilities()
[Version("2.26")]
public DBusCapabilityFlags GetCapabilities()
Returns
GetExitOnClose()
[Version("2.26")]
public bool GetExitOnClose()
Returns
GetFlags()
[Version("2.60")]
public DBusConnectionFlags GetFlags()
Returns
GetGType()
public static Type GetGType()
Returns
GetGuid()
[Version("2.26")]
public string GetGuid()
Returns
GetLastSerial()
[Version("2.34")]
public uint GetLastSerial()
Returns
GetPeerCredentials()
[Version("2.26")]
public Credentials? GetPeerCredentials()
Returns
GetStream()
[Version("2.26")]
public IOStream GetStream()
Returns
GetUniqueName()
[Version("2.26")]
public string? GetUniqueName()
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
IsClosed()
[Version("2.26")]
public bool IsClosed()
Returns
NewFinish(AsyncResult)
[Version("2.26")]
public static DBusConnection NewFinish(AsyncResult res)
Parameters
res
AsyncResult
Returns
NewForAddressFinish(AsyncResult)
[Version("2.26")]
public static DBusConnection NewForAddressFinish(AsyncResult res)
Parameters
res
AsyncResult
Returns
NewForAddressSync(string, DBusConnectionFlags, DBusAuthObserver?, Cancellable?)
[Version("2.26")]
public static DBusConnection NewForAddressSync(string address, DBusConnectionFlags flags, DBusAuthObserver? observer, Cancellable? cancellable)
Parameters
address
stringflags
DBusConnectionFlagsobserver
DBusAuthObservercancellable
Cancellable
Returns
NewSync(IOStream, string?, DBusConnectionFlags, DBusAuthObserver?, Cancellable?)
[Version("2.26")]
public static DBusConnection NewSync(IOStream stream, string? guid, DBusConnectionFlags flags, DBusAuthObserver? observer, Cancellable? cancellable)
Parameters
stream
IOStreamguid
stringflags
DBusConnectionFlagsobserver
DBusAuthObservercancellable
Cancellable
Returns
RegisterObject(string, DBusInterfaceInfo, Closure?, Closure?, Closure?)
[Version("2.46")]
public uint RegisterObject(string objectPath, DBusInterfaceInfo interfaceInfo, Closure? methodCallClosure, Closure? getPropertyClosure, Closure? setPropertyClosure)
Parameters
objectPath
stringinterfaceInfo
DBusInterfaceInfomethodCallClosure
ClosuregetPropertyClosure
ClosuresetPropertyClosure
Closure
Returns
RemoveFilter(uint)
[Version("2.26")]
public void RemoveFilter(uint filterId)
Parameters
filterId
uint
SendMessage(DBusMessage, DBusSendMessageFlags, out uint)
[Version("2.26")]
public bool SendMessage(DBusMessage message, DBusSendMessageFlags flags, out uint outSerial)
Parameters
message
DBusMessageflags
DBusSendMessageFlagsoutSerial
uint
Returns
SendMessageWithReplyFinish(AsyncResult)
[Version("2.26")]
public DBusMessage SendMessageWithReplyFinish(AsyncResult res)
Parameters
res
AsyncResult
Returns
SendMessageWithReplySync(DBusMessage, DBusSendMessageFlags, int, out uint, Cancellable?)
[Version("2.26")]
public DBusMessage SendMessageWithReplySync(DBusMessage message, DBusSendMessageFlags flags, int timeoutMsec, out uint outSerial, Cancellable? cancellable)
Parameters
message
DBusMessageflags
DBusSendMessageFlagstimeoutMsec
intoutSerial
uintcancellable
Cancellable
Returns
SetExitOnClose(bool)
[Version("2.26")]
public void SetExitOnClose(bool exitOnClose)
Parameters
exitOnClose
bool
SignalSubscribe(string?, string?, string?, string?, string?, DBusSignalFlags, DBusSignalCallback)
[Version("2.26")]
public uint SignalSubscribe(string? sender, string? interfaceName, string? member, string? objectPath, string? arg0, DBusSignalFlags flags, DBusSignalCallback callback)
Parameters
sender
stringinterfaceName
stringmember
stringobjectPath
stringarg0
stringflags
DBusSignalFlagscallback
DBusSignalCallback
Returns
SignalUnsubscribe(uint)
[Version("2.26")]
public void SignalUnsubscribe(uint subscriptionId)
Parameters
subscriptionId
uint
StartMessageProcessing()
[Version("2.26")]
public void StartMessageProcessing()
UnexportActionGroup(uint)
[Version("2.32")]
public void UnexportActionGroup(uint exportId)
Parameters
exportId
uint
UnexportMenuModel(uint)
[Version("2.32")]
public void UnexportMenuModel(uint exportId)
Parameters
exportId
uint
UnregisterObject(uint)
[Version("2.26")]
public bool UnregisterObject(uint registrationId)
Parameters
registrationId
uint
Returns
UnregisterSubtree(uint)
[Version("2.26")]
public bool UnregisterSubtree(uint registrationId)
Parameters
registrationId
uint
Returns
Events
OnClosed
public event SignalHandler<DBusConnection, DBusConnection.ClosedSignalArgs> OnClosed