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> 34 class MirSurfaceListInterface;
53 Q_PROPERTY(QString appId READ appId CONSTANT)
60 Q_PROPERTY(QString name READ name NOTIFY nameChanged)
68 Q_PROPERTY(QString comment READ comment NOTIFY commentChanged)
75 Q_PROPERTY(QUrl icon READ icon NOTIFY iconChanged)
82 Q_PROPERTY(
State state READ state NOTIFY stateChanged)
87 Q_PROPERTY(
RequestedState requestedState READ requestedState WRITE setRequestedState NOTIFY requestedStateChanged)
94 Q_PROPERTY(
bool focused READ focused NOTIFY focusedChanged)
105 Q_PROPERTY(QString splashTitle READ splashTitle CONSTANT)
117 Q_PROPERTY(QUrl splashImage READ splashImage CONSTANT)
135 Q_PROPERTY(
bool splashShowHeader READ splashShowHeader CONSTANT)
146 Q_PROPERTY(QColor splashColor READ splashColor CONSTANT)
159 Q_PROPERTY(QColor splashColorHeader READ splashColorHeader CONSTANT)
172 Q_PROPERTY(QColor splashColorFooter READ splashColorFooter CONSTANT)
178 Q_PROPERTY(Qt::ScreenOrientations supportedOrientations READ supportedOrientations CONSTANT)
192 Q_PROPERTY(
bool rotatesWindowContents READ rotatesWindowContents CONSTANT)
197 Q_PROPERTY(
bool isTouchApp READ isTouchApp CONSTANT)
204 Q_PROPERTY(
bool exemptFromLifecycle READ exemptFromLifecycle WRITE setExemptFromLifecycle NOTIFY exemptFromLifecycleChanged)
209 Q_PROPERTY(QSize initialSurfaceSize READ initialSurfaceSize WRITE setInitialSurfaceSize NOTIFY initialSurfaceSizeChanged)
229 Q_PROPERTY(
int surfaceCount READ surfaceCount NOTIFY surfaceCountChanged)
279 RequestedRunning = Running,
280 RequestedSuspended = Suspended
287 virtual void close() = 0;
292 virtual QString appId()
const = 0;
293 virtual QString name()
const = 0;
294 virtual QString comment()
const = 0;
295 virtual QUrl icon()
const = 0;
296 virtual State state()
const = 0;
299 virtual bool focused()
const = 0;
300 virtual QString splashTitle()
const = 0;
301 virtual QUrl splashImage()
const = 0;
302 virtual bool splashShowHeader()
const = 0;
303 virtual QColor splashColor()
const = 0;
304 virtual QColor splashColorHeader()
const = 0;
305 virtual QColor splashColorFooter()
const = 0;
306 virtual Qt::ScreenOrientations supportedOrientations()
const = 0;
307 virtual bool rotatesWindowContents()
const = 0;
308 virtual bool isTouchApp()
const = 0;
309 virtual bool exemptFromLifecycle()
const = 0;
310 virtual void setExemptFromLifecycle(
bool) = 0;
311 virtual QSize initialSurfaceSize()
const = 0;
312 virtual void setInitialSurfaceSize(
const QSize &size) = 0;
315 virtual int surfaceCount()
const = 0;
320 void nameChanged(
const QString &name);
321 void commentChanged(
const QString &comment);
322 void iconChanged(
const QUrl &icon);
323 void stateChanged(
State state);
325 void focusedChanged(
bool focused);
326 void exemptFromLifecycleChanged(
bool exemptFromLifecycle);
327 void initialSurfaceSizeChanged(
const QSize &size);
328 void surfaceCountChanged(
int surfaceCount);
334 void focusRequested();
343 #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:278
Interface for a list model of MirSurfaces.
Definition: MirSurfaceListInterface.h:31
Stage
A enum that defines a stage.
Definition: ApplicationInfoInterface.h:245
State
An application's state.
Definition: ApplicationInfoInterface.h:263
A class that holds information about applications.
Definition: ApplicationInfoInterface.h:43