khulnasoft's picture
Upload 48 files
9b674e9 verified
raw
history blame contribute delete
963 Bytes
from PyQt5.QtCore import pyqtSignal, QObject
class SignalHandler(QObject):
"""
A QObject subclass to handle signals used in the GUI application.
This class defines several signals that can be used to communicate
between different components of the GUI application.
Signals:
- recording_started: Signal emitted when recording is started.
- recording_stopped: Signal emitted when recording is stopped.
- assistant_thinking: Signal emitted when the assistant is processing a request.
- assistant_response_ready: Signal emitted when the assistant response is ready to be displayed.
- assistant_response_stopped: Signal emitted when the assistant response display is stopped.
"""
recording_started = pyqtSignal()
recording_stopped = pyqtSignal()
assistant_thinking = pyqtSignal()
assistant_response_ready = pyqtSignal()
assistant_response_stopped = pyqtSignal()
signal_handler = SignalHandler()