17 #ifndef LAUNCHERITEM_H 18 #define LAUNCHERITEM_H 20 #include "quicklistmodel.h" 22 #include <unity/shell/launcher/LauncherItemInterface.h> 28 class LauncherItem:
public LauncherItemInterface
32 LauncherItem(
const QString &appId,
const QString &name,
const QString &icon, QObject *parent = 0);
34 QString appId()
const override;
35 QString name()
const override;
36 QString icon()
const override;
37 QStringList keywords()
const override;
38 bool pinned()
const override;
39 bool running()
const override;
40 bool recent()
const override;
41 int progress()
const override;
42 int count()
const override;
43 bool countVisible()
const override;
44 bool focused()
const override;
45 bool alerting()
const override;
46 int surfaceCount()
const override;
48 unity::shell::launcher::QuickListModelInterface *quickList()
const override;
51 void setName(
const QString &name);
52 void setIcon(
const QString &icon);
53 void setKeywords(
const QStringList &keywords);
54 void setPinned(
bool pinned);
55 void setRunning(
bool running);
56 void setRecent(
bool recent);
57 void setProgress(
int progress);
58 void setCount(
int count);
59 void setCountVisible(
bool countVisible);
60 void setFocused(
bool focused);
61 void setAlerting(
bool alerting);
62 void setSurfaceCount(
int surfaceCount);
68 QStringList m_keywords;
78 QuickListModel *m_quickList;
80 friend class LauncherModel;
83 #endif // LAUNCHERITEM_H