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