19 #ifndef APPLICATION_ARGUMENTS_H 20 #define APPLICATION_ARGUMENTS_H 26 #include "UnityCommandLineParser.h" 28 class ApplicationArguments :
public QObject,
29 public UnityCommandLineParser
32 Q_PROPERTY(QString deviceName READ deviceName NOTIFY deviceNameChanged)
33 Q_PROPERTY(QString mode READ mode CONSTANT)
35 Q_PROPERTY(
bool hasGeometry READ hasGeometry CONSTANT)
36 Q_PROPERTY(QSize windowGeometry READ windowGeometry CONSTANT)
37 Q_PROPERTY(
bool hasTestability READ hasTestability CONSTANT)
38 Q_PROPERTY(
bool hasFrameless READ hasFrameless CONSTANT)
39 Q_PROPERTY(
bool hasFullscreen READ hasFullscreen CONSTANT)
40 #ifdef UNITY8_ENABLE_TOUCH_EMULATION 41 Q_PROPERTY(
bool hasMouseToTouch READ hasMouseToTouch CONSTANT)
45 ApplicationArguments(QCoreApplication *app);
47 void setDeviceName(
const QString &deviceName);
49 bool hasGeometry()
const {
return m_windowGeometry.isValid(); }
52 void deviceNameChanged(
const QString&);
55 #endif // APPLICATION_ARGUMENTS_H