alarmserver.alarmserver_qt.AlarmServerModel

Package alarmserver :: Module alarmserver_qt :: 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

Model for viewing active alarms.

Instance Methods | [hide private]
__init__(self) x.__init__(...) initializes x; see help(type(x)) for signature | source code
raise_alarm(self, alarm_nr) creates a new alarm object if the alarm number can not be found in active alarms, else the alarm counter of the active alarm is increased by 1 | source code
rowCount(self, index=QModelIndex()) | source code
columnCount(self, index=QModelIndex()) | source code
data(self, index, role=0) | source code
Inherited from `PyQt4.QtCore.QAbstractTableModel`: `dropMimeData`, `hasChildren`, `index`, `parent` Inherited from `PyQt4.QtCore.QAbstractItemModel`: `beginInsertColumns`, `beginInsertRows`, `beginMoveColumns`, `beginMoveRows`, `beginRemoveColumns`, `beginRemoveRows`, `beginResetModel`, `buddy`, `canFetchMore`, `changePersistentIndex`, `changePersistentIndexList`, `columnsAboutToBeInserted`, `columnsAboutToBeMoved`, `columnsAboutToBeRemoved`, `columnsInserted`, `columnsMoved`, `columnsRemoved`, `createIndex`, `dataChanged`, `decodeData`, `encodeData`, `endInsertColumns`, `endInsertRows`, `endMoveColumns`, `endMoveRows`, `endRemoveColumns`, `endRemoveRows`, `endResetModel`, `fetchMore`, `flags`, `hasIndex`, `headerData`, `headerDataChanged`, `insertColumn`, `insertColumns`, `insertRow`, `insertRows`, `itemData`, `layoutAboutToBeChanged`, `layoutChanged`, `match`, `mimeData`, `mimeTypes`, `modelAboutToBeReset`, `modelReset`, `persistentIndexList`, `removeColumn`, `removeColumns`, `removeRow`, `removeRows`, `reset`, `resetInternalData`, `revert`, `roleNames`, `rowsAboutToBeInserted`, `rowsAboutToBeMoved`, `rowsAboutToBeRemoved`, `rowsInserted`, `rowsMoved`, `rowsRemoved`, `setData`, `setHeaderData`, `setItemData`, `setRoleNames`, `setSupportedDragActions`, `sibling`, `sort`, `span`, `submit`, `supportedDragActions`, `supportedDropActions` Inherited from `PyQt4.QtCore.QObject`: `__getattr__`, `blockSignals`, `childEvent`, `children`, `connect`, `connectNotify`, `customEvent`, `deleteLater`, `destroyed`, `disconnect`, `disconnectNotify`, `dumpObjectInfo`, `dumpObjectTree`, `dynamicPropertyNames`, `emit`, `event`, `eventFilter`, `findChild`, `findChildren`, `inherits`, `installEventFilter`, `isWidgetType`, `killTimer`, `metaObject`, `moveToThread`, `objectName`, `property`, `pyqtConfigure`, `receivers`, `removeEventFilter`, `sender`, `senderSignalIndex`, `setObjectName`, `setParent`, `setProperty`, `signalsBlocked`, `startTimer`, `thread`, `timerEvent`, `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`: `acknowledge`, `acknowledge_all`, `clear`, `clear_all`, `define_alarm`

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

Instance Variables | [hide private]
Inherited from `alarmserver.AlarmServer`: `active_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 Parameters: `alarmserver` (AlarmServer) Overrides: alarmserver.AlarmServer.__init__

### raise_alarm(self, alarm_nr) | source code
Parameters: `alarm_nr` - number of the alarm to be raised Overrides: alarmserver.AlarmServer.raise_alarm (inherited documentation)

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

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

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