17 #include <QQmlApplicationEngine> 18 #include <QQuickWindow> 19 #include <QScopedPointer> 20 #if defined (Q_OS_MACOS) 31 Q_PLUGIN_METADATA(IID
"governikus.UIPlugIn" FILE
"metadata.json")
32 Q_INTERFACES(governikus::UIPlugIn)
41 Q_PROPERTY(
bool tablet READ isTablet CONSTANT)
44 QScopedPointer<QQmlApplicationEngine> mEngine;
45 int mQmlEngineWarningCount;
46 QString mExplicitPlatformStyle;
47 bool mUpdateInformationPending;
50 bool mHighContrastEnabled;
51 #if defined(Q_OS_MACOS) 55 QString getPlatformSelectors()
const;
56 static QUrl getPath(
const QString& pRelativePath,
bool pQrc =
true);
57 QQuickWindow* getRootWindow()
const;
58 bool isHidden()
const;
59 bool isTablet()
const;
60 bool isTabletLayout()
const;
61 bool showUpdateInformationIfPending();
79 Q_INVOKABLE
void init();
92 void doShutdown()
override;
93 void onWorkflowStarted(QSharedPointer<WorkflowContext> pContext)
override;
94 void onWorkflowFinished(QSharedPointer<WorkflowContext> pContext)
override;
95 void onApplicationInitialized()
override;
96 void onApplicationStarted()
override;
97 void onShowUi(UiModule pModule)
override;
98 void onHideUi()
override;
99 void onTranslationChanged()
override;
100 void onProxyAuthenticationRequired(
const QNetworkProxy& pProxy, QAuthenticator* pAuthenticator)
override;
101 void onUiDomination(
const UIPlugIn* pUi,
const QString& pInformation,
bool pAccepted)
override;
102 void onUiDominationReleased()
override;
103 void onShowUserInformation(
const QString& pMessage);
104 void onUpdateScheduled();
105 void onUpdateAvailable(
bool pUpdateAvailable,
const GlobalStatus& pStatus);
107 void onQmlWarnings(
const QList<QQmlError>& pWarnings);
108 void onQmlObjectCreated(QObject* pObject);
109 void onSceneGraphError(QQuickWindow::SceneGraphError pError,
const QString& pMessage);
111 void onRawLog(
const QString& pMessage,
const QString& pCategoryName);
113 void onWindowPaletteChanged();
Definition: UIPlugInQml.h:27
bool isDeveloperVersion() const
Definition: UIPlugInQml.cpp:717
Definition: TrayIcon.h:19
bool isDominated() const
Definition: UIPlugInQml.cpp:729
QString fixedFontFamily
Definition: UIPlugInQml.h:40
bool developerVersion
Definition: UIPlugInQml.h:35
bool isHighContrastEnabled() const
Definition: UIPlugInQml.cpp:787
void doRefresh()
Definition: UIPlugInQml.cpp:692
bool highContrastEnabled
Definition: UIPlugInQml.h:39
Definition: GlobalStatus.h:19
QVariantMap safeAreaMargins
Definition: UIPlugInQml.h:38
QString platformStyle
Definition: UIPlugInQml.h:33
void fireDominatorChanged()
Definition: ProxyCredentials.h:15
bool debugBuild
Definition: UIPlugInQml.h:34
Q_INVOKABLE void init()
Definition: UIPlugInQml.cpp:231
Q_INVOKABLE void applyPlatformStyle(const QString &pPlatformStyle)
Definition: UIPlugInQml.cpp:821
bool tablet
Definition: UIPlugInQml.h:41
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:14
bool dominated
Definition: UIPlugInQml.h:37
void fireProxyAuthenticationRequired(ProxyCredentials *pProxyCredentials)
QString dominator
Definition: UIPlugInQml.h:36
void fireSafeAreaMarginsChanged()
~UIPlugInQml() override=default
void fireShowRequest(UiModule pModule)
void fireHighContrastEnabledChanged()
UIPlugInQml()
Definition: UIPlugInQml.cpp:133
QString getFixedFontFamily() const
Definition: UIPlugInQml.cpp:804
QString getPlatformStyle() const
Definition: UIPlugInQml.cpp:699
Q_INVOKABLE void hideFromTaskbar()
Definition: UIPlugInQml.cpp:293
QString getDominator() const
Definition: UIPlugInQml.cpp:723
QVariantMap getSafeAreaMargins() const
Definition: UIPlugInQml.cpp:736
static void registerQmlTypes()
Definition: UIPlugInQml.cpp:191
bool isDebugBuild() const
Definition: UIPlugInQml.cpp:705