AvahiServiceBrowser constructor
AvahiServiceBrowser(
- DBusClient client,
- String destination,
- DBusObjectPath path
Implementation
AvahiServiceBrowser(
DBusClient client, String destination, DBusObjectPath path)
: super(client, name: destination, path: path) {
itemNew = DBusRemoteObjectSignalStream(
object: this,
interface: 'org.freedesktop.Avahi.ServiceBrowser',
name: 'ItemNew',
signature: DBusSignature('iisssu'))
.asBroadcastStream()
.map((signal) => AvahiServiceBrowserItemNew(signal));
itemRemove = DBusRemoteObjectSignalStream(
object: this,
interface: 'org.freedesktop.Avahi.ServiceBrowser',
name: 'ItemRemove',
signature: DBusSignature('iisssu'))
.asBroadcastStream()
.map((signal) => AvahiServiceBrowserItemRemove(signal));
failure = DBusRemoteObjectSignalStream(
object: this,
interface: 'org.freedesktop.Avahi.ServiceBrowser',
name: 'Failure',
signature: DBusSignature('s'))
.asBroadcastStream()
.map((signal) => AvahiServiceBrowserFailure(signal));
allForNow = DBusRemoteObjectSignalStream(
object: this,
interface: 'org.freedesktop.Avahi.ServiceBrowser',
name: 'AllForNow',
signature: DBusSignature(''))
.asBroadcastStream()
.map((signal) => AvahiServiceBrowserAllForNow(signal));
cacheExhausted = DBusRemoteObjectSignalStream(
object: this,
interface: 'org.freedesktop.Avahi.ServiceBrowser',
name: 'CacheExhausted',
signature: DBusSignature(''))
.asBroadcastStream()
.map((signal) => AvahiServiceBrowserCacheExhausted(signal));
}