20 #ifndef QUICKLISTMODEL_H
21 #define QUICKLISTMODEL_H
23 #include "quicklistentry.h"
25 #include <unity/shell/launcher/QuickListModelInterface.h>
29 class QuickListModel:
public QuickListModelInterface
34 explicit QuickListModel(QObject *parent = 0);
38 void appendAction(
const QuickListEntry &entry);
47 void updateAction(
const QuickListEntry &entry);
49 void removeAction(
const QuickListEntry &entry);
51 QuickListEntry
get(
int index)
const;
53 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
54 QVariant data(
const QModelIndex &index,
int role)
const override;
57 QList<QuickListEntry> m_list;
60 #endif // QUICKLISTMODEL_H