DNSSD
Go to the documentation of this file.
28 struct ServiceModelPrivate
30 ServiceBrowser* m_browser;
38 browser->setParent(
this);
40 SIGNAL(layoutChanged()));
42 SIGNAL(layoutChanged()));
53 return d->m_browser->isAutoResolving() ? 3 : 1;
57 return (parent.isValid()) ? 0 : d->m_browser->services().size();
67 return hasIndex(row, column, parent) ? createIndex(row, column) : QModelIndex();
72 if (parent.isValid())
return false;
73 if (column<0 || column>=
columnCount())
return false;
74 if (row<0 || row>=
rowCount(parent))
return false;
80 if (!index.isValid())
return QVariant();
81 if (!
hasIndex(index.row(), index.column(), index.parent()))
return QVariant();
85 switch (index.column()) {
86 case ServiceName:
return srv[index.row()]->serviceName();
87 case Host:
return srv[index.row()]->hostName();
88 case Port:
return srv[index.row()]->port();
91 ret.setValue(srv[index.row()]);
99 if (orientation!=Qt::Horizontal || role!=Qt::DisplayRole)
return QVariant();
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Sep 23 2014 09:59:35 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.