KDNSSD
servicemodel.cpp
24 connect(browser, SIGNAL(serviceAdded(KDNSSD::RemoteService::Ptr)), this, SIGNAL(layoutChanged()));
25 connect(browser, SIGNAL(serviceRemoved(KDNSSD::RemoteService::Ptr)), this, SIGNAL(layoutChanged()));
Browses for network services advertised over DNS-SD.
Definition servicebrowser.h:55
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
Definition servicemodel.cpp:92
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition servicemodel.cpp:35
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
Definition servicemodel.cpp:64
ServiceModel(ServiceBrowser *browser, QObject *parent=nullptr)
Creates a model for the given service browser and starts browsing for services.
Definition servicemodel.cpp:18
virtual bool hasIndex(int row, int column, const QModelIndex &parent) const
Definition servicemodel.cpp:50
int columnCount(const QModelIndex &parent=QModelIndex()) const override
Definition servicemodel.cpp:31
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
Definition servicemodel.cpp:45
QModelIndex createIndex(int row, int column, const void *ptr) const const
void layoutChanged(const QList< QPersistentModelIndex > &parents, QAbstractItemModel::LayoutChangeHint hint)
int column() const const
bool isValid() const const
QModelIndex parent() const const
int row() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
void setParent(QObject *parent)
QString tr(const char *sourceText, const char *disambiguation, int n)
DisplayRole
Orientation
void setValue(QVariant &&value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:10:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:10:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.