17#ifndef UNITY_SHELL_APPLICATION_APPLICATIONINFOINTERFACE_H
18#define UNITY_SHELL_APPLICATION_APPLICATIONINFOINTERFACE_H
20#include <unity/SymbolExport.h>
22#include <QtCore/QObject>
60 Q_PROPERTY(QString
name READ
name NOTIFY nameChanged)
75 Q_PROPERTY(QUrl
icon READ
icon NOTIFY iconChanged)
279 RequestedRunning = Running,
280 RequestedSuspended = Suspended
282 Q_ENUM(RequestedState)
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;
297 virtual RequestedState requestedState()
const = 0;
298 virtual void setRequestedState(RequestedState) = 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);
324 void requestedStateChanged(RequestedState value);
325 void focusedChanged(
bool focused);
326 void exemptFromLifecycleChanged(
bool exemptFromLifecycle);
327 void initialSurfaceSizeChanged(
const QSize &size);
328 void surfaceCountChanged(
int surfaceCount);
A class that holds information about applications.
Definition ApplicationInfoInterface.h:44
QString splashTitle
Splash screen title.
Definition ApplicationInfoInterface.h:105
bool splashShowHeader
Whether an application header should be shown on the splash screen.
Definition ApplicationInfoInterface.h:135
bool isTouchApp
Whether the application is an app targeting the Ubuntu Touch platform.
Definition ApplicationInfoInterface.h:197
QColor splashColorHeader
Color of the splash screen header.
Definition ApplicationInfoInterface.h:159
QUrl splashImage
Splash image.
Definition ApplicationInfoInterface.h:117
RequestedState
The desired state of an application.
Definition ApplicationInfoInterface.h:278
QString appId
The appId of the application.
Definition ApplicationInfoInterface.h:53
bool rotatesWindowContents
Whether the application UI will rotate itself to match the screen orientation.
Definition ApplicationInfoInterface.h:192
QColor splashColorFooter
Color of the splash screen footer.
Definition ApplicationInfoInterface.h:172
QString comment
The comment for the application.
Definition ApplicationInfoInterface.h:68
virtual void close()=0
Closes the application.
unity::shell::application::MirSurfaceListInterface * surfaceList
List of the top-level surfaces created by this application.
Definition ApplicationInfoInterface.h:214
Stage
A enum that defines a stage.
Definition ApplicationInfoInterface.h:245
bool exemptFromLifecycle
Whether this app is exempt from lifecycle management.
Definition ApplicationInfoInterface.h:204
void focusRequested()
The application is requesting focus.
State state
The application's state.
Definition ApplicationInfoInterface.h:82
QColor splashColor
Background color of the splash screen.
Definition ApplicationInfoInterface.h:146
unity::shell::application::MirSurfaceListInterface * promptSurfaceList
The list of top-level prompt surfaces for this application.
Definition ApplicationInfoInterface.h:219
State
An application's state.
Definition ApplicationInfoInterface.h:263
QSize initialSurfaceSize
The size to be given for new surfaces created by this application.
Definition ApplicationInfoInterface.h:209
QString name
The name of the application.
Definition ApplicationInfoInterface.h:60
RequestedState requestedState
The application's requested running state.
Definition ApplicationInfoInterface.h:87
QUrl icon
The application's icon.
Definition ApplicationInfoInterface.h:75
bool focused
The application's focus state.
Definition ApplicationInfoInterface.h:94
int surfaceCount
Count of application's surfaces.
Definition ApplicationInfoInterface.h:229
Qt::ScreenOrientations supportedOrientations
The orientations supported by the application UI.
Definition ApplicationInfoInterface.h:178
Interface for a list model of MirSurfaces.
Definition MirSurfaceListInterface.h:32
Top-level namespace for all things Unity-related.
Definition Version.h:38