17#ifndef LOMIRI_SHELL_LAUNCHER_LAUNCHERITEM_H
18#define LOMIRI_SHELL_LAUNCHER_LAUNCHERITEM_H
20#include <lomiri/SymbolExport.h>
22#include <QtCore/QObject>
24#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
25Q_MOC_INCLUDE(
"QuickListModelInterface.h")
56 Q_PROPERTY(QString
name READ
name NOTIFY nameChanged)
61 Q_PROPERTY(QString
icon READ
icon NOTIFY iconChanged)
148 virtual QString appId()
const = 0;
149 virtual QString name()
const = 0;
150 virtual QString icon()
const = 0;
151 virtual QStringList keywords()
const = 0;
152 virtual uint popularity()
const = 0;
153 virtual bool pinned()
const = 0;
154 virtual bool running()
const = 0;
155 virtual bool recent()
const = 0;
156 virtual int progress()
const = 0;
157 virtual int count()
const = 0;
158 virtual bool countVisible()
const = 0;
159 virtual bool focused()
const = 0;
160 virtual bool alerting()
const = 0;
161 virtual int surfaceCount()
const = 0;
165 void nameChanged(
const QString &name);
166 void iconChanged(
const QString &icon);
167 void keywordsChanged(
const QStringList &keywords);
168 void popularityChanged(uint popularity);
169 void pinnedChanged(
bool pinned);
170 void runningChanged(
bool running);
171 void recentChanged(
bool running);
172 void progressChanged(
int progress);
173 void countChanged(
int count);
174 void countVisibleChanged(
bool countVisible);
175 void focusedChanged(
bool focused);
176 void alertingChanged(
bool alerting);
177 void surfaceCountChanged(
int surfaceCount);
An item presented in the launcher.
Definition LauncherItemInterface.h:45
uint popularity
The popularity of this application, e.g. usage count given by Zeitgeist.
Definition LauncherItemInterface.h:71
bool running
A flag whether the application belonging to the icon is currently running or not.
Definition LauncherItemInterface.h:81
lomiri::shell::launcher::QuickListModelInterface * quickList
The quick list menu contents for the item.
Definition LauncherItemInterface.h:139
int count
The number for the count emblem on the item.
Definition LauncherItemInterface.h:102
bool focused
The focused state of the item.
Definition LauncherItemInterface.h:116
QString icon
The full path to the icon to be shown for the item.
Definition LauncherItemInterface.h:61
QString name
The user visible name of the item.
Definition LauncherItemInterface.h:56
QStringList keywords
The keywords for this item.
Definition LauncherItemInterface.h:66
QString appId
The appId of the application associated with the item.
Definition LauncherItemInterface.h:51
bool recent
A flag wheter the application is in the recently used applications list.
Definition LauncherItemInterface.h:86
int progress
The percentage of the progress bar shown on the item.
Definition LauncherItemInterface.h:94
bool pinned
A flag whether the item is pinned or not.
Definition LauncherItemInterface.h:76
bool alerting
The alerting state of the item.
Definition LauncherItemInterface.h:123
bool countVisible
The visibility of the count emblem.
Definition LauncherItemInterface.h:109
int surfaceCount
The number of surfaces that this application entry has opened.
Definition LauncherItemInterface.h:130
A model containing QuickList actions for an application in the launcher.
Definition QuickListModelInterface.h:45
Top-level namespace for all things Lomiri-related.
Definition Version.h:38