YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.sendspin.SendspinRepeatCycle Class Reference

The repeat button of the sheet of a Sendspin server card (issue #325): it goes through the repeat modes that the server offers (repeat_off, repeat_all, repeat_one, in this order), and the icon for repeat one is drawn only when there is another way to repeat to tell it from; a single "on" mode is drawn as repeat all. More...

Collaboration diagram for de.yaacc.sendspin.SendspinRepeatCycle:
Collaboration graph

Public Member Functions

boolean available ()
 True if there are at least two modes to go through.
 
String next (String current)
 
boolean showsOneIcon (String current)
 True if the icon of repeat one is drawn for this mode: it is repeat one, and repeat all is offered too.
 

Static Public Member Functions

static SendspinRepeatCycle of (Set< String > supportedCommands)
 
static String commandOf (String mode)
 The command that sets a mode (off, all or one).
 

Detailed Description

The repeat button of the sheet of a Sendspin server card (issue #325): it goes through the repeat modes that the server offers (repeat_off, repeat_all, repeat_one, in this order), and the icon for repeat one is drawn only when there is another way to repeat to tell it from; a single "on" mode is drawn as repeat all.

Pure.

Member Function Documentation

◆ next()

String de.yaacc.sendspin.SendspinRepeatCycle.next ( String current)
Returns
the mode after current (the first offered mode if the current one is not offered), or null if there is nothing to cycle
Here is the call graph for this function:

◆ of()

static SendspinRepeatCycle de.yaacc.sendspin.SendspinRepeatCycle.of ( Set< String > supportedCommands)
static
Parameters
supportedCommandsthe commands the server lists (null: none)
Here is the call graph for this function:

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