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

Which entries "Remove old entries of this phone" deletes from a server (task 12.19). More...

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

Static Public Member Functions

static List< String > removable (SnapcastServerStatus fullStatus, SnapcastOwnIds ids)
 

Static Public Attributes

static final int MAX_REMOVABLE = 64
 The most entries one action removes.
 

Detailed Description

Which entries "Remove old entries of this phone" deletes from a server (task 12.19).

Pure.

Earlier builds gave every server a client id of its own (de.yaacc.snapcast.client.SnapcastLegacyClientIds); the entries stay on the servers as offline ghosts, and the lists merge them away (de.yaacc.snapcast.SnapcastMergedClients). They can only be found in the full status of the server: the filtered view hides exactly these entries. The rule: an entry whose id is one of this install's legacy ids and that is offline; never a connected one, never the current id, never an id of another install (an id that is not in the legacy list). The deletion itself goes through SnapcastControls#deleteOfflineClient, which reads a fresh status and decides again (SnapcastClientRemoval), so a client that came back meanwhile stays. No id is ever part of a text.

Member Function Documentation

◆ removable()

static List< String > de.yaacc.snapcast.ui.SnapcastLegacyCleanup.removable ( SnapcastServerStatus fullStatus,
SnapcastOwnIds ids )
static
Parameters
fullStatusthe status of the server as it is (NOT the filtered view); null for none
idsthe phone's ids; none or without legacy ids removes nothing
Returns
the ids of the offline legacy entries in the order of the status, each once, at most {@value MAX_REMOVABLE}

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