20 #ifndef QUICKLISTMODEL_H
21 #define QUICKLISTMODEL_H
23 #include "quicklistentry.h"
25 #include <lomiri/shell/launcher/QuickListModelInterface.h>
27 using namespace lomiri::shell::launcher;
29 class QuickListModel:
public QuickListModelInterface
34 explicit QuickListModel(QObject *parent = 0);
38 void appendAction(
const QuickListEntry &entry);
39 void insertAction(
const QuickListEntry &entry,
int index);
48 void updateAction(
const QuickListEntry &entry);
50 void removeAction(
const QuickListEntry &entry);
52 QuickListEntry get(
int index)
const;
54 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
55 QVariant data(
const QModelIndex &index,
int role)
const override;
58 QList<QuickListEntry> m_list;