|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ISleepStatus.Flags>
org.jmythapi.protocol.response.ISleepStatus.Flags
public static enum ISleepStatus.Flags
The flags of an ISleepStatus response.
The following list contains all possible awake/sleep states of a MythTV backend slave.
| MythTV Protocol Version Matrix | ||||
|---|---|---|---|---|
| Protocol | ||||
| Name | Type | Range | 45 | -1 |
| SSTATUS_AWAKE | IFlag | [45,-1) | X | X |
| SSTATUS_ASLEEP | IFlag | [45,-1) | X | X |
| SSTATUS_FALLING_ASLEEP | IFlag | [45,-1) | X | X |
| SSTATUS_WAKING | IFlag | [45,-1) | X | X |
| SSTATUS_UNDEFINED | IFlag | [45,-1) | X | X |
| Enum Constant Summary | |
|---|---|
SSTATUS_ASLEEP
Asleep. |
|
SSTATUS_AWAKE
Awaken. |
|
SSTATUS_FALLING_ASLEEP
Falling asleep. |
|
SSTATUS_UNDEFINED
Undefined. |
|
SSTATUS_WAKING
Waking. |
|
| Method Summary | |
|---|---|
Long |
getFlagValue()
Gets the value associated with the flag. |
static ISleepStatus.Flags |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ISleepStatus.Flags[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jmythapi.protocol.response.IFlag |
|---|
name |
| Enum Constant Detail |
|---|
public static final ISleepStatus.Flags SSTATUS_AWAKE
A slave is awake when it is connected to the master
public static final ISleepStatus.Flags SSTATUS_ASLEEP
A slave is considered asleep when it is not awake and not undefined.
public static final ISleepStatus.Flags SSTATUS_FALLING_ASLEEP
A slave is marked as falling asleep when told to shutdown by the master.
public static final ISleepStatus.Flags SSTATUS_WAKING
A slave is marked as waking when the master runs the slave's wakeup command
public static final ISleepStatus.Flags SSTATUS_UNDEFINED
A slave's sleep status is undefined when it has never connected to the master backend or is not able to be put to sleep and awakened.
| Method Detail |
|---|
public static ISleepStatus.Flags[] values()
for (ISleepStatus.Flags c : ISleepStatus.Flags.values()) System.out.println(c);
public static ISleepStatus.Flags valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic Long getFlagValue()
IFlag
getFlagValue in interface IFlag
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||