16#include <QQmlApplicationEngine>
17#include <QQuickWindow>
18#include <QScopedPointer>
19#if defined (Q_OS_MACOS)
24Q_FORWARD_DECLARE_OBJC_CLASS(FontChangeTracker);
28class test_UiPluginQml;
38 Q_PLUGIN_METADATA(IID
"governikus.UiPlugin" FILE
"metadata.json")
39 Q_INTERFACES(governikus::UiPlugin)
43 QScopedPointer<QQmlApplicationEngine> mEngine;
45 QScopedPointer<QMenuBar> mMenuBar;
47 qsizetype mQmlEngineWarningCount;
48 bool mUpdateInformationPending;
51 bool mHighContrastEnabled;
53 bool mShowFocusIndicator;
54 constexpr static qreal DEFAULT_SCALE_FACTOR = 0.6;
56 qreal mFontScaleFactor;
59 [[nodiscard]]
static QString getOverridePlatform();
60 [[nodiscard]] QQuickWindow* getRootWindow()
const;
61 [[nodiscard]]
bool isHidden()
const;
62 [[nodiscard]]
bool showUpdateInformationIfPending();
63 [[nodiscard]] qreal getSystemFontScaleFactor()
const;
64 void setFontScaleFactor(qreal pFactor);
65 void setOsDarkMode(
bool pState);
72 FontChangeTracker*
const mFontChangeTracker;
74 const QScopedPointer<Private> mPrivate;
78 [[nodiscard]]
bool eventFilter(QObject* pObj, QEvent* pEvent)
override;
103 [[nodiscard]]
bool isChromeOS()
const override;
114 void doShutdown()
override;
115 void onWorkflowStarted(
const QSharedPointer<WorkflowRequest>& pRequest)
override;
116 void onWorkflowFinished(
const QSharedPointer<WorkflowRequest>& pRequest)
override;
117 void onApplicationInitialized()
override;
118 void onApplicationStarted()
override;
119 void onShowUi(UiModule pModule)
override;
120 void onHideUi()
override;
121 void onTranslationChanged()
override;
122 void onProxyAuthenticationRequired(
const QNetworkProxy& pProxy, QAuthenticator* pAuthenticator)
override;
123 void onUiDomination(
const UiPlugin* pUi,
const QString& pInformation,
bool pAccepted)
override;
124 void onUiDominationReleased()
override;
125 void onShowUserInformation(
const QString& pMessage)
override;
126 void onUpdateScheduled()
const;
127 void onAppcastFinished(
bool pUpdateAvailable);
129 void onQmlWarnings(
const QList<QQmlError>& pWarnings);
130 void onQmlObjectCreated(QObject* pObject);
131 void onSceneGraphError(QQuickWindow::SceneGraphError pError,
const QString& pMessage);
133 void onRawLog(
const QString& pMessage,
const QString& pCategoryName);
135 void onWindowPaletteChanged();
136 void onUseSystemFontChanged()
const;
137 void onAutoStartChanged();
138 void onAppConfigChanged();
UiPluginModel()
Definition UiPluginModel.cpp:13
Q_INVOKABLE void hideFromTaskbar() const override
Definition UiPluginQml.cpp:255
bool isChromeOS() const override
Definition UiPluginQml.cpp:901
bool isDeveloperVersion() const override
Definition UiPluginQml.cpp:732
bool getShowFocusIndicator() const override
Definition UiPluginQml.cpp:869
bool eventFilter(QObject *pObj, QEvent *pEvent) override
Definition UiPluginQml.cpp:584
static QString adjustQmlImportPath(QQmlEngine *pEngine)
Definition UiPluginQml.cpp:262
static void registerQmlTypes()
Definition UiPluginQml.cpp:166
bool isHighContrastEnabled() const override
Definition UiPluginQml.cpp:803
QString getDominator() const override
Definition UiPluginQml.cpp:738
void fireAppConfigChanged()
QVariantMap getSafeAreaMargins() const override
Definition UiPluginQml.cpp:751
~UiPluginQml() override=default
bool isOsDarkModeSupported() const override
Definition UiPluginQml.cpp:840
bool isDominated() const override
Definition UiPluginQml.cpp:744
qreal getScaleFactor() const override
Definition UiPluginQml.cpp:875
void setScaleFactor(qreal pScaleFactor) override
Definition UiPluginQml.cpp:882
QString getFixedFontFamily() const override
Definition UiPluginQml.cpp:852
qreal getFontScaleFactor() const override
Definition UiPluginQml.cpp:895
QSize getInitialWindowSize() const override
Definition UiPluginQml.cpp:858
bool isOsDarkModeEnabled() const override
Definition UiPluginQml.cpp:819
bool isDebugBuild() const override
Definition UiPluginQml.cpp:720
Q_INVOKABLE void doRefresh() override
Definition UiPluginQml.cpp:708
friend class ::test_UiPluginQml
Definition UiPluginQml.h:40
void fireTranslationChanged()
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:17