#include <encoderlink.h>
This class be instanciated for either a local or remote TVRec's. Many of the methods will work with either, but many only work for a local TVRec's and these are labeled appropriately in this document.
When used with a remote TVRec all calls go through a PlaybackSock instance.
This class is used primarily by the MainServer, Scheduler and AutoExpire classes.
Definition at line 15 of file encoderlink.h.
Public Member Functions | |
| EncoderLink (int capturecardnum, PlaybackSock *lsock, QString lhostname) | |
| This is the EncoderLink constructor for non-local recorders. | |
| EncoderLink (int capturecardnum, TVRec *ltv) | |
| This is the EncoderLink constructor for local recorders. | |
| ~EncoderLink () | |
| Destructor does nothing for non-local EncoderLink instances, but deletes the TVRec for local EncoderLink instances. | |
| void | SetSocket (PlaybackSock *lsock) |
| Used to set the socket for a non-local EncoderLink. | |
| PlaybackSock * | GetSocket (void) |
| Returns the socket, if set, for a non-local EncoderLink. | |
| QString | GetHostName (void) const |
| Returns the remote host for a non-local EncoderLink. | |
| bool | IsLocal (void) const |
| Returns true for a local EncoderLink. | |
| bool | IsConnected (void) const |
| Returns true if the EncoderLink instance is usable. | |
| int | GetCardID (void) const |
| Returns the cardid used to refer to the recorder in the DB. | |
| TVRec * | GetTVRec (void) |
| Returns the TVRec used by a local EncoderLink instance. | |
| int | LockTuner (void) |
| Lock the tuner for exclusive use. | |
| void | FreeTuner (void) |
| Unlock the tuner. | |
| bool | IsTunerLocked (void) const |
| Returns true iff the tuner is locked. | |
| bool | CheckFile (ProgramInfo *pginfo) |
| void | GetDiskSpace (QStringList &o_strlist) |
| Appends total and used disk space in Kilobytes. | |
| long long | GetMaxBitrate (void) |
| Returns maximum bits per second this recorder might output. | |
| int | SetSignalMonitoringRate (int rate, int notifyFrontend) |
| Sets the signal monitoring rate. | |
| bool | IsBusy (TunedInputInfo *busy_input=NULL, int time_buffer=5) |
| Returns true if the recorder is busy, or will be within the next time_buffer seconds. | |
| bool | IsBusyRecording (void) |
| Returns true if the TVRec state is in a recording state. | |
| TVState | GetState () |
| Returns the TVState of the recorder. | |
| uint | GetFlags (void) const |
| Returns the flag state of the recorder. | |
| bool | IsRecording (const ProgramInfo *rec) |
| Returns true if rec is scheduled for recording. | |
| bool | MatchesRecording (const ProgramInfo *rec) |
| Returns true if rec is actually being recorded by TVRec. | |
| void | RecordPending (const ProgramInfo *rec, int secsleft, bool hasLater) |
| Tells TVRec there is a pending recording "rec" in "secsleft" seconds. | |
| RecStatusType | StartRecording (const ProgramInfo *rec) |
| Tells TVRec to Start recording the program "rec" as soon as possible. | |
| void | StopRecording (void) |
| Tells TVRec to stop recording immediately. | |
| void | FinishRecording (void) |
| Tells TVRec to stop recording, but only after "overrecord" seconds. | |
| void | FrontendReady (void) |
| Tells TVRec that the frontend is ready for data. | |
| void | CancelNextRecording (bool) |
| Tells TVRec to cancel the next recording. | |
| bool | WouldConflict (const ProgramInfo *rec) |
| Checks a recording against any recording current or pending recordings on the recorder represented by this EncoderLink. | |
| bool | IsReallyRecording (void) |
| Checks if the RecorderBase held by TVRec is actually recording. | |
| ProgramInfo * | GetRecording (void) |
| Returns TVRec's current recording. | |
| float | GetFramerate (void) |
| Returns the recording frame rate from TVRec. | |
| long long | GetFramesWritten (void) |
| Returns number of frames written to disk by TVRec's RecorderBase instance. | |
| long long | GetFilePosition (void) |
| Returns total number of bytes written by TVRec's RingBuffer. | |
| long long | GetKeyframePosition (long long desired) |
| Returns byte position in RingBuffer of a keyframe. | |
| void | SpawnLiveTV (LiveTVChain *chain, bool pip, QString startchan) |
| Tells TVRec to Spawn a "Live TV" recorder. | |
| QString | GetChainID (void) |
| Get the LiveTV chain id that's in use. | |
| void | StopLiveTV (void) |
| Tells TVRec to stop a "Live TV" recorder. | |
| void | PauseRecorder (void) |
| Tells TVRec to pause a recorder, used for channel and input changes. | |
| void | SetLiveRecording (int) |
| Tells TVRec to keep a LiveTV recording if 'recording' is 1. | |
| void | SetNextLiveTVDir (QString dir) |
| Tells TVRec where to put the next LiveTV recording. | |
| vector< InputInfo > | GetFreeInputs (const vector< uint > &excluded_cards) const |
| Returns TVRec's recorders connected inputs. | |
| QString | GetInput (void) const |
| Returns TVRec's recorders current input. | |
| QString | SetInput (QString) |
| Tells TVRec's recorder to change to the specified input. | |
| void | ToggleChannelFavorite (void) |
| Toggles whether the current channel should be on our favorites list. | |
| void | ChangeChannel (int channeldirection) |
| Changes to the next or previous channel. | |
| void | SetChannel (const QString &name) |
| Changes to a named channel on the current tuner. | |
| int | GetPictureAttribute (PictureAttribute attr) |
| Changes brightness/contrast/colour/hue of a recording. | |
| int | ChangePictureAttribute (PictureAdjustType type, PictureAttribute attr, bool direction) |
| Changes brightness/contrast/colour/hue of a recording. | |
| bool | CheckChannel (const QString &name) |
| Checks if named channel exists on current tuner. | |
| bool | ShouldSwitchToAnotherCard (const QString &channelid) |
| Checks if named channel exists on current tuner, or another tuner. | |
| bool | CheckChannelPrefix (const QString &, uint &, bool &, QString &) |
| Checks a prefix against the channels in the DB. | |
| void | GetNextProgram (int direction, QString &title, QString &subtitle, QString &desc, QString &category, QString &starttime, QString &endtime, QString &callsign, QString &iconpath, QString &channelname, QString &chanid, QString &seriesid, QString &programid) |
| Returns information about the program that would be seen if we changed the channel using ChangeChannel(int) with "direction". | |
| bool | GetChannelInfo (uint &chanid, uint &sourceid, QString &callsign, QString &channum, QString &channame, QString &xmltv) const |
| bool | SetChannelInfo (uint chanid, uint sourceid, QString oldchannum, QString callsign, QString channum, QString channame, QString xmltv) |
Private Attributes | |
| int | m_capturecardnum |
| PlaybackSock * | sock |
| QString | hostname |
| long long | freeDiskSpaceKB |
| TVRec * | tv |
| bool | local |
| bool | locked |
| QDateTime | endRecordingTime |
| QDateTime | startRecordingTime |
| QString | chanid |
| EncoderLink::EncoderLink | ( | int | capturecardnum, | |
| PlaybackSock * | lsock, | |||
| QString | lhostname | |||
| ) |
This is the EncoderLink constructor for non-local recorders.
Definition at line 41 of file encoderlink.cpp.
| EncoderLink::EncoderLink | ( | int | capturecardnum, | |
| TVRec * | ltv | |||
| ) |
This is the EncoderLink constructor for local recorders.
Definition at line 57 of file encoderlink.cpp.
| EncoderLink::~EncoderLink | ( | void | ) |
Destructor does nothing for non-local EncoderLink instances, but deletes the TVRec for local EncoderLink instances.
Definition at line 70 of file encoderlink.cpp.
| void EncoderLink::SetSocket | ( | PlaybackSock * | lsock | ) |
Used to set the socket for a non-local EncoderLink.
Increases refcount on lsock, decreases refcount on old sock, if exists.
Definition at line 81 of file encoderlink.cpp.
Referenced by MainServer::connectionClosed(), and MainServer::HandleAnnounce().
| PlaybackSock* EncoderLink::GetSocket | ( | void | ) | [inline] |
Returns the socket, if set, for a non-local EncoderLink.
Definition at line 26 of file encoderlink.h.
Referenced by MainServer::connectionClosed().
| QString EncoderLink::GetHostName | ( | void | ) | const [inline] |
Returns the remote host for a non-local EncoderLink.
Definition at line 29 of file encoderlink.h.
Referenced by AutoExpire::ExpireRecordings(), HttpStatus::FillStatusXML(), Scheduler::GetNextLiveTVDir(), MainServer::HandleAnnounce(), MainServer::HandleGetFreeRecorder(), MainServer::HandleGetNextFreeRecorder(), MainServer::HandleGetRecorderFromNum(), MainServer::HandleGetRecorderNum(), and MainServer::HandleLockTuner().
| bool EncoderLink::IsLocal | ( | void | ) | const [inline] |
Returns true for a local EncoderLink.
Definition at line 31 of file encoderlink.h.
Referenced by MainServer::connectionClosed(), MainServer::DoHandleDeleteRecording(), MainServer::DoHandleStopRecording(), AutoExpire::ExpireRecordings(), HttpStatus::FillStatusXML(), Scheduler::GetNextLiveTVDir(), MainServer::HandleCheckRecordingActive(), MainServer::HandleGetFreeRecorder(), MainServer::HandleGetNextFreeRecorder(), MainServer::HandleGetRecorderFromNum(), MainServer::HandleGetRecorderNum(), MainServer::HandleLockTuner(), and IsConnected().
| bool EncoderLink::IsConnected | ( | void | ) | const [inline] |
Returns true if the EncoderLink instance is usable.
Definition at line 33 of file encoderlink.h.
Referenced by Scheduler::AddNewRecords(), AutoExpire::CalcParams(), AutoExpire::ExpireRecordings(), HttpStatus::FillStatusXML(), GetCurrentMaxBitrate(), GetFlags(), GetState(), MainServer::HandleGetFreeRecorder(), MainServer::HandleGetFreeRecorderCount(), MainServer::HandleGetFreeRecorderList(), MainServer::HandleGetNextFreeRecorder(), MainServer::HandleGetRecorderFromNum(), MainServer::HandleGetRecorderNum(), MainServer::HandleLockTuner(), MainServer::HandleRecorderQuery(), and WouldConflict().
| int EncoderLink::GetCardID | ( | void | ) | const [inline] |
Returns the cardid used to refer to the recorder in the DB.
Definition at line 36 of file encoderlink.h.
Referenced by Scheduler::AddNewRecords(), AutoExpire::CalcParams(), MainServer::connectionClosed(), HttpStatus::FillStatusXML(), GetCurrentMaxBitrate(), and Scheduler::SchedPreserveLiveTV().
| TVRec* EncoderLink::GetTVRec | ( | void | ) | [inline] |
Returns the TVRec used by a local EncoderLink instance.
Definition at line 38 of file encoderlink.h.
| int EncoderLink::LockTuner | ( | void | ) |
Lock the tuner for exclusive use.
Definition at line 329 of file encoderlink.cpp.
Referenced by MainServer::HandleLockTuner().
| void EncoderLink::FreeTuner | ( | void | ) | [inline] |
Unlock the tuner.
Definition at line 43 of file encoderlink.h.
Referenced by MainServer::HandleFreeTuner().
| bool EncoderLink::IsTunerLocked | ( | void | ) | const [inline] |
Returns true iff the tuner is locked.
Definition at line 46 of file encoderlink.h.
Referenced by MainServer::HandleGetFreeRecorder(), MainServer::HandleGetFreeRecorderCount(), MainServer::HandleGetFreeRecorderList(), MainServer::HandleGetNextFreeRecorder(), MainServer::HandleLockTuner(), and Scheduler::RunScheduler().
| bool EncoderLink::CheckFile | ( | ProgramInfo * | pginfo | ) |
| void EncoderLink::GetDiskSpace | ( | QStringList & | o_strlist | ) |
Appends total and used disk space in Kilobytes.
| o_strlist | list to append to |
Definition at line 279 of file encoderlink.cpp.
| long long EncoderLink::GetMaxBitrate | ( | void | ) |
Returns maximum bits per second this recorder might output.
Definition at line 291 of file encoderlink.cpp.
Referenced by AutoExpire::CalcParams(), Scheduler::FillRecordingDir(), GetCurrentMaxBitrate(), MainServer::HandleRecorderQuery(), and MainServer::HandleRemoteEncoder().
| int EncoderLink::SetSignalMonitoringRate | ( | int | rate, | |
| int | notifyFrontend | |||
| ) |
Sets the signal monitoring rate.
May be a local or remote query.
| rate | Milliseconds between each signal check, 0 to disable, -1 to preserve old value. | |
| notifyFrontend | If 1 SIGNAL messages are sent to the frontend, if 0 SIGNAL messages will not be sent, and if -1 the old value is preserved. |
Definition at line 315 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| bool EncoderLink::IsBusy | ( | TunedInputInfo * | busy_input = NULL, |
|
| int | time_buffer = 5 | |||
| ) |
Returns true if the recorder is busy, or will be within the next time_buffer seconds.
Definition at line 96 of file encoderlink.cpp.
Referenced by AutoExpire::CalcParams(), MainServer::connectionClosed(), GetCurrentMaxBitrate(), MainServer::HandleGetFreeRecorder(), MainServer::HandleGetFreeRecorderCount(), MainServer::HandleGetFreeRecorderList(), MainServer::HandleGetNextFreeRecorder(), MainServer::HandleLockTuner(), MainServer::HandleRemoteEncoder(), Scheduler::IsBusyRecording(), and Scheduler::SchedPreserveLiveTV().
| bool EncoderLink::IsBusyRecording | ( | void | ) |
Returns true if the TVRec state is in a recording state.
Contrast with IsBusy() which returns true if a recording is pending and is generally the safer call to make.
Definition at line 115 of file encoderlink.cpp.
Referenced by MainServer::DoHandleDeleteRecording(), MainServer::DoHandleStopRecording(), MainServer::HandleIsRecording(), Scheduler::IsBusyRecording(), and MatchesRecording().
| TVState EncoderLink::GetState | ( | void | ) |
Returns the TVState of the recorder.
Definition at line 134 of file encoderlink.cpp.
Referenced by MainServer::connectionClosed(), MainServer::DoHandleDeleteRecording(), MainServer::DoHandleStopRecording(), HttpStatus::FillStatusXML(), MainServer::HandleRemoteEncoder(), IsBusyRecording(), MatchesRecording(), and Scheduler::SchedPreserveLiveTV().
| uint EncoderLink::GetFlags | ( | void | ) | const |
Returns the flag state of the recorder.
Definition at line 155 of file encoderlink.cpp.
Referenced by MainServer::HandleRemoteEncoder().
| bool EncoderLink::IsRecording | ( | const ProgramInfo * | rec | ) |
Returns true if rec is scheduled for recording.
| rec | Recording to check. |
Definition at line 177 of file encoderlink.cpp.
| bool EncoderLink::MatchesRecording | ( | const ProgramInfo * | rec | ) |
Returns true if rec is actually being recorded by TVRec.
This waits for TVRec to enter a state other than kState_ChangingState Then it checks TVRec::GetRecording() against rec.
| rec | Recording to check against TVRec::GetRecording(). |
Definition at line 195 of file encoderlink.cpp.
Referenced by MainServer::DoHandleDeleteRecording(), MainServer::DoHandleStopRecording(), MainServer::HandleCheckRecordingActive(), MainServer::HandleGetRecorderNum(), and MainServer::HandleRemoteEncoder().
| void EncoderLink::RecordPending | ( | const ProgramInfo * | rec, | |
| int | secsleft, | |||
| bool | hasLater | |||
| ) |
Tells TVRec there is a pending recording "rec" in "secsleft" seconds.
| rec | Recording to make. | |
| secsleft | Seconds to wait before starting recording. | |
| hasLater | If true, a later non-conflicting showing is available. |
Definition at line 236 of file encoderlink.cpp.
Referenced by MainServer::HandleRemoteEncoder(), and Scheduler::RunScheduler().
| RecStatusType EncoderLink::StartRecording | ( | const ProgramInfo * | rec | ) |
Tells TVRec to Start recording the program "rec" as soon as possible.
Definition at line 345 of file encoderlink.cpp.
Referenced by Scheduler::ChangeRecordingEnd(), MainServer::HandleRemoteEncoder(), and Scheduler::RunScheduler().
| void EncoderLink::StopRecording | ( | void | ) |
Tells TVRec to stop recording immediately.
This only works on local recorders.
Definition at line 396 of file encoderlink.cpp.
Referenced by MainServer::DoHandleDeleteRecording(), MainServer::DoHandleStopRecording(), and MainServer::HandleRemoteEncoder().
| void EncoderLink::FinishRecording | ( | void | ) |
Tells TVRec to stop recording, but only after "overrecord" seconds.
This only works on local recorders.
Definition at line 414 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| void EncoderLink::FrontendReady | ( | void | ) |
Tells TVRec that the frontend is ready for data.
This only works on local recorders.
Definition at line 509 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| void EncoderLink::CancelNextRecording | ( | bool | cancel | ) |
Tells TVRec to cancel the next recording.
This is used when the user is watching "Live TV" and does not want to allow the recorder to be taken for a pending recording.
Definition at line 525 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery(), MainServer::HandleRemoteEncoder(), and MainServer::reconnectTimeout().
| bool EncoderLink::WouldConflict | ( | const ProgramInfo * | rec | ) |
Checks a recording against any recording current or pending recordings on the recorder represented by this EncoderLink.
| rec | Recording to check against current/pending recording. |
Definition at line 250 of file encoderlink.cpp.
| bool EncoderLink::IsReallyRecording | ( | void | ) |
Checks if the RecorderBase held by TVRec is actually recording.
This only works on local recorders.
Definition at line 432 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| ProgramInfo * EncoderLink::GetRecording | ( | void | ) |
Returns TVRec's current recording.
Caller is responsible for deleting the ProgramInfo when done with it.
Definition at line 379 of file encoderlink.cpp.
Referenced by HttpStatus::FillStatusXML(), MainServer::HandleIsRecording(), MainServer::HandleRecorderQuery(), MainServer::HandleRemoteEncoder(), and MainServer::reconnectTimeout().
| float EncoderLink::GetFramerate | ( | void | ) |
Returns the recording frame rate from TVRec.
This only works on local recorders.
Definition at line 448 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| long long EncoderLink::GetFramesWritten | ( | void | ) |
Returns number of frames written to disk by TVRec's RecorderBase instance.
This only works on local recorders.
Definition at line 464 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| long long EncoderLink::GetFilePosition | ( | void | ) |
Returns total number of bytes written by TVRec's RingBuffer.
This only works on local recorders.
Definition at line 479 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| long long EncoderLink::GetKeyframePosition | ( | long long | desired | ) |
Returns byte position in RingBuffer of a keyframe.
This only works on local recorders.
Definition at line 495 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| void EncoderLink::SpawnLiveTV | ( | LiveTVChain * | chain, | |
| bool | pip, | |||
| QString | startchan | |||
| ) |
Tells TVRec to Spawn a "Live TV" recorder.
This only works on local recorders.
| chain | The LiveTV chain to use | |
| startchan | The channel the LiveTV should start with | |
| pip | Tells TVRec's RingBuffer that this is for a Picture in Picture di splay. |
Definition at line 544 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| QString EncoderLink::GetChainID | ( | void | ) |
Get the LiveTV chain id that's in use.
Definition at line 555 of file encoderlink.cpp.
Referenced by MainServer::connectionClosed(), and MainServer::HandleRecorderQuery().
| void EncoderLink::StopLiveTV | ( | void | ) |
Tells TVRec to stop a "Live TV" recorder.
This only works on local recorders.
Definition at line 569 of file encoderlink.cpp.
Referenced by MainServer::connectionClosed(), and MainServer::HandleRecorderQuery().
| void EncoderLink::PauseRecorder | ( | void | ) |
Tells TVRec to pause a recorder, used for channel and input changes.
This only works on local recorders.
Definition at line 583 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| void EncoderLink::SetLiveRecording | ( | int | recording | ) |
Tells TVRec to keep a LiveTV recording if 'recording' is 1.
and to not keep a LiveTV recording if 'recording; is 0. This only works on local recorders.
Definition at line 596 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| void EncoderLink::SetNextLiveTVDir | ( | QString | dir | ) |
Tells TVRec where to put the next LiveTV recording.
Definition at line 607 of file encoderlink.cpp.
Referenced by Scheduler::GetNextLiveTVDir(), and MainServer::HandleSetNextLiveTVDir().
Returns TVRec's recorders connected inputs.
Definition at line 620 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery(), and MainServer::HandleRemoteEncoder().
| QString EncoderLink::GetInput | ( | void | ) | const |
Returns TVRec's recorders current input.
This only works on local recorders.
Definition at line 639 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| QString EncoderLink::SetInput | ( | QString | input | ) |
Tells TVRec's recorder to change to the specified input.
This only works on local recorders.
You must call PauseRecorder(void) before calling this.
| input | Input to switch to, or "SwitchToNextInput". |
Definition at line 658 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| void EncoderLink::ToggleChannelFavorite | ( | void | ) |
Toggles whether the current channel should be on our favorites list.
This only works on local recorders.
Definition at line 672 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| void EncoderLink::ChangeChannel | ( | int | channeldirection | ) |
Changes to the next or previous channel.
This only works on local recorders.
You must call PauseRecorder() before calling this.
| channeldirection | channel change direction |
Definition at line 687 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| void EncoderLink::SetChannel | ( | const QString & | name | ) |
Changes to a named channel on the current tuner.
This only works on local recorders.
You must call PauseRecorder() before calling this.
| name | Name of channel to change to. |
Definition at line 702 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| int EncoderLink::GetPictureAttribute | ( | PictureAttribute | attr | ) |
Changes brightness/contrast/colour/hue of a recording.
This only works on local recorders.
Note: In practice this only works with frame grabbing recorders.
Definition at line 718 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| int EncoderLink::ChangePictureAttribute | ( | PictureAdjustType | type, | |
| PictureAttribute | attr, | |||
| bool | direction | |||
| ) |
Changes brightness/contrast/colour/hue of a recording.
This only works on local recorders.
Note: In practice this only works with frame grabbing recorders.
Definition at line 738 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| bool EncoderLink::CheckChannel | ( | const QString & | name | ) |
Checks if named channel exists on current tuner.
This only works on local recorders.
| name | Channel to verify against current tuner. |
Definition at line 761 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| bool EncoderLink::ShouldSwitchToAnotherCard | ( | const QString & | channelid | ) |
Checks if named channel exists on current tuner, or another tuner.
This only works on local recorders.
| channelid | channel to verify against tuners. |
Definition at line 779 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| bool EncoderLink::CheckChannelPrefix | ( | const QString & | prefix, | |
| uint & | is_complete_valid_channel_on_rec, | |||
| bool & | is_extra_char_useful, | |||
| QString & | needed_spacer | |||
| ) |
Checks a prefix against the channels in the DB.
This only works on local recorders.
Definition at line 795 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| void EncoderLink::GetNextProgram | ( | int | direction, | |
| QString & | title, | |||
| QString & | subtitle, | |||
| QString & | desc, | |||
| QString & | category, | |||
| QString & | starttime, | |||
| QString & | endtime, | |||
| QString & | callsign, | |||
| QString & | iconpath, | |||
| QString & | channelname, | |||
| QString & | chanid, | |||
| QString & | seriesid, | |||
| QString & | programid | |||
| ) |
Returns information about the program that would be seen if we changed the channel using ChangeChannel(int) with "direction".
This only works on local recorders.
Definition at line 820 of file encoderlink.cpp.
Referenced by MainServer::HandleRecorderQuery().
| bool EncoderLink::SetChannelInfo | ( | uint | chanid, | |
| uint | sourceid, | |||
| QString | oldchannum, | |||
| QString | callsign, | |||
| QString | channum, | |||
| QString | channame, | |||
| QString | xmltv | |||
| ) |
Definition at line 851 of file encoderlink.cpp.
int EncoderLink::m_capturecardnum [private] |
Definition at line 109 of file encoderlink.h.
Referenced by CancelNextRecording(), GetCardID(), GetFlags(), GetFreeInputs(), GetMaxBitrate(), GetRecording(), GetState(), IsBusy(), LockTuner(), MatchesRecording(), RecordPending(), SetNextLiveTVDir(), SetSignalMonitoringRate(), and StartRecording().
PlaybackSock* EncoderLink::sock [private] |
Definition at line 111 of file encoderlink.h.
Referenced by CancelNextRecording(), CheckFile(), EncoderLink(), GetDiskSpace(), GetFlags(), GetFreeInputs(), GetMaxBitrate(), GetRecording(), GetSocket(), GetState(), IsBusy(), IsConnected(), MatchesRecording(), RecordPending(), SetNextLiveTVDir(), SetSignalMonitoringRate(), SetSocket(), and StartRecording().
QString EncoderLink::hostname [private] |
Definition at line 112 of file encoderlink.h.
long long EncoderLink::freeDiskSpaceKB [private] |
Definition at line 114 of file encoderlink.h.
TVRec* EncoderLink::tv [private] |
Definition at line 116 of file encoderlink.h.
Referenced by CancelNextRecording(), ChangeChannel(), ChangePictureAttribute(), CheckChannel(), CheckChannelPrefix(), FinishRecording(), FrontendReady(), GetChainID(), GetChannelInfo(), GetFilePosition(), GetFlags(), GetFramerate(), GetFramesWritten(), GetFreeInputs(), GetInput(), GetKeyframePosition(), GetMaxBitrate(), GetNextProgram(), GetPictureAttribute(), GetRecording(), GetState(), GetTVRec(), IsBusy(), IsReallyRecording(), MatchesRecording(), PauseRecorder(), RecordPending(), SetChannel(), SetChannelInfo(), SetInput(), SetLiveRecording(), SetNextLiveTVDir(), SetSignalMonitoringRate(), ShouldSwitchToAnotherCard(), SpawnLiveTV(), StartRecording(), StopLiveTV(), StopRecording(), ToggleChannelFavorite(), and ~EncoderLink().
bool EncoderLink::local [private] |
Definition at line 118 of file encoderlink.h.
Referenced by CancelNextRecording(), ChangeChannel(), ChangePictureAttribute(), CheckChannel(), CheckChannelPrefix(), FinishRecording(), FrontendReady(), GetChainID(), GetChannelInfo(), GetFilePosition(), GetFlags(), GetFramerate(), GetFramesWritten(), GetFreeInputs(), GetInput(), GetKeyframePosition(), GetMaxBitrate(), GetNextProgram(), GetPictureAttribute(), GetRecording(), GetState(), IsBusy(), IsLocal(), IsReallyRecording(), MatchesRecording(), PauseRecorder(), RecordPending(), SetChannel(), SetChannelInfo(), SetInput(), SetLiveRecording(), SetNextLiveTVDir(), SetSignalMonitoringRate(), ShouldSwitchToAnotherCard(), SpawnLiveTV(), StartRecording(), StopLiveTV(), StopRecording(), and ToggleChannelFavorite().
bool EncoderLink::locked [private] |
Definition at line 119 of file encoderlink.h.
Referenced by FreeTuner(), IsTunerLocked(), and LockTuner().
QDateTime EncoderLink::endRecordingTime [private] |
Definition at line 121 of file encoderlink.h.
Referenced by EncoderLink(), FinishRecording(), StartRecording(), StopRecording(), and WouldConflict().
QDateTime EncoderLink::startRecordingTime [private] |
Definition at line 122 of file encoderlink.h.
Referenced by EncoderLink(), IsRecording(), StartRecording(), and StopRecording().
QString EncoderLink::chanid [private] |
Definition at line 123 of file encoderlink.h.
Referenced by IsRecording(), StartRecording(), and StopRecording().
1.5.5