Table of Contents

Class DBusServer

Namespace
Gio
Assembly
Gio-2.0.dll
public class DBusServer : Object, Initable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
Inheritance
DBusServer
Implements
Inherited Members

Constructors

DBusServer(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public DBusServer(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

DBusServer(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected DBusServer(CreationData data)

Parameters

data CreationData

DBusServer(DBusServerHandle)

protected DBusServer(DBusServerHandle handle)

Parameters

handle DBusServerHandle

Fields

ActivePropertyDefinition

public static readonly Property<bool, DBusServer> ActivePropertyDefinition

Field Value

Property<bool, DBusServer>

AddressPropertyDefinition

public static readonly Property<string?, DBusServer> AddressPropertyDefinition

Field Value

Property<string, DBusServer>

AuthenticationObserverPropertyDefinition

public static readonly Property<DBusAuthObserver?, DBusServer> AuthenticationObserverPropertyDefinition

Field Value

Property<DBusAuthObserver, DBusServer>

ClientAddressPropertyDefinition

public static readonly Property<string?, DBusServer> ClientAddressPropertyDefinition

Field Value

Property<string, DBusServer>

FlagsPropertyDefinition

public static readonly Property<DBusServerFlags, DBusServer> FlagsPropertyDefinition

Field Value

Property<DBusServerFlags, DBusServer>

GuidPropertyDefinition

public static readonly Property<string?, DBusServer> GuidPropertyDefinition

Field Value

Property<string, DBusServer>

NewConnectionSignal

Signal Descriptor for OnNewConnection.

public static readonly ReturningSignal<DBusServer, DBusServer.NewConnectionSignalArgs, bool> NewConnectionSignal

Field Value

ReturningSignal<DBusServer, DBusServer.NewConnectionSignalArgs, bool>

Properties

Active

public bool Active { get; }

Property Value

bool

Address

public string? Address { get; }

Property Value

string

AuthenticationObserver

public DBusAuthObserver? AuthenticationObserver { get; }

Property Value

DBusAuthObserver

ClientAddress

public string? ClientAddress { get; }

Property Value

string

Flags

public DBusServerFlags Flags { get; }

Property Value

DBusServerFlags

Guid

public string? Guid { get; }

Property Value

string

Methods

GetClientAddress()

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

Returns

string

GetFlags()

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

Returns

DBusServerFlags

GetGType()

public static Type GetGType()

Returns

Type

GetGuid()

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

Returns

string

Init(Cancellable?)

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

Parameters

cancellable Cancellable

Returns

bool

IsActive()

[Version("2.26")]
public bool IsActive()

Returns

bool

NewFromPointer(nint, bool)

Creates a new managed DBusServer instance for a given pointer.

public static DBusServer NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

DBusServer

NewSync(string, DBusServerFlags, string, DBusAuthObserver?, Cancellable?)

[Version("2.26")]
public static DBusServer NewSync(string address, DBusServerFlags flags, string guid, DBusAuthObserver? observer, Cancellable? cancellable)

Parameters

address string
flags DBusServerFlags
guid string
observer DBusAuthObserver
cancellable Cancellable

Returns

DBusServer

NewWithProperties(ConstructArgument[])

Creates a new DBusServer and sets the properties specified by the construct arguments.

public static DBusServer NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

DBusServer

Start()

[Version("2.26")]
public void Start()

Stop()

[Version("2.26")]
public void Stop()

Events

OnNewConnection

public event ReturningSignalHandler<DBusServer, DBusServer.NewConnectionSignalArgs, bool> OnNewConnection

Event Type

ReturningSignalHandler<DBusServer, DBusServer.NewConnectionSignalArgs, bool>