17 #ifndef UNITY_SHELL_APPLICATION_APPLICATIONINFOINTERFACE_H
18 #define UNITY_SHELL_APPLICATION_APPLICATIONINFOINTERFACE_H
20 #include <unity/SymbolExport.h>
22 #include <QtCore/QObject>
23 #include <QtCore/QUrl>
54 Q_PROPERTY(QString appId READ appId CONSTANT)
61 Q_PROPERTY(QString name READ name NOTIFY nameChanged)
69 Q_PROPERTY(QString comment READ comment NOTIFY commentChanged)
76 Q_PROPERTY(QUrl icon READ icon NOTIFY iconChanged)
83 Q_PROPERTY(
Stage stage READ stage NOTIFY stageChanged)
90 Q_PROPERTY(
State state READ state NOTIFY stateChanged)
95 Q_PROPERTY(
RequestedState requestedState READ requestedState WRITE setRequestedState NOTIFY requestedStateChanged)
102 Q_PROPERTY(
bool focused READ focused NOTIFY focusedChanged)
113 Q_PROPERTY(QString splashTitle READ splashTitle CONSTANT)
125 Q_PROPERTY(QUrl splashImage READ splashImage CONSTANT)
143 Q_PROPERTY(
bool splashShowHeader READ splashShowHeader CONSTANT)
154 Q_PROPERTY(QColor splashColor READ splashColor CONSTANT)
167 Q_PROPERTY(QColor splashColorHeader READ splashColorHeader CONSTANT)
180 Q_PROPERTY(QColor splashColorFooter READ splashColorFooter CONSTANT)
186 Q_PROPERTY(Qt::ScreenOrientations supportedOrientations READ supportedOrientations CONSTANT)
200 Q_PROPERTY(
bool rotatesWindowContents READ rotatesWindowContents CONSTANT)
248 RequestedRunning = Running,
249 RequestedSuspended = Suspended
255 virtual QString appId()
const = 0;
256 virtual QString name()
const = 0;
257 virtual QString comment()
const = 0;
258 virtual QUrl icon()
const = 0;
259 virtual Stage stage()
const = 0;
260 virtual State state()
const = 0;
261 virtual RequestedState requestedState()
const = 0;
262 virtual void setRequestedState(RequestedState) = 0;
263 virtual bool focused()
const = 0;
264 virtual QString splashTitle()
const = 0;
265 virtual QUrl splashImage()
const = 0;
266 virtual bool splashShowHeader()
const = 0;
267 virtual QColor splashColor()
const = 0;
268 virtual QColor splashColorHeader()
const = 0;
269 virtual QColor splashColorFooter()
const = 0;
270 virtual Qt::ScreenOrientations supportedOrientations()
const = 0;
271 virtual bool rotatesWindowContents()
const = 0;
276 void nameChanged(
const QString &name);
277 void commentChanged(
const QString &comment);
278 void iconChanged(
const QUrl &icon);
279 void stageChanged(Stage stage);
280 void stateChanged(State state);
281 void requestedStateChanged(RequestedState value);
282 void focusedChanged(
bool focused);
290 #endif // UNITY_SHELL_APPLICATIONMANAGER_APPLICATIONINFOINTERFACE_H
Top-level namespace for all things Unity-related.
Definition: Version.h:37
RequestedState
The desired state of an application.
Definition: ApplicationInfoInterface.h:247
Stage
A enum that defines a stage.
Definition: ApplicationInfoInterface.h:216
State
An application's state.
Definition: ApplicationInfoInterface.h:233
A class that holds information about applications.
Definition: ApplicationInfoInterface.h:40