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

Reads what the user types in the dialogs of a Snapcast client (its name and its latency). More...

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

Classes

class  Latency
 The outcome of parseLatency.
 
enum  Problem
 Why a latency text is not accepted. More...
 

Static Public Member Functions

static Latency parseLatency (String text)
 
static String normalizeName (String text)
 

Static Public Attributes

static final int MAX_NAME = 64
 The longest name accepted by the rename dialog.
 

Detailed Description

Reads what the user types in the dialogs of a Snapcast client (its name and its latency).

Pure. A name is cleaned like a name from the server (nobody should be able to paste a control character into a server's configuration), and a latency is a whole number of milliseconds in the range the server accepts.

Member Function Documentation

◆ normalizeName()

static String de.yaacc.snapcast.ui.SnapcastInputs.normalizeName ( String text)
static
Returns
the name as it is sent: trimmed, cleaned, at most MAX_NAME characters; empty for none

Referenced by de.yaacc.snapcast.ui.SnapcastControls.renameClient().

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

◆ parseLatency()

static Latency de.yaacc.snapcast.ui.SnapcastInputs.parseLatency ( String text)
static
Returns
the latency, 0 to SnapcastLimits#MAX_LATENCY_MS, written with the digits 0 to 9 only

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