YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.snapcast.ui.SnapcastRendererGroupChoices Class Reference

What the group chooser of the renderer settings offers (task 9.1): first the servers of the server list (typed in, found on the network, remembered; the list of the settings dialog is reused, nothing new is discovered), then the groups of the chosen server. More...

Collaboration diagram for de.yaacc.snapcast.ui.SnapcastRendererGroupChoices:
Collaboration graph

Classes

class  Group
 A group to choose.
 
class  Server
 A server to choose.
 

Static Public Member Functions

static List< Server > servers (List< SnapcastServerListModel.Row > rows)
 
static List< Group > groups (List< SnapcastGroupDevice > devices)
 

Detailed Description

What the group chooser of the renderer settings offers (task 9.1): first the servers of the server list (typed in, found on the network, remembered; the list of the settings dialog is reused, nothing new is discovered), then the groups of the chosen server.

Pure Java; the dialog only shows the choices and stores the receiver id of the chosen group.

  • The key of a server is its control endpoint (host:port of the list), because the groups live there; it is not the stream port that the client settings use (SnapcastServerChoices).
  • Labels are display text. The label starts with the address and puts the cleaned name from the network in brackets (SnapcastServerChoices#label), so a name that looks like an address can not stand in front of the real one. A group name is cleaned again and never carries its id.
  • What is stored is an id. A group's receiver id is built from the server key and the group id the server gave (SnapcastGroupDevice#idOf); only a group that SnapcastGroupDevice accepted (a safe id) is a choice.

Member Function Documentation

◆ groups()

static List< Group > de.yaacc.snapcast.ui.SnapcastRendererGroupChoices.groups ( List< SnapcastGroupDevice > devices)
static
Parameters
devicesthe groups of one server (as SnapcastReceivers.groupsOf gives them); null for none

Referenced by de.yaacc.snapcast.ui.SnapcastRendererGroupChoices.groups().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ servers()

static List< Server > de.yaacc.snapcast.ui.SnapcastRendererGroupChoices.servers ( List< SnapcastServerListModel.Row > rows)
static
Parameters
rowsthe rows of the server list, in their order; null for none. Each server once.

Referenced by de.yaacc.snapcast.ui.SnapcastRendererGroupChoices.servers().

Here is the call graph for this function:
Here is the caller graph for this function:

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