#ifndef XMLPARSER_H #define XMLPARSER_H #include #include #include #include "auto_payment/UiElement.h" class XmlParser final : public QObject { Q_OBJECT public: explicit XmlParser(QObject *parent = nullptr); static QList parseUiDumpUsingQXml(const QString &filepath); static bool isSecurityBanner(const QList& elements); static bool isPinCodeScreen(const QList& elements); static bool isBannerOrDialog(const QList& elements); static bool isMainScreen(const QList& elements); static bool isDetailCardScreen(const QList& elements); private: static QList extractElementsFromXml(QXmlStreamReader &xmlReader); }; #endif // XMLPARSER_H