mirror of
https://github.com/RedDeadDepresso/KKAFIO.git
synced 2025-12-22 17:30:01 +00:00
26 lines
715 B
Python
26 lines
715 B
Python
# coding: utf-8
|
|
from PySide6.QtCore import QObject, Signal
|
|
from qfluentwidgets import SettingCardGroup
|
|
from app.common.logger import Logger
|
|
from app.common.script_manager import ScriptManager
|
|
|
|
class SignalBus(QObject):
|
|
""" Signal bus """
|
|
|
|
switchToSettingGroup = Signal(SettingCardGroup)
|
|
micaEnableChanged = Signal(bool)
|
|
supportSignal = Signal()
|
|
|
|
selectAllClicked = Signal()
|
|
clearAllClicked = Signal()
|
|
startSignal = Signal()
|
|
stopSignal = Signal()
|
|
loggerSignal = Signal(str)
|
|
|
|
def __init__(self, parent: QObject | None = None) -> None:
|
|
super().__init__(parent)
|
|
self.logger = Logger(self)
|
|
self.scriptManager = ScriptManager(self)
|
|
|
|
|
|
signalBus = SignalBus() |