17#ifndef LOMIRI_SHELL_APPLICATION_APPLICATIONINFOINTERFACE_H
18#define LOMIRI_SHELL_APPLICATION_APPLICATIONINFOINTERFACE_H
20#include <lomiri/SymbolExport.h>
22#include <QtCore/QObject>
34class 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)
102 Q_PROPERTY(
bool showSplash READ showSplash CONSTANT)
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)
205 Q_PROPERTY(
bool isTouchApp READ isTouchApp CONSTANT)
212 Q_PROPERTY(
bool exemptFromLifecycle READ exemptFromLifecycle WRITE setExemptFromLifecycle NOTIFY exemptFromLifecycleChanged)
217 Q_PROPERTY(QSize initialSurfaceSize READ initialSurfaceSize WRITE setInitialSurfaceSize NOTIFY initialSurfaceSizeChanged)
237 Q_PROPERTY(
int surfaceCount READ surfaceCount NOTIFY surfaceCountChanged)
245 Q_PROPERTY(
bool serverSideDecoration READ serverSideDecoration NOTIFY serverSideDecorationChanged)
295 RequestedRunning = Running,
296 RequestedSuspended = Suspended
298 Q_ENUM(RequestedState)
303 virtual
void close() = 0;
308 virtual QString appId()
const = 0;
309 virtual QString name()
const = 0;
310 virtual QString comment()
const = 0;
311 virtual QUrl icon()
const = 0;
312 virtual State state()
const = 0;
313 virtual RequestedState requestedState()
const = 0;
314 virtual void setRequestedState(RequestedState) = 0;
315 virtual bool focused()
const = 0;
316 virtual bool showSplash()
const = 0;
317 virtual QString splashTitle()
const = 0;
318 virtual QUrl splashImage()
const = 0;
319 virtual bool splashShowHeader()
const = 0;
320 virtual QColor splashColor()
const = 0;
321 virtual QColor splashColorHeader()
const = 0;
322 virtual QColor splashColorFooter()
const = 0;
323 virtual Qt::ScreenOrientations supportedOrientations()
const = 0;
324 virtual bool rotatesWindowContents()
const = 0;
325 virtual bool isTouchApp()
const = 0;
326 virtual bool exemptFromLifecycle()
const = 0;
327 virtual void setExemptFromLifecycle(
bool) = 0;
328 virtual QSize initialSurfaceSize()
const = 0;
329 virtual void setInitialSurfaceSize(
const QSize &size) = 0;
332 virtual int surfaceCount()
const = 0;
333 virtual bool serverSideDecoration()
const = 0;
338 void nameChanged(
const QString &name);
339 void commentChanged(
const QString &comment);
340 void iconChanged(
const QUrl &icon);
341 void stateChanged(State state);
342 void requestedStateChanged(RequestedState value);
343 void focusedChanged(
bool focused);
344 void exemptFromLifecycleChanged(
bool exemptFromLifecycle);
345 void initialSurfaceSizeChanged(
const QSize &size);
346 void surfaceCountChanged(
int surfaceCount);
347 void serverSideDecorationChanged(
bool ssd);
A class that holds information about applications.
Definition ApplicationInfoInterface.h:44
Stage
A enum that defines a stage.
Definition ApplicationInfoInterface.h:261
State
An application's state.
Definition ApplicationInfoInterface.h:279
RequestedState
The desired state of an application.
Definition ApplicationInfoInterface.h:294
void focusRequested()
The application is requesting focus.
Interface for a list model of MirSurfaces.
Definition MirSurfaceListInterface.h:32
Top-level namespace for all things Lomiri-related.
Definition Version.h:38