YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.snapcast.SnapcastGroupSource Interface Reference

Where UpnpClient gets the Snapcast groups from: the receivers that are not in Cling's registry. More...

Inheritance diagram for de.yaacc.snapcast.SnapcastGroupSource:
Inheritance graph
Collaboration diagram for de.yaacc.snapcast.SnapcastGroupSource:
Collaboration graph

Public Member Functions

List< SnapcastGroupDevice > groups ()
 The groups of the servers that are listed, as of the last status of each server.
 
SnapcastGroupDevice findGroup (String receiverId)
 
void wake (Collection< String > receiverIds)
 Selected receivers are missing: connect to the listed servers that hold the Snapcast ones among receiverIds (and to no other), so that their groups are known soon.
 
boolean isPending (String receiverId)
 True for the id of a group whose server is listed but has not delivered its status yet (a cold start, or a connection that is still coming up): the group is not known, but it is not gone either.
 
void selectionChanged (Collection< String > receiverIds)
 The stored selection changed (the ids of all selected receivers, of any kind): remember the servers of the selected groups across a restart, forget the others.
 

Public Attributes

SnapcastGroupSource NONE
 No groups; the default of a client that has no hub.
 

Detailed Description

Where UpnpClient gets the Snapcast groups from: the receivers that are not in Cling's registry.

Kept as a small interface so that the client works (and is tested) without any Snapcast machinery.

Member Function Documentation

◆ findGroup()

SnapcastGroupDevice de.yaacc.snapcast.SnapcastGroupSource.findGroup ( String receiverId)
Returns
the group with this receiver id (snapcast:...), or null if it is not known (any more)

Implemented in de.yaacc.snapcast.SnapcastHub, and de.yaacc.snapcast.SnapcastReceivers.

Referenced by de.yaacc.upnp.UpnpClient.getDevice().

Here is the caller graph for this function:

◆ groups()

List< SnapcastGroupDevice > de.yaacc.snapcast.SnapcastGroupSource.groups ( )

The groups of the servers that are listed, as of the last status of each server.

Cheap: no network.

Implemented in de.yaacc.snapcast.SnapcastHub, and de.yaacc.snapcast.SnapcastReceivers.

Referenced by de.yaacc.upnp.UpnpClient.getDevicesProvidingAvTransportService().

Here is the caller graph for this function:

◆ isPending()

boolean de.yaacc.snapcast.SnapcastGroupSource.isPending ( String receiverId)

True for the id of a group whose server is listed but has not delivered its status yet (a cold start, or a connection that is still coming up): the group is not known, but it is not gone either.

The caller keeps such an id in a stored selection instead of dropping it. False for a group that is known, for a server that is not listed (any more), for a server that answered without the group, and for anything that is not a group id.

Implemented in de.yaacc.snapcast.SnapcastHub, and de.yaacc.snapcast.SnapcastReceivers.

Referenced by de.yaacc.upnp.UpnpClient.getReceiverDevices().

Here is the caller graph for this function:

◆ selectionChanged()

void de.yaacc.snapcast.SnapcastGroupSource.selectionChanged ( Collection< String > receiverIds)

The stored selection changed (the ids of all selected receivers, of any kind): remember the servers of the selected groups across a restart, forget the others.

Does not block on the network.

Implemented in de.yaacc.snapcast.SnapcastHub, and de.yaacc.snapcast.SnapcastReceivers.

Referenced by de.yaacc.upnp.UpnpClient.setReceiverDeviceIds().

Here is the caller graph for this function:

◆ wake()

void de.yaacc.snapcast.SnapcastGroupSource.wake ( Collection< String > receiverIds)

Selected receivers are missing: connect to the listed servers that hold the Snapcast ones among receiverIds (and to no other), so that their groups are known soon.

Does not block.

Implemented in de.yaacc.snapcast.SnapcastHub, and de.yaacc.snapcast.SnapcastReceivers.

Referenced by de.yaacc.upnp.UpnpClient.awaitReceiverDevices().

Here is the caller graph for this function:

Member Data Documentation

◆ NONE

SnapcastGroupSource de.yaacc.snapcast.SnapcastGroupSource.NONE
Initial value:
= new SnapcastGroupSource() {
@Override
public List<SnapcastGroupDevice> groups() {
return Collections.emptyList();
}
@Override
public SnapcastGroupDevice findGroup(String receiverId) {
return null;
}
@Override
public void wake(Collection<String> receiverIds) {
}
@Override
public boolean isPending(String receiverId) {
return false;
}
@Override
public void selectionChanged(Collection<String> receiverIds) {
}
}
A Snapcast group as a receiver of the receiver lists: a synthetic Cling Device that is never register...
Definition SnapcastGroupDevice.java:67
void selectionChanged(Collection< String > receiverIds)
The stored selection changed (the ids of all selected receivers, of any kind): remember the servers o...
SnapcastGroupDevice findGroup(String receiverId)
boolean isPending(String receiverId)
True for the id of a group whose server is listed but has not delivered its status yet (a cold start,...
List< SnapcastGroupDevice > groups()
The groups of the servers that are listed, as of the last status of each server.
void wake(Collection< String > receiverIds)
Selected receivers are missing: connect to the listed servers that hold the Snapcast ones among recei...

No groups; the default of a client that has no hub.


The documentation for this interface was generated from the following file: