19#include <QQmlApplicationEngine>
20#include <QQuickWindow>
21#include <QScopedPointer>
22#if defined (Q_OS_MACOS)
33 Q_PLUGIN_METADATA(IID
"governikus.UIPlugIn" FILE
"metadata.json")
34 Q_INTERFACES(governikus::UIPlugIn)
43 Q_PROPERTY(
bool tablet READ isTablet CONSTANT)
49 QScopedPointer<QQmlApplicationEngine> mEngine;
50 int mQmlEngineWarningCount;
51 QString mExplicitPlatformStyle;
52 bool mUpdateInformationPending;
55 bool mHighContrastEnabled;
56#if defined(Q_OS_MACOS)
59 bool mShowFocusIndicator;
61 [[nodiscard]] QString getPlatformSelectors()
const;
62 [[nodiscard]]
static QUrl getPath(
const QString& pRelativePath,
bool pQrc =
true);
63 [[nodiscard]] QQuickWindow* getRootWindow()
const;
64 [[nodiscard]]
bool isHidden()
const;
65 [[nodiscard]]
bool isTablet()
const;
67 [[nodiscard]]
bool showUpdateInformationIfPending();
70 [[nodiscard]]
bool eventFilter(QObject* pObj, QEvent* pEvent)
override;
90 Q_INVOKABLE
void init();
105 void doShutdown()
override;
106 void onWorkflowStarted(QSharedPointer<WorkflowContext> pContext)
override;
107 void onWorkflowFinished(QSharedPointer<WorkflowContext> pContext)
override;
108 void onApplicationInitialized()
override;
109 void onApplicationStarted()
override;
110 void onShowUi(UiModule pModule)
override;
111 void onHideUi()
override;
112 void onTranslationChanged()
override;
113 void onProxyAuthenticationRequired(
const QNetworkProxy& pProxy, QAuthenticator* pAuthenticator)
override;
114 void onUiDomination(
const UIPlugIn* pUi,
const QString& pInformation,
bool pAccepted)
override;
115 void onUiDominationReleased()
override;
116 void onShowUserInformation(
const QString& pMessage)
override;
117 void onUpdateScheduled();
118 void onUpdateAvailable(
bool pUpdateAvailable,
const GlobalStatus& pStatus);
120 void onQmlWarnings(
const QList<QQmlError>& pWarnings);
121 void onQmlObjectCreated(QObject* pObject);
122 void onSceneGraphError(QQuickWindow::SceneGraphError pError,
const QString& pMessage);
124 void onRawLog(
const QString& pMessage,
const QString& pCategoryName);
126 void onWindowPaletteChanged();
127 void onAutoStartChanged();
Definition: GlobalStatus.h:22
Definition: ProxyCredentials.h:17
Definition: TrayIcon.h:21
Definition: UIPlugInQml.h:31
~UIPlugInQml() override=default
void fireShowRequest(UiModule pModule)
QString getPlatformStyle() const
Definition: UIPlugInQml.cpp:812
Q_INVOKABLE void hideFromTaskbar()
Definition: UIPlugInQml.cpp:315
void fireShowFocusIndicator()
bool isDeveloperVersion() const
Definition: UIPlugInQml.cpp:830
bool eventFilter(QObject *pObj, QEvent *pEvent) override
Definition: UIPlugInQml.cpp:644
QString dominator
Definition: UIPlugInQml.h:38
QVariantMap safeAreaMargins
Definition: UIPlugInQml.h:40
bool isTabletLayout
Definition: UIPlugInQml.h:44
void fireSafeAreaMarginsChanged()
bool highContrastEnabled
Definition: UIPlugInQml.h:41
bool isHighContrastEnabled() const
Definition: UIPlugInQml.cpp:901
QString getDominator() const
Definition: UIPlugInQml.cpp:836
static void registerQmlTypes()
Definition: UIPlugInQml.cpp:215
bool isDominated() const
Definition: UIPlugInQml.cpp:842
bool debugBuild
Definition: UIPlugInQml.h:36
void fireTranslationChanged()
bool showFocusIndicator
Definition: UIPlugInQml.h:46
bool tablet
Definition: UIPlugInQml.h:43
bool dominated
Definition: UIPlugInQml.h:39
QVariantMap getSafeAreaMargins() const
Definition: UIPlugInQml.cpp:849
QString getFixedFontFamily() const
Definition: UIPlugInQml.cpp:918
void fireDominatorChanged()
void fireProxyAuthenticationRequired(ProxyCredentials *pProxyCredentials)
Q_INVOKABLE void init()
Definition: UIPlugInQml.cpp:262
QSize initialWindowSize
Definition: UIPlugInQml.h:45
QString fixedFontFamily
Definition: UIPlugInQml.h:42
void fireHighContrastEnabledChanged()
bool developerVersion
Definition: UIPlugInQml.h:37
UIPlugInQml()
Definition: UIPlugInQml.cpp:153
bool getShowFocusIndicator() const
Definition: UIPlugInQml.cpp:940
QString platformStyle
Definition: UIPlugInQml.h:35
Q_INVOKABLE void applyPlatformStyle(const QString &pPlatformStyle)
Definition: UIPlugInQml.cpp:965
void doRefresh()
Definition: UIPlugInQml.cpp:805
QSize getInitialWindowSize() const
Definition: UIPlugInQml.cpp:924
bool isDebugBuild() const
Definition: UIPlugInQml.cpp:818
Implementation of GeneralAuthenticate response APDUs.
Definition: CommandApdu.h:16