KNewStuff
8#ifndef KNEWSTUFF3_ITEMSMODEL_P_H
9#define KNEWSTUFF3_ITEMSMODEL_P_H
11#include <QAbstractListModel>
15#include "knewstuffcore_export.h"
22class ItemsModelPrivate;
24class KNEWSTUFFCORE_EXPORT ItemsModel :
public QAbstractListModel
28 explicit ItemsModel(EngineBase *engine, QObject *parent =
nullptr);
29 ~ItemsModel()
override;
31 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
32 QVariant data(
const QModelIndex &index,
int role =
Qt::DisplayRole)
const override;
38 int row(
const Entry &entry)
const;
40 void addEntry(
const Entry &entry);
41 void removeEntry(
const Entry &entry);
43 bool hasPreviewImages()
const;
46 void jobStarted(KJob *,
const QString &label);
47 void loadPreview(
const KNSCore::Entry &entry, KNSCore::Entry::PreviewType type);
50 void slotEntryChanged(
const KNSCore::Entry &entry);
51 void slotEntriesLoaded(
const KNSCore::Entry::List &entries);
53 void slotEntryPreviewLoaded(
const KNSCore::Entry &entry, KNSCore::Entry::PreviewType type);
56 const std::unique_ptr<ItemsModelPrivate> d;
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:50:44 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.