DomainModel Class Reference
from PyKDE4.dnssd import *
Inherits: QAbstractItemModel → QObject
Namespace: DNSSD
Detailed Description
\class DomainModel domainmodel.h DNSSD/DomainModel
DomainModel implements Qt Model interface around DomainBrowser to allow easy integration
of domain discovery into GUI.
Example of combo box showing list of browsing domains:
DNSSD.DomainModel* m=new DomainModel(new DNSSD.DomainBrowser(DNSSD.DomainBrowser.Browsing));
QComboBox *c=new QComboBox();
c->setModel(m);
- Since:
- 4.1
Model for list of Zeroconf domains
- Author:
- Jakub Stachowski
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
Creates model for given domain browses and starts browsing for domain. The model becomes parent of the
browser so there is no need to delete it afterwards.
int columnCount |
( |
self, |
|
|
|
QModelIndex |
parent=QModelIndex() |
|
) |
|
|
|
bool hasIndex |
( |
self, |
|
|
|
int |
row, |
|
|
int |
column, |
|
|
QModelIndex |
parent |
|
) |
|
|
|
int rowCount |
( |
self, |
|
|
|
QModelIndex |
parent=QModelIndex() |
|
) |
|
|
|