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 QStringList keywords()
const override;
41 bool pinned()
const override;
42 bool running()
const override;
43 bool recent()
const override;
44 int progress()
const override;
45 int count()
const override;
46 bool countVisible()
const override;
47 bool focused()
const override;
48 bool alerting()
const override;
49 int surfaceCount()
const override;
51 unity::shell::launcher::QuickListModelInterface *quickList()
const override;
54 void setName(
const QString &name);
55 void setIcon(
const QString &icon);
56 void setKeywords(
const QStringList &keywords);
57 void setPinned(
bool pinned);
58 void setRunning(
bool running);
59 void setRecent(
bool recent);
60 void setProgress(
int progress);
61 void setCount(
int count);
62 void setCountVisible(
bool countVisible);
63 void setFocused(
bool focused);
64 void setAlerting(
bool alerting);
65 void setSurfaceCount(
int surfaceCount);
71 QStringList m_keywords;
81 QuickListModel *m_quickList;
82 QuickListEntry m_quitAction;
84 friend class LauncherModel;
85 friend class AppDrawerModel;
88 #endif // LAUNCHERITEM_H