Marble
6#ifndef MARBLE_SPEAKERSMODEL_H
7#define MARBLE_SPEAKERSMODEL_H
9#include "marble_export.h"
11#include <QAbstractListModel>
16class SpeakersModelPrivate;
18class MARBLE_EXPORT SpeakersModel :
public QAbstractListModel
22 Q_PROPERTY(
int count READ count NOTIFY countChanged)
25 enum SpeakersModelRoles {
33 explicit SpeakersModel(QObject *parent =
nullptr);
36 ~SpeakersModel()
override;
39 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
42 QVariant data(
const QModelIndex &index,
int role =
Qt::DisplayRole)
const override;
45 QHash<int, QByteArray> roleNames()
const override;
51 int indexOf(
const QString &name);
53 QString
path(
int index);
55 void install(
int index);
57 bool isLocal(
int index)
const;
59 bool isRemote(
int index)
const;
64 void installationProgressed(
int newstuffindex, qreal progress);
66 void installationFinished(
int index);
69 SpeakersModelPrivate *
const d;
70 friend class SpeakersModelPrivate;
72 Q_PRIVATE_SLOT(d,
void fillModel())
74 Q_PRIVATE_SLOT(d,
void handleInstallationProgress(
int row, qreal progress))
76 Q_PRIVATE_SLOT(d,
void handleInstallation(
int row))
QString path(const QString &relativePath)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:10 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.