DomainModel Class Reference
from PyKDE4.dnssd import *
Inherits: QAbstractItemModel → QObject
Namespace: DNSSD.DomainModel
Detailed Description
DomainModel domainmodel.h DNSSD/DomainModel Model for list of Zeroconf domains
This class provides a Qt Model for DomainBrowser to allow easy integration of domain discovery into a GUI. For example, to provide a combo box listing available domains, you can do:
DNSSD.DomainModel *domainModel = new DomainModel(
new DNSSD.DomainBrowser(DNSSD.DomainBrowser.Browsing)
);
QComboBox *domainCombo = new QComboBox();
domainCombo->setModel(domainModel);
- Since:
- 4.1
Methods | |
| __init__ (self, DNSSD.DomainBrowser browser, QObject parent=0) | |
| int | columnCount (self, QModelIndex parent=QModelIndex()) |
| QVariant | data (self, QModelIndex index, int role=Qt.DisplayRole) |
| bool | hasIndex (self, int row, int column, QModelIndex parent) |
| QModelIndex | index (self, int row, int column, QModelIndex parent=QModelIndex()) |
| QModelIndex | parent (self, QModelIndex index) |
| int | rowCount (self, QModelIndex parent=QModelIndex()) |
Method Documentation
| __init__ | ( | self, | ||
| DNSSD.DomainBrowser | browser, | |||
| QObject | parent=0 | |||
| ) |
| int columnCount | ( | self, | ||
| QModelIndex | parent=QModelIndex() | |||
| ) |
| QVariant data | ( | self, | ||
| QModelIndex | index, | |||
| int | role=Qt.DisplayRole | |||
| ) |
| bool hasIndex | ( | self, | ||
| int | row, | |||
| int | column, | |||
| QModelIndex | parent | |||
| ) |
| QModelIndex index | ( | self, | ||
| int | row, | |||
| int | column, | |||
| QModelIndex | parent=QModelIndex() | |||
| ) |
| QModelIndex parent | ( | self, | ||
| QModelIndex | index | |||
| ) |
| int rowCount | ( | self, | ||
| QModelIndex | parent=QModelIndex() | |||
| ) |
KDE 4.4 PyKDE API Reference