DNSSD
#include <DNSSD/DomainModel>
Public Member Functions | |
DomainModel (DomainBrowser *browser, QObject *parent=0) | |
virtual | ~DomainModel () |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
virtual bool | hasIndex (int row, int column, const QModelIndex &parent) const |
virtual QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
virtual QModelIndex | parent (const QModelIndex &index) const |
virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
Detailed Description
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:
- Since
- 4.1
Definition at line 53 of file domainmodel.h.
Constructor & Destructor Documentation
|
explicit |
Creates a model for given domain browser and starts browsing for domains.
The model takes ownership of the browser, so there is no need to delete it afterwards.
You should not call DomainBrowser::startBrowse() on browser
before passing it to DomainModel.
- Parameters
-
browser the domain browser that will provide the domains to be listed by the model parent the parent object (see QObject documentation)
Definition at line 34 of file domainmodel.cpp.
|
virtual |
Definition at line 46 of file domainmodel.cpp.
Member Function Documentation
|
virtual |
- Reimplemented from superclass.
Definition at line 51 of file domainmodel.cpp.
|
virtual |
- Reimplemented from superclass.
Definition at line 80 of file domainmodel.cpp.
|
virtual |
- Reimplemented from superclass.
Definition at line 72 of file domainmodel.cpp.
|
virtual |
- Reimplemented from superclass.
Definition at line 67 of file domainmodel.cpp.
|
virtual |
- Reimplemented from superclass.
Definition at line 61 of file domainmodel.cpp.
|
virtual |
- Reimplemented from superclass.
Definition at line 56 of file domainmodel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:30 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.