Added handling for event types (Balance, Phone) and respective processing logic in EventHandler. Introduced support for tracking and updating event statuses both locally and through network APIs. Enhanced data integrity and clarity by expanding the EventInfo model and associated database management.
32 lines
695 B
C++
32 lines
695 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;
|
|
QString m_error;
|
|
|
|
bool saveAndPostNewTransactionData(const AccountInfo &account, const TransactionInfo &transaction);
|
|
|
|
bool updateAndPostTransactionData(
|
|
const AccountInfo &account,
|
|
int transactionId,
|
|
TransactionStatus status,
|
|
const QString &oldDesc,
|
|
const QString &newDesc
|
|
);
|
|
};
|