20 #ifndef LAUNCHERITEM_H 21 #define LAUNCHERITEM_H 23 #include "quicklistmodel.h" 25 #include <unity/shell/launcher/LauncherItemInterface.h> 26 #include <unity/shell/application/MirSurfaceInterface.h> 32 class LauncherItem:
public LauncherItemInterface
36 LauncherItem(
const QString &appId,
const QString &name,
const QString &icon, QObject *parent);
38 QString appId()
const override;
39 QString name()
const override;
40 QString icon()
const override;
41 QStringList keywords()
const override;
42 bool pinned()
const override;
43 bool running()
const override;
44 bool recent()
const override;
45 int progress()
const override;
46 int count()
const override;
47 bool countVisible()
const override;
48 bool focused()
const override;
49 bool alerting()
const override;
50 int surfaceCount()
const override;
52 unity::shell::launcher::QuickListModelInterface *quickList()
const override;
55 void setName(
const QString &name);
56 void setIcon(
const QString &icon);
57 void setKeywords(
const QStringList &keywords);
58 void setPinned(
bool pinned);
59 void setRunning(
bool running);
60 void setRecent(
bool recent);
61 void setProgress(
int progress);
62 void setCount(
int count);
63 void setCountVisible(
bool countVisible);
64 void setFocused(
bool focused);
65 void setAlerting(
bool alerting);
66 void setSurfaces(
const QList<QPair<QString, QString >> &surfaces);
72 QStringList m_keywords;
81 QList<QPair<QString, QString> > m_surfaces;
82 QuickListModel *m_quickList;
83 QuickListEntry m_quitAction;
85 friend class LauncherModel;
86 friend class AppDrawerModel;
89 #endif // LAUNCHERITEM_H