#include <CKlearAppScheduler.h>
Collaboration diagram for CKlearAppScheduler:
Signals | |
void | signalStoppingScheduled () |
emits an signal to maindialog that Recording is over, thus maindialog can for example switch button state or react on the event in general. | |
void | signalStartingScheduled () |
emits signal to maindialog that Recording will now start and Maindialog can swith button state of record button ect. | |
void | signalPushQueue () |
emits signal to maindialog to switch playback between live and recorded file or vice versa. | |
void | signalCloseMain () |
emits signal to maindialog to shutdown the system. | |
Public Member Functions | |
CKlearAppScheduler (CKlearAppConfig *const KlearConfig, CKlearAppTuner *const KlearTuner, QObject *const parent) | |
Constructor for CKlearAppScheduler Object. | |
virtual | ~CKlearAppScheduler () |
Destructor for CKlearAppScheduler Object. | |
virtual void | run () |
method called when threat is started evokes mainloop to manage recording | |
void | stop () |
method called to stop the thread, and thus any scheduling functions | |
void | startQuickRecording () |
creates an recordset with currentTime as StartTime, i.e. starts instand recording | |
void | addRecordSet (const QString RecordFile, const QDateTime startDateTime, const QDateTime endDateTime, const QString channel) |
creates a new Recordset and inserts it to the RecordStorage vector from where it will be checked wheater to start or end recording every second if recordset is the "current - one". | |
void | abortRecording () |
stops the corresponding recorder, waits for it's thread to end and therafter deletes the recorder object by calling removeRecordset() and removes RecordSet from RecordStorage vector. | |
void | removeRecordSet (const int i) |
Method call deletes the i 'th element of the RecordStorage vector and the corresponding RecordSetObject. | |
QString | getRecordFile () |
Returns the Filename and Path of either the currently active or next scheduled RecordSet as QString. | |
void | WriteScheduledRecords () |
Saves all scheduled RecordSets into the file KlearScheduledDatafile.dat which will have to be proccessed in future. Will be loaded at the next klear program launch. | |
bool | isRecordInProgress () |
returns true when Scheduler is at the moment handling a record, false when no record is in progress. | |
int | getRecordStorageSize () |
returns the size of the vector RecordStorage i.e. the number of existing RecordSets as int. | |
CKlearAppRecordSet * | getRecordSet (const int i) |
returns pointer to the i'ths CKlearAppRecordSetobject from the RecordStorage vector. | |
void | isValidRecordSet (const CKlearAppRecordSet *const rs) const |
checks the recordset for validity of its attributes i.e. valid date etc. | |
bool | isTimeShifted () |
returns timeshifting status | |
void | setTimeShifted (bool timeShifting) |
sets timeshifting status |
|
Constructor for CKlearAppScheduler Object.
|
|
Destructor for CKlearAppScheduler Object.
|
|
stops the corresponding recorder, waits for it's thread to end and therafter deletes the recorder object by calling removeRecordset() and removes RecordSet from RecordStorage vector.
|
|
creates a new Recordset and inserts it to the RecordStorage vector from where it will be checked wheater to start or end recording every second if recordset is the "current - one".
|
|
Returns the Filename and Path of either the currently active or next scheduled RecordSet as QString.
|
|
returns pointer to the i'ths CKlearAppRecordSetobject from the RecordStorage vector.
|
|
returns the size of the vector RecordStorage i.e. the number of existing RecordSets as int.
|
|
returns true when Scheduler is at the moment handling a record, false when no record is in progress.
|
|
returns timeshifting status
|
|
checks the recordset for validity of its attributes i.e. valid date etc.
|
|
Method call deletes the i 'th element of the RecordStorage vector and the corresponding RecordSetObject.
|
|
method called when threat is started evokes mainloop to manage recording
|
|
sets timeshifting status
|
|
emits signal to maindialog to shutdown the system.
|
|
emits signal to maindialog to switch playback between live and recorded file or vice versa.
|
|
emits signal to maindialog that Recording will now start and Maindialog can swith button state of record button ect.
|
|
emits an signal to maindialog that Recording is over, thus maindialog can for example switch button state or react on the event in general.
|
|
creates an recordset with currentTime as StartTime, i.e. starts instand recording
|
|
method called to stop the thread, and thus any scheduling functions
|
|
Saves all scheduled RecordSets into the file KlearScheduledDatafile.dat which will have to be proccessed in future. Will be loaded at the next klear program launch.
|