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

The members of a group as rows of the group sheet: name, connected flag, volume, mute and latency. More...

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

Classes

class  Member
 One member row.
 
interface  Words
 The one localized word. More...
 

Static Public Member Functions

static List< Member > of (SnapcastGroup group, Words words)
 
static List< Member > of (SnapcastGroup group, Words words, String ownClientId)
 
static List< Member > ofIds (SnapcastGroup group, Words words, SnapcastOwnIds ids)
 As of(SnapcastGroup, Words, String) for the current id and the legacy ids of this install (task 12.19): a member with a legacy id is marked as the phone's own and as an old entry (Member#isLegacy).
 
static boolean canRemove (SnapcastGroup group)
 A member can leave the group unless it is the last one: Group.SetClients with an empty list would dissolve the group, and the library refuses it.
 

Static Public Attributes

static final int MAX_NAME = 64
 The longest member name shown.
 

Detailed Description

The members of a group as rows of the group sheet: name, connected flag, volume, mute and latency.

Pure.

Names. The name of a member is the name set for it, else its host name, else a generic label (never its id, which is a MAC address); it is display text and goes through SnapcastDisplayText. Members with the same name are told apart by a number ("Speaker", "Speaker (2)").

Order. By name (ignoring case), then by id. Neither the volume nor the connection state is part of the order, so a row does not jump under the finger when a client reconnects or its volume changes. The client id decides ties and is never shown.

Member Function Documentation

◆ of() [1/2]

static List< Member > de.yaacc.snapcast.ui.SnapcastMemberRows.of ( SnapcastGroup group,
Words words )
static
Returns
the rows of the group's members in the order described above; none of them is the phone's own client

Referenced by de.yaacc.snapcast.ui.SnapcastMemberRows.of().

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

◆ of() [2/2]

static List< Member > de.yaacc.snapcast.ui.SnapcastMemberRows.of ( SnapcastGroup group,
Words words,
String ownClientId )
static
Parameters
ownClientIdthe app's own client id (task 12.11), null when it has none yet; the member with that id is marked (Member#isOwn). The order and the names do not depend on it.
Returns
the rows of the group's members in the order described above; empty for a group without members
Here is the call graph for this function:

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