DNSSD
DNSSD::DomainModel Class Reference
#include <DNSSD/DomainModel>
Inheritance diagram for DNSSD::DomainModel:

Detailed Description
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
Definition at line 51 of file domainmodel.h.
Public Member Functions | |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
DomainModel (DomainBrowser *browser, QObject *parent=0) | |
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 |
virtual | ~DomainModel () |
Constructor & Destructor Documentation
DNSSD::DomainModel::DomainModel | ( | DomainBrowser * | browser, | |
QObject * | parent = 0 | |||
) | [explicit] |
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.
Definition at line 34 of file domainmodel.cpp.
DNSSD::DomainModel::~DomainModel | ( | ) | [virtual] |
Definition at line 46 of file domainmodel.cpp.
Member Function Documentation
int DNSSD::DomainModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Definition at line 51 of file domainmodel.cpp.
QVariant DNSSD::DomainModel::data | ( | const QModelIndex & | index, | |
int | role = Qt::DisplayRole | |||
) | const [virtual] |
Definition at line 80 of file domainmodel.cpp.
bool DNSSD::DomainModel::hasIndex | ( | int | row, | |
int | column, | |||
const QModelIndex & | parent | |||
) | const [virtual] |
Definition at line 72 of file domainmodel.cpp.
QModelIndex DNSSD::DomainModel::index | ( | int | row, | |
int | column, | |||
const QModelIndex & | parent = QModelIndex() | |||
) | const [virtual] |
Definition at line 67 of file domainmodel.cpp.
QModelIndex DNSSD::DomainModel::parent | ( | const QModelIndex & | index | ) | const [virtual] |
Definition at line 61 of file domainmodel.cpp.
int DNSSD::DomainModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Definition at line 56 of file domainmodel.cpp.
The documentation for this class was generated from the following files: