Replaced `PayByPhoneScript` with `GetLastDaysHistoryScript` in `main.cpp`. Introduced enhanced date/time utilities and improved database timestamp handling with `DateUtils`. Refactored `TransactionDAO` methods to separate parsing logic and added support for retrieving recent transactions within specified hours. Added the `GetLastDaysHistoryScript` class to parse and save recent transaction history.
23 lines
448 B
C++
23 lines
448 B
C++
#pragma once
|
|
#include "CommonScript.h"
|
|
|
|
class GetLastDaysHistoryScript final : public CommonScript {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
~GetLastDaysHistoryScript() override;
|
|
|
|
explicit GetLastDaysHistoryScript(
|
|
AccountInfo account,
|
|
QObject *parent = nullptr
|
|
);
|
|
|
|
protected:
|
|
void doStart() override;
|
|
|
|
private:
|
|
const AccountInfo m_account;
|
|
|
|
bool openAndSaveDitailInfo(TransactionInfo &transaction, int width, int height);
|
|
};
|