|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRecordingsPending
An interface to get all pending recordings of a MythTV backend.
This object represents the response to a IBackend.queryAllPending()
request.
This interface is property-aware
. See the properties-list
for all properties of this interface.
Use getConflictsCount()
to get the amount of recordings with the status CONFLICT
.
IBackend.queryAllPending()
,
QUERY_GETALLPENDING
Nested Class Summary | |
---|---|
static class |
IRecordingsPending.Props
The properties of an IRecordingsPending response. |
Method Summary | |
---|---|
int |
getConflictsCount()
Gets the amount of conflicts between all pending recordings. |
int |
getMinutesToNextRecording()
Gets the minutes to the next pending recording. |
Date |
getNextPendingRecordingDate()
Gets the date of the next pending recording. |
Map<Integer,IProgramInfo> |
getNextPendingRecordings()
This function returns the earliest pending recording for each recorder. |
Map<Integer,Date> |
getNextPendingRecordingsDates()
This function returns the earliest recording-start time for each recorder. |
boolean |
hasConflicts()
Checks if there are any conflicts between all pending recordings. |
Methods inherited from interface org.jmythapi.protocol.response.IRecordings |
---|
getProgramInfoList, getProgramInfoList, isEmpty, iterator, iterator, size |
Methods inherited from interface org.jmythapi.IVersionable |
---|
getVersionNr |
Methods inherited from interface org.jmythapi.IPropertyAware |
---|
getProperties, getProperty, getPropertyClass, getPropertyCount, getPropertyIndex, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValues, setPropertyValue, setPropertyValue, setPropertyValueObject |
Method Detail |
---|
int getConflictsCount()
boolean hasConflicts()
true
if there are any conflictsMap<Integer,IProgramInfo> getNextPendingRecordings() throws IOException
IOException
Map<Integer,Date> getNextPendingRecordingsDates() throws IOException
Usage example:
IBackend backend = ....; // an already connected backend // get all pending recordings IRecordingsPending pendingRecords = backend.queryAllPending(); // get next recording start times Map<Integer,Date> nextRecordingDates = pendingRecords.getNextPendingRecordingDates(); for(Entry<Integer,Date> nextRecordingDate : nextRecordingDates.entrySet()) { System.out.println(String.format( "Recorder %02d will start a recording at %2$tF %2$tT.", nextRecordingDate.getKey(), nextRecordingDate.getValue() )); }
IOException
getNextPendingRecordings()
Date getNextPendingRecordingDate() throws IOException
null
if there is no pending recording.
IOException
int getMinutesToNextRecording() throws IOException
-1
if there is no pending recording.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |