alarmserver.gui.AlarmServerModel

Package alarmserver :: Module gui :: Class AlarmServerModel |
[hide private]
[frames] | no frames]

# Class AlarmServerModel

source code

             object --+
                      |
      sip.simplewrapper --+
                          |
                sip.wrapper --+
                              |
           PyQt4.QtCore.QObject --+
                                  |
    PyQt4.QtCore.QAbstractItemModel --+
                                      |
       PyQt4.QtCore.QAbstractTableModel --+
                                          |
                alarmserver.AlarmServer --+
                                          |
                                         AlarmServerModel

This class allows the user access to the alarm server via the model/view mechanism of the Qt framework.

Instance Methods | [hide private]
__init__(self) x.__init__(...) initializes x; see help(type(x)) for signature | source code
_dataChanged_signal(self, alarm_nr) | source code
acknowledge(self, alarm_nr) Acknowledge a specific alarm identified via alarm_nr. | source code
acknowledge_all(self) Acknowledge all current alarms. | source code
alarm_coming(self, alarm_nr) Set the alarm with the given number to active. | source code
alarm_going(self, alarm_nr) Set the alarm with the given number to inactive. | source code
clear(self, alarm_nr) Remove the alarm with the given number from the list of current alarms. | source code
clear_all(self) Remove all alarms from the list of current alarms. | source code
columnCount(self, index=QModelIndex()) | source code
data(self, index, role=0) | source code
headerData(self, section, orientation, role=0) | source code
rowCount(self, index=QModelIndex()) | source code
Inherited from `PyQt4.QtCore.QAbstractTableModel`: `beginInsertColumns`, `beginInsertRows`, `beginMoveColumns`, `beginMoveRows`, `beginRemoveColumns`, `beginRemoveRows`, `beginResetModel`, `changePersistentIndex`, `changePersistentIndexList`, `childEvent`, `connectNotify`, `createIndex`, `customEvent`, `decodeData`, `disconnectNotify`, `dropMimeData`, `encodeData`, `endInsertColumns`, `endInsertRows`, `endMoveColumns`, `endMoveRows`, `endRemoveColumns`, `endRemoveRows`, `endResetModel`, `hasChildren`, `index`, `parent`, `persistentIndexList`, `receivers`, `reset`, `resetInternalData`, `sender`, `senderSignalIndex`, `setRoleNames`, `timerEvent` Inherited from `PyQt4.QtCore.QAbstractItemModel`: `buddy`, `canFetchMore`, `columnsAboutToBeInserted`, `columnsAboutToBeMoved`, `columnsAboutToBeRemoved`, `columnsInserted`, `columnsMoved`, `columnsRemoved`, `dataChanged`, `fetchMore`, `flags`, `hasIndex`, `headerDataChanged`, `insertColumn`, `insertColumns`, `insertRow`, `insertRows`, `itemData`, `layoutAboutToBeChanged`, `layoutChanged`, `match`, `mimeData`, `mimeTypes`, `modelAboutToBeReset`, `modelReset`, `removeColumn`, `removeColumns`, `removeRow`, `removeRows`, `revert`, `roleNames`, `rowsAboutToBeInserted`, `rowsAboutToBeMoved`, `rowsAboutToBeRemoved`, `rowsInserted`, `rowsMoved`, `rowsRemoved`, `setData`, `setHeaderData`, `setItemData`, `setSupportedDragActions`, `sibling`, `sort`, `span`, `submit`, `supportedDragActions`, `supportedDropActions` Inherited from `PyQt4.QtCore.QObject`: `__getattr__`, `blockSignals`, `children`, `connect`, `deleteLater`, `destroyed`, `disconnect`, `dumpObjectInfo`, `dumpObjectTree`, `dynamicPropertyNames`, `emit`, `event`, `eventFilter`, `findChild`, `findChildren`, `inherits`, `installEventFilter`, `isWidgetType`, `killTimer`, `metaObject`, `moveToThread`, `objectName`, `property`, `pyqtConfigure`, `removeEventFilter`, `setObjectName`, `setParent`, `setProperty`, `signalsBlocked`, `startTimer`, `thread`, `tr`, `trUtf8` Inherited from `sip.simplewrapper`: `__new__` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__` Inherited from `alarmserver.AlarmServer`: `define_alarm`

Class Variables | [hide private]
Inherited from `PyQt4.QtCore.QObject`: `staticMetaObject`

Instance Variables | [hide private]
Inherited from `alarmserver.AlarmServer`: `current_alarms`, `defined_alarms`

Properties | [hide private]
Inherited from `object`: `__class__` Inherited from `alarmserver.AlarmServer`: `unacknowledged_alarms`

Method Details | [hide private]

### __init__(self) (Constructor) | source code
x.__init__(...) initializes x; see help(type(x)) for signature Overrides: alarmserver.AlarmServer.__init__

### acknowledge(self, alarm_nr) | source code
Acknowledge a specific alarm identified via alarm_nr. Overrides: alarmserver.AlarmServer.acknowledge (inherited documentation)

### acknowledge_all(self) | source code
Acknowledge all current alarms. Overrides: alarmserver.AlarmServer.acknowledge_all (inherited documentation)

### alarm_coming(self, alarm_nr) | source code
Set the alarm with the given number to active. If the alarm is not active but in the current alarm list the counter will be raised by one. If the alarm is not in the current alarm list it will be inserted. The `time_coming` attribute is set to the current time if the alarm has been inactive. Overrides: alarmserver.AlarmServer.alarm_coming (inherited documentation)

### alarm_going(self, alarm_nr) | source code
Set the alarm with the given number to inactive. The `time_going` attribute is set to the current time if the alarm has been active. Overrides: alarmserver.AlarmServer.alarm_going (inherited documentation)

### clear(self, alarm_nr) | source code
Remove the alarm with the given number from the list of current alarms. All instance variables will be set to their initial value. Overrides: alarmserver.AlarmServer.clear (inherited documentation)

### clear_all(self) | source code
Remove all alarms from the list of current alarms. Overrides: alarmserver.AlarmServer.clear_all (inherited documentation)

### columnCount(self, index=QModelIndex()) | source code
Overrides: PyQt4.QtCore.QAbstractItemModel.columnCount

### data(self, index, role=0) | source code
Parameters: `role` - int `index` (Gui.QtCore.QModelIndex) Overrides: PyQt4.QtCore.QAbstractItemModel.data

### headerData(self, section, orientation, role=0) | source code
Overrides: PyQt4.QtCore.QAbstractItemModel.headerData

### rowCount(self, index=QModelIndex()) | source code
Overrides: PyQt4.QtCore.QAbstractItemModel.rowCount