7#include <QtCore/qabstractitemmodel.h>
8#include <QtDBus/QDBusConnection>
24 QDBusModel(
const QString &service,
const QDBusConnection &connection);
28 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const override;
30 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
31 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
41 void refresh(
const QModelIndex &index = QModelIndex());
49 QDomDocument introspect(
const QString &path);
50 void addMethods(
QDBusItem *parent,
const QDomElement &iface);
QString dBusMethodName(const QModelIndex &index) const
int columnCount(const QModelIndex &parent=QModelIndex()) const override
Returns the number of columns for the children of the given parent.
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
Returns the data stored under the given role for the item referred to by the index.
QString dBusTypeSignature(const QModelIndex &index) const
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Returns the number of rows under the given parent.
QModelIndex parent(const QModelIndex &child) const override
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
Returns the data for the given role and section in the header with the specified orientation.
void refresh(const QModelIndex &index=QModelIndex())
QString dBusPath(const QModelIndex &index) const
QModelIndex findObject(const QDBusObjectPath &objectPath)
Type itemType(const QModelIndex &index) const
QString dBusInterface(const QModelIndex &index) const
QDBusModel(const QString &service, const QDBusConnection &connection)
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
Returns the index of the item in the model specified by the given row, column and parent index.
QT_FORWARD_DECLARE_CLASS(QDomDocument)
QT_FORWARD_DECLARE_CLASS(QDomElement)
QList< QDBusItem * > children
QDBusItem(QDBusModel::Type aType, const QString &aName, QDBusItem *aParent=0)