17 #ifndef QUICKLISTMODEL_H
18 #define QUICKLISTMODEL_H
20 #include "quicklistentry.h"
22 #include <unity/shell/launcher/QuickListModelInterface.h>
26 class QuickListModel:
public QuickListModelInterface
31 explicit QuickListModel(QObject *parent = 0);
35 void appendAction(
const QuickListEntry &entry);
44 void updateAction(
const QuickListEntry &entry);
46 QuickListEntry
get(
int index)
const;
48 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
49 QVariant data(
const QModelIndex &index,
int role)
const override;
52 QList<QuickListEntry> m_list;
55 #endif // QUICKLISTMODEL_H