17#ifndef LOMIRI_SHELL_APPLICATION_APPLICATIONINFOINTERFACE_H
18#define LOMIRI_SHELL_APPLICATION_APPLICATIONINFOINTERFACE_H
20#include <lomiri/SymbolExport.h>
22#include <QtCore/QObject>
60 Q_PROPERTY(QString
name READ
name NOTIFY nameChanged)
75 Q_PROPERTY(QUrl
icon READ
icon NOTIFY iconChanged)
295 RequestedRunning = Running,
296 RequestedSuspended = Suspended
298 Q_ENUM(RequestedState)
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
State state
The application's state.
Definition ApplicationInfoInterface.h:82
bool serverSideDecoration
Whether the application wants server side decoration.
Definition ApplicationInfoInterface.h:245
virtual void close()=0
Closes the application.
bool isTouchApp
Whether the application is an app targeting the Ubuntu Touch platform.
Definition ApplicationInfoInterface.h:205
bool focused
The application's focus state.
Definition ApplicationInfoInterface.h:94
QSize initialSurfaceSize
The size to be given for new surfaces created by this application.
Definition ApplicationInfoInterface.h:217
bool rotatesWindowContents
Whether the application UI will rotate itself to match the screen orientation.
Definition ApplicationInfoInterface.h:200
QColor splashColorFooter
Color of the splash screen footer.
Definition ApplicationInfoInterface.h:180
Qt::ScreenOrientations supportedOrientations
The orientations supported by the application UI.
Definition ApplicationInfoInterface.h:186
lomiri::shell::application::MirSurfaceListInterface * promptSurfaceList
The list of top-level prompt surfaces for this application.
Definition ApplicationInfoInterface.h:227
bool showSplash
Show Splash screen.
Definition ApplicationInfoInterface.h:102
QString appId
The appId of the application.
Definition ApplicationInfoInterface.h:53
QString comment
The comment for the application.
Definition ApplicationInfoInterface.h:68
QUrl splashImage
Splash image.
Definition ApplicationInfoInterface.h:125
bool splashShowHeader
Whether an application header should be shown on the splash screen.
Definition ApplicationInfoInterface.h:143
QString name
The name of the application.
Definition ApplicationInfoInterface.h:60
QColor splashColor
Background color of the splash screen.
Definition ApplicationInfoInterface.h:154
QUrl icon
The application's icon.
Definition ApplicationInfoInterface.h:75
RequestedState requestedState
The application's requested running state.
Definition ApplicationInfoInterface.h:87
lomiri::shell::application::MirSurfaceListInterface * surfaceList
List of the top-level surfaces created by this application.
Definition ApplicationInfoInterface.h:222
Stage
A enum that defines a stage.
Definition ApplicationInfoInterface.h:261
QColor splashColorHeader
Color of the splash screen header.
Definition ApplicationInfoInterface.h:167
bool exemptFromLifecycle
Whether this app is exempt from lifecycle management.
Definition ApplicationInfoInterface.h:212
int surfaceCount
Count of application's surfaces.
Definition ApplicationInfoInterface.h:237
State
An application's state.
Definition ApplicationInfoInterface.h:279
QString splashTitle
Splash screen title.
Definition ApplicationInfoInterface.h:113
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