1
0
forked from BRT/arc
arc/automation_script/XmlParser.h
2025-04-27 06:16:54 +04:00

25 lines
647 B
C++

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