IasAlarmGui.AlarmShelfManager
index
/home/acaproni/IasRoot/lib/python3.12/site-packages/IasAlarmGui/AlarmShelfManager.py

# This Python file uses the following encoding: utf-8

 
Modules
       
logging
threading

 
Classes
       
PySide6.QtCore.QObject(Shiboken.Object)
AlarmShelfManager

 
class AlarmShelfManager(PySide6.QtCore.QObject)
    Centralised manager for alarm shelving state.
 
Both the active and the shelved AlarmTableModel instances reference
the same AlarmShelfManager so shelving / unshelving stays consistent.
 
An alarm is added to this class (shelved) providing counter in seconds.
At each iteration, a timer task decrements by one all the counters of the alarms
and unshelves the alarms whose counter is zero.
 
 
Method resolution order:
AlarmShelfManager
PySide6.QtCore.QObject
Shiboken.Object
builtins.object

Methods defined here:
__init__(self)
Initialize self.  See help(type(self)) for accurate signature.
alarm_shelved = <PySide6.QtCore.Signal object> alarm_unshelved = <PySide6.QtCore.Signal object>
get_remaining_seconds(self, alarm_id: str) -> int
Return the remaining shelved seconds for an alarm.
Returns 0 if the alarm is not shelved.
get_shelved_alarm_ids(self) -> list[str]
Return the list of currently shelved alarm IDs.
get_shelved_count(self) -> int
is_shelved(self, alarm_id: str) -> bool
shelve(self, alarm_id: str, seconds: int)
Shelve an alarm for the given number of seconds.
 
Returns True on success, False if seconds <= 0.
timer_task(self) -> None
Called once per second by the internal QTimer.
Decrements counters for all shelved alarms and unshelves those that expire.
unshelve(self, alarm_id: str) -> bool
Unshelve an alarm.  Returns the stored IasValue so the caller can
re-insert it into the active table, or None if nothing was stored.

Data and other attributes defined here:
staticMetaObject = PySide6.QtCore.QMetaObject("AlarmShelfManager" i...re=alarm_unshelved(QString), parameters=QString )

Methods inherited from PySide6.QtCore.QObject:
__delattr__(self, name, /)
Implement delattr(self, name).
__getattribute__(self, name, /)
Return getattr(self, name).
__repr__(self, /)
Return repr(self).
__setattr__(self, name, value, /)
Implement setattr(self, name, value).
blockSignals(...)
childEvent(...)
children(...)
connectNotify(...)
customEvent(...)
deleteLater(...)
destroyed = <PySide6.QtCore.Signal object>
disconnectNotify(...)
dumpObjectInfo(...)
dumpObjectTree(...)
dynamicPropertyNames(...)
emit(...)
event(...)
eventFilter(...)
findChild(...)
findChildren(...)
inherits(...)
installEventFilter(...)
isQuickItemType(...)
isSignalConnected(...)
isWidgetType(...)
isWindowType(...)
killTimer(...)
metaObject(...)
moveToThread(...)
objectName(...)
objectNameChanged = <PySide6.QtCore.Signal object>
parent(...)
property(...)
receivers(...)
removeEventFilter(...)
sender(...)
senderSignalIndex(...)
setObjectName(...)
setParent(...)
setProperty(...)
signalsBlocked(...)
startTimer(...)
thread(...)
timerEvent(...)

Class methods inherited from PySide6.QtCore.QObject:
tr(...)

Static methods inherited from PySide6.QtCore.QObject:
__new__(*args, **kwargs) class method of PySide6.QtCore.QObject
Create and return a new object.  See help(type) for accurate signature.
connect(...)
disconnect(...)

Data descriptors inherited from Shiboken.Object:
__dict__