17#ifndef LOMIRI_SHELL_APPLICATION_APPLICATIONINFOINTERFACE_H
18#define LOMIRI_SHELL_APPLICATION_APPLICATIONINFOINTERFACE_H
20#include <lomiri/SymbolExport.h>
22#include <QtCore/QObject>
27#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
28Q_MOC_INCLUDE(
"MirSurfaceListInterface.h")
64 Q_PROPERTY(QString
name READ
name NOTIFY nameChanged)
79 Q_PROPERTY(QUrl
icon READ
icon NOTIFY iconChanged)
299 RequestedRunning = Running,
300 RequestedSuspended = Suspended
302 Q_ENUM(RequestedState)
312 virtual QString appId()
const = 0;
313 virtual QString name()
const = 0;
314 virtual QString comment()
const = 0;
315 virtual QUrl icon()
const = 0;
316 virtual State state()
const = 0;
317 virtual RequestedState requestedState()
const = 0;
318 virtual void setRequestedState(RequestedState) = 0;
319 virtual bool focused()
const = 0;
320 virtual bool showSplash()
const = 0;
321 virtual QString splashTitle()
const = 0;
322 virtual QUrl splashImage()
const = 0;
323 virtual bool splashShowHeader()
const = 0;
324 virtual QColor splashColor()
const = 0;
325 virtual QColor splashColorHeader()
const = 0;
326 virtual QColor splashColorFooter()
const = 0;
327 virtual Qt::ScreenOrientations supportedOrientations()
const = 0;
328 virtual bool rotatesWindowContents()
const = 0;
329 virtual bool isTouchApp()
const = 0;
330 virtual bool exemptFromLifecycle()
const = 0;
331 virtual void setExemptFromLifecycle(
bool) = 0;
332 virtual QSize initialSurfaceSize()
const = 0;
333 virtual void setInitialSurfaceSize(
const QSize &size) = 0;
336 virtual int surfaceCount()
const = 0;
337 virtual bool serverSideDecoration()
const = 0;
342 void nameChanged(
const QString &name);
343 void commentChanged(
const QString &comment);
344 void iconChanged(
const QUrl &icon);
345 void stateChanged(State state);
346 void requestedStateChanged(RequestedState value);
347 void focusedChanged(
bool focused);
348 void exemptFromLifecycleChanged(
bool exemptFromLifecycle);
349 void initialSurfaceSizeChanged(
const QSize &size);
350 void surfaceCountChanged(
int surfaceCount);
351 void serverSideDecorationChanged(
bool ssd);
A class that holds information about applications.
Definition ApplicationInfoInterface.h:48
State state
The application's state.
Definition ApplicationInfoInterface.h:86
bool serverSideDecoration
Whether the application wants server side decoration.
Definition ApplicationInfoInterface.h:249
virtual void close()=0
Closes the application.
bool isTouchApp
Whether the application is an app targeting the Ubuntu Touch platform.
Definition ApplicationInfoInterface.h:209
bool focused
The application's focus state.
Definition ApplicationInfoInterface.h:98
QSize initialSurfaceSize
The size to be given for new surfaces created by this application.
Definition ApplicationInfoInterface.h:221
bool rotatesWindowContents
Whether the application UI will rotate itself to match the screen orientation.
Definition ApplicationInfoInterface.h:204
QColor splashColorFooter
Color of the splash screen footer.
Definition ApplicationInfoInterface.h:184
Qt::ScreenOrientations supportedOrientations
The orientations supported by the application UI.
Definition ApplicationInfoInterface.h:190
lomiri::shell::application::MirSurfaceListInterface * promptSurfaceList
The list of top-level prompt surfaces for this application.
Definition ApplicationInfoInterface.h:231
bool showSplash
Show Splash screen.
Definition ApplicationInfoInterface.h:106
QString appId
The appId of the application.
Definition ApplicationInfoInterface.h:57
QString comment
The comment for the application.
Definition ApplicationInfoInterface.h:72
QUrl splashImage
Splash image.
Definition ApplicationInfoInterface.h:129
bool splashShowHeader
Whether an application header should be shown on the splash screen.
Definition ApplicationInfoInterface.h:147
QString name
The name of the application.
Definition ApplicationInfoInterface.h:64
QColor splashColor
Background color of the splash screen.
Definition ApplicationInfoInterface.h:158
QUrl icon
The application's icon.
Definition ApplicationInfoInterface.h:79
RequestedState requestedState
The application's requested running state.
Definition ApplicationInfoInterface.h:91
lomiri::shell::application::MirSurfaceListInterface * surfaceList
List of the top-level surfaces created by this application.
Definition ApplicationInfoInterface.h:226
Stage
A enum that defines a stage.
Definition ApplicationInfoInterface.h:265
QColor splashColorHeader
Color of the splash screen header.
Definition ApplicationInfoInterface.h:171
bool exemptFromLifecycle
Whether this app is exempt from lifecycle management.
Definition ApplicationInfoInterface.h:216
int surfaceCount
Count of application's surfaces.
Definition ApplicationInfoInterface.h:241
State
An application's state.
Definition ApplicationInfoInterface.h:283
QString splashTitle
Splash screen title.
Definition ApplicationInfoInterface.h:117
RequestedState
The desired state of an application.
Definition ApplicationInfoInterface.h:298
void focusRequested()
The application is requesting focus.
Interface for a list model of MirSurfaces.
Definition MirSurfaceListInterface.h:36
Top-level namespace for all things Lomiri-related.
Definition Version.h:38