20 #ifndef LAUNCHERITEM_H
21 #define LAUNCHERITEM_H
23 #include "quicklistmodel.h"
25 #include <unity/shell/launcher/LauncherItemInterface.h>
31 class LauncherItem:
public LauncherItemInterface
35 LauncherItem(
const QString &appId,
const QString &name,
const QString &icon, QObject *parent = 0);
37 QString appId()
const override;
38 QString name()
const override;
39 QString icon()
const override;
40 bool pinned()
const override;
41 bool running()
const override;
42 bool recent()
const override;
43 int progress()
const override;
44 int count()
const override;
45 bool countVisible()
const override;
46 bool focused()
const override;
47 bool alerting()
const override;
49 unity::shell::launcher::QuickListModelInterface *quickList()
const override;
52 void setName(
const QString &name);
53 void setIcon(
const QString &icon);
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);
75 QuickListModel *m_quickList;
76 QuickListEntry m_quitAction;
78 friend class LauncherModel;
81 #endif // LAUNCHERITEM_H