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

"Remove server" of the settings. More...

Collaboration diagram for de.yaacc.snapcast.SnapcastServerAdmin:
Collaboration graph

Classes

class  Result
 What a removal did.
 
interface  SelectionStore
 Where the ids of the selected receivers live (SharedPreferences in the app). More...
 

Public Member Functions

 SnapcastServerAdmin (ManualServers manualServers, SnapcastDirectory directory, SnapcastSelectedServers selectedServers, SelectionStore selection)
 
Result remove (ServerKey key)
 Removes a server as described above.
 

Detailed Description

"Remove server" of the settings.

Removing a server means removed, not hidden:

  1. it leaves the manual list and the directory takes the new list;
  2. the groups of that server leave the stored selection of receivers (a selection that names a server the user has removed would keep connecting to it on every play);
  3. the remembered flag and the stored endpoint of the server go (security review S23: a server that was both remembered from an earlier discovery and typed in stayed listed and connected after "remove" until the selection changed).

A server that is still announced on the network is listed again as a discovered one by the scan (when discovery is on): the user can not remove what is on the network, only what they typed in or what was remembered. Pure Java; the selection store is behind an interface.

Member Function Documentation

◆ remove()

Result de.yaacc.snapcast.SnapcastServerAdmin.remove ( ServerKey key)

Removes a server as described above.

A null key or an unknown server changes nothing.


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