20 #ifndef UNITY_SHELL_LAUNCHER_LAUNCHERMODELINTERFACE_H
21 #define UNITY_SHELL_LAUNCHER_LAUNCHERMODELINTERFACE_H
23 #include <unity/SymbolExport.h>
25 #include <unity/shell/application/ApplicationManagerInterface.h>
27 #include <QtCore/QAbstractListModel>
36 class LauncherItemInterface;
55 READ applicationManager WRITE setApplicationManager NOTIFY applicationManagerChanged)
60 m_roleNames.insert(RoleAppId,
"appId");
61 m_roleNames.insert(RoleName,
"name");
62 m_roleNames.insert(RoleIcon,
"icon");
63 m_roleNames.insert(RolePinned,
"pinned");
64 m_roleNames.insert(RoleRunning,
"running");
65 m_roleNames.insert(RoleRecent,
"recent");
66 m_roleNames.insert(RoleProgress,
"progress");
67 m_roleNames.insert(RoleCount,
"count");
68 m_roleNames.insert(RoleFocused,
"focused");
79 RoleAppId = Qt::UserRole,
98 Q_INVOKABLE
virtual void move(
int oldIndex,
int newIndex) = 0;
123 Q_INVOKABLE
virtual void pin(
const QString &appId,
int index = -1) = 0;
132 Q_INVOKABLE
virtual void requestRemove(
const QString &appId) = 0;
141 Q_INVOKABLE
virtual void quickListActionInvoked(
const QString &appId,
int actionIndex) = 0;
149 Q_INVOKABLE
virtual void setUser(
const QString &username) = 0;
155 virtual QHash<int, QByteArray> roleNames()
const
163 void applicationManagerChanged();
168 QHash<int, QByteArray> m_roleNames;
177 #endif // UNITY_SHELL_LAUNCHER_LAUNCHERMODELINTERFACE_H