YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.yxc.YxcLinkCandidates Class Reference

What the sheet offers for linking: the actions a row gets and the devices the picker lists for a server. More...

Collaboration diagram for de.yaacc.yxc.YxcLinkCandidates:
Collaboration graph

Classes

enum  Action
 What the one toggle button of a row does: link devices (the device serves nobody), unlink the group (it serves one), or nothing because it is a client of another device (the button is shown but disabled). More...
 
class  Candidate
 One line of the picker.
 
enum  Reason
 

Static Public Member Functions

static Set< Action > actionsFor (YxcDeviceState state)
 
static List< Candidate > forServer (String serverUdn, YxcGroupDirectory directory)
 
static List< Candidate > forServer (String serverUdn, Collection< YxcDeviceSnapshot > devices)
 Convenience for tests and callers that hold snapshots.
 

Detailed Description

What the sheet offers for linking: the actions a row gets and the devices the picker lists for a server.

Pure.

A device that is in another group is listed but disabled, with the reason; yaacc never dissolves a group it was not asked to touch. A device that left its group but still sits on the link input (a "stuck" client) is in no group and can be picked.

Member Function Documentation

◆ actionsFor()

static Set< Action > de.yaacc.yxc.YxcLinkCandidates.actionsFor ( YxcDeviceState state)
static
Returns
the toggle's action for a device with this state; none while it is unreachable or not read yet
Here is the call graph for this function:

◆ forServer()

static List< Candidate > de.yaacc.yxc.YxcLinkCandidates.forServer ( String serverUdn,
YxcGroupDirectory directory )
static
Parameters
serverUdnthe device the "Link devices" action was started on
Returns
the lines for the other watched devices, in the order of the directory; empty if the device cannot be a server right now (unknown, unreachable, or a client)

Referenced by de.yaacc.yxc.YxcLinkCandidates.forServer().

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: