@@ -184,6 +184,29 @@ void LauncherModel::setUser(const QString &username)
184 m_backend->setUser(username);
184 m_backend->setUser(username);
187+void LauncherModel::applicationFocused(const QString &appId)
189+ int index = findApplication(appId);
192+ // TODO: Mark application as focued
194+ // FIXME: The backend does not yet support this stuff
195+ // and currently the appId still is the desktopFile
196+ //QString desktopFile = m_backend->desktopFile(appId);
197+ QString desktopFile = appId;
199+ QString appName = m_backend->displayName(appId);
200+ QString icon = m_backend->icon(appId);
202+ LauncherItem *item = new LauncherItem(appId, desktopFile, appName, icon);
203+ beginInsertRows(QModelIndex(), m_list.count(), m_list.count());
204+ m_list.append(item);
187void LauncherModel::storeAppList()
210void LauncherModel::storeAppList()
189 QStringList appIds;
212 QStringList appIds;