Package node_manager_fkie :: Module service_list_model :: Class ServiceItem
[frames] | no frames]

Class ServiceItem

source code

       object --+            
                |            
sip.simplewrapper --+        
                    |        
          sip.wrapper --+    
                        |    
PyQt4.QtGui.QStandardItem --+
                            |
                           ServiceItem

The service item stored in the service model. This class stores the service as master_discovery_fkie.ServiceInfo. The name of the service is represented in HTML.

Nested Classes

Inherited from PyQt4.QtGui.QStandardItem: ItemType

Instance Methods
 
__init__(self, service, parent=None)
Initialize the service item.
source code
 
updateServiceView(self, parent)
Updates the view of the service on changes.
source code
 
type(self) source code
 
data(self, role) source code

Inherited from PyQt4.QtGui.QStandardItem: __eq__, __ge__, __gt__, __le__, __lt__, __ne__, accessibleDescription, accessibleText, appendColumn, appendRow, appendRows, background, checkState, child, clone, column, columnCount, emitDataChanged, flags, font, foreground, hasChildren, icon, index, insertColumn, insertColumns, insertRow, insertRows, isCheckable, isDragEnabled, isDropEnabled, isEditable, isEnabled, isSelectable, isTristate, model, parent, read, removeColumn, removeColumns, removeRow, removeRows, row, rowCount, setAccessibleDescription, setAccessibleText, setBackground, setCheckState, setCheckable, setChild, setColumnCount, setData, setDragEnabled, setDropEnabled, setEditable, setEnabled, setFlags, setFont, setForeground, setIcon, setRowCount, setSelectable, setSizeHint, setStatusTip, setText, setTextAlignment, setToolTip, setTristate, setWhatsThis, sizeHint, sortChildren, statusTip, takeChild, takeColumn, takeRow, text, textAlignment, toolTip, whatsThis, write

Inherited from sip.simplewrapper: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods
[ServiceItem or PySide.QtGui.QStandardItem, ...]
getItemList(self, service)
Creates the list of the items from service.
source code
 
updateTypeView(cls, service, item)
Updates the representation of the column contains the type of the service.
source code
Class Variables
  ITEM_TYPE = 1037
  NAME_ROLE = 33
  TYPE_ROLE = 34
  NODENAMES_ROLE = 35

Inherited from PyQt4.QtGui.QStandardItem: Type, UserType

Instance Variables
  service
service info as master_discovery_fkie.ServiceInfo.
Properties

Inherited from object: __class__

Method Details

__init__(self, service, parent=None)
(Constructor)

source code 

Initialize the service item.

Parameters:
  • service (master_discovery_fkie.ServiceInfo) - the service object to view
Overrides: object.__init__

updateServiceView(self, parent)

source code 

Updates the view of the service on changes.

Parameters:
  • parent (PySide.QtGui.QStandardItem) - the item containing this item

type(self)

source code 
Overrides: PyQt4.QtGui.QStandardItem.type

getItemList(self, service)
Class Method

source code 

Creates the list of the items from service. This list is used for the visualization of service data as a table row.

Parameters:
  • service (master_discovery_fkie.ServiceInfo) - the service data
Returns: [ServiceItem or PySide.QtGui.QStandardItem, ...]
the list for the representation as a row

updateTypeView(cls, service, item)
Class Method

source code 

Updates the representation of the column contains the type of the service.

Parameters:
  • service (master_discovery_fkie.ServiceInfo) - the service data
  • item (ServiceItem) - corresponding item in the model

data(self, role)

source code 
Overrides: PyQt4.QtGui.QStandardItem.data