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);
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;
48 int surfaceCount()
const override;
50 unity::shell::launcher::QuickListModelInterface *quickList()
const override;
53 void setName(
const QString &name);
54 void setIcon(
const QString &icon);
55 void setPinned(
bool pinned);
56 void setRunning(
bool running);
57 void setRecent(
bool recent);
58 void setProgress(
int progress);
59 void setCount(
int count);
60 void setCountVisible(
bool countVisible);
61 void setFocused(
bool focused);
62 void setAlerting(
bool alerting);
63 void setSurfaceCount(
int surfaceCount);
78 QuickListModel *m_quickList;
79 QuickListEntry m_quitAction;
81 friend class LauncherModel;
84 #endif // LAUNCHERITEM_H