nexxT.services.SrvRecordingControl module
This module provides the recording control console service for the nexxT framework.
- class nexxT.services.SrvRecordingControl.MVCRecordingControlBase(config)[source]
Bases:
QObjectBase class for interacting with playback controller, usually this is connected to a harddisk player.
- __init__(self, /, parent: PySide6.QtCore.QObject | None = None, *, objectName: str | None = None) None[source]
Initialize self. See help(type(self)) for accurate signature.
- notifyError
- removeConnections(recordingDevice)[source]
unregisters the given recordingDevice and disconnects all. It is intended that this function is called in the onStop(…) method of a filter.
- Parameters:
recordingDevice – the recording device to be unregistered.
- Returns:
None
- setupConnections(recordingDevice)[source]
Sets up signal/slot connections between this view/controller instance and the given playbackDevice. This function is thread safe and shall be called by a direct QT connection. It is intended, that this function is called in the onStart(…) method of a filter. It expects recordingDevice to provide the following slots:
startRecording(str directory) (starts recording DataSamples)
stopRecording() (stop the recording)
It expects recordingDevice to provide the following signals (all signals are optional):
statusUpdate(str file, float lengthInSeconds, int bytesWritten)
notifyError(str errorDescription)
- Parameters:
recordingDevice – a QObject providing the aforementioned signals and slots
- Returns:
- startRecording(directory)[source]
Starts the recording in the given directory
- Parameters:
directory – The directory where to store the recordings
- Returns:
- stateChanged(state)[source]
Stops the recording when application is stopped.
- Parameters:
state – the new filter state
- Returns:
- staticMetaObject = PySide6.QtCore.QMetaObject("MVCRecordingControlBase" inherits "QObject": Methods: #4 type=Signal, signature=_startRecording(QString), parameters=QString #5 type=Signal, signature=_stopRecording() #6 type=Signal, signature=statusUpdate(QObject*,QString,double,qlonglong), parameters=QObject*, QString, double, qlonglong #7 type=Signal, signature=notifyError(QObject*,QString), parameters=QObject*, QString #8 type=Slot, signature=setupConnections(QObject*), parameters=QObject* #9 type=Slot, signature=removeConnections(QObject*), parameters=QObject* #10 type=Slot, signature=_statusUpdate(QString,double,qlonglong), parameters=QString, double, qlonglong #11 type=Slot, signature=stateChanged(int), parameters=int )
- statusUpdate