Introduce a new class, `ScreenXmlZiraatParser`, to handle Ziraat-related XML parsing. This includes functionality to extract transaction details, banners/dialogs recognition, and history parsing for today and yesterday. Regular expressions are utilized for precise data extraction.
35 lines
648 B
C++
35 lines
648 B
C++
#pragma once
|
|
#include "CommonZiraatScript.h"
|
|
|
|
class PayByIbanScript final : public CommonZiraatScript {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
~PayByIbanScript() override;
|
|
|
|
PayByIbanScript(
|
|
AccountInfo account,
|
|
QString phone,
|
|
QString bankName,
|
|
double amount,
|
|
QObject *parent = nullptr
|
|
);
|
|
|
|
protected:
|
|
void doStart() override;
|
|
|
|
private:
|
|
const AccountInfo m_account;
|
|
const QString m_phone;
|
|
const QString m_bankName;
|
|
const double m_amount;
|
|
QString m_error;
|
|
|
|
void makePayment(
|
|
const QString &deviceId,
|
|
const QString &pinCode,
|
|
int width,
|
|
int height
|
|
);
|
|
};
|