DVBLink Remote API Library documentation  0.2.0-Master
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
dvblinkremote::UpdateScheduleRequest Class Reference

Class for update schedule requests. More...

Inheritance diagram for dvblinkremote::UpdateScheduleRequest:
dvblinkremote::Request

Public Member Functions

 UpdateScheduleRequest (const std::string &scheduleId, const bool newOnly, const bool recordSeriesAnytime, const int recordingsToKeep)
 Initializes a new instance of the dvblinkremote::UpdateScheduleRequest class.
 ~UpdateScheduleRequest ()
 Destructor for cleaning up allocated memory.
std::string & GetScheduleID ()
 Gets the identifier for the schedule to be updated.
bool IsNewOnly ()
 Gets if only new programs are going to be recorded for the schedule to be updated or not.
bool WillRecordSeriesAnytime ()
 Gets whether to record only series starting around original program start time or any of them for the schedule to be updated.
int GetRecordingsToKeep ()
 Gets how many recordings to keep for a repeated recording.

Detailed Description

Class for update schedule requests.

This is used as input parameter for the IDVBLinkRemoteConnection::UpdateSchedule method.

See Also
IDVBLinkRemoteConnection::UpdateSchedule()

Constructor & Destructor Documentation

dvblinkremote::UpdateScheduleRequest::UpdateScheduleRequest ( const std::string &  scheduleId,
const bool  newOnly,
const bool  recordSeriesAnytime,
const int  recordingsToKeep 
)

Initializes a new instance of the dvblinkremote::UpdateScheduleRequest class.

Parameters
scheduleIda constant string reference representing the schedule identifier.
newOnlya constant boolean representing if only new programs have to be recorded. Default value is false.
recordSeriesAnytimea constant boolean representing whether to record only series starting around original program start time or any of them. Default value is false.
recordingsToKeepa constant integer representing how many recordings to keep for a repeated recording. Default value is 0, i.e. keep all recordings.
Remarks
recordingsToKeep accepted values (1, 2, 3, 4, 5, 6, 7, 10; 0 - keep all)
dvblinkremote::UpdateScheduleRequest::~UpdateScheduleRequest ( )

Destructor for cleaning up allocated memory.

Member Function Documentation

int dvblinkremote::UpdateScheduleRequest::GetRecordingsToKeep ( )

Gets how many recordings to keep for a repeated recording.

Returns
integer value
std::string& dvblinkremote::UpdateScheduleRequest::GetScheduleID ( )

Gets the identifier for the schedule to be updated.

Returns
Schedule identifier
bool dvblinkremote::UpdateScheduleRequest::IsNewOnly ( )

Gets if only new programs are going to be recorded for the schedule to be updated or not.

Returns
boolean value
bool dvblinkremote::UpdateScheduleRequest::WillRecordSeriesAnytime ( )

Gets whether to record only series starting around original program start time or any of them for the schedule to be updated.

Returns
boolean value