Recurring (#131)
* Save created recurring info * Add to confirm dialog * Update RPI at confirm * Make singleton * Add history to recurring payments * USD/ZEC switch * Fix check state * recurring item serialization * Add recurring payments to file * Refactor * Address view model * Wire up dialog * Update windows installer logos * Store all payments in the store * Save table geometry * Add recurring payments view * Add deletion * Add recurring payment execution * Add donation address to address book * Add multiple payment handling * Disable recurring for multiple payments * Handle pay last * Handle pay all * Reomve frequency * Enable recurring payments only for testnet * For testing, allow payments in 5 min intervals * Fix request money amounts
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
#define MAINWINDOW_H
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "logger.h"
|
||||
#include "recurring.h"
|
||||
|
||||
// Forward declare to break circular dependency.
|
||||
class RPC;
|
||||
@@ -60,6 +62,12 @@ public:
|
||||
void updateTAddrCombo(bool checked);
|
||||
void updateFromCombo();
|
||||
|
||||
// Disable recurring on mainnet
|
||||
void disableRecurring();
|
||||
|
||||
// Check whether the RPC is returned and payments are ready to be made
|
||||
bool isPaymentsReady() { return uiPaymentsReady; }
|
||||
|
||||
Ui::MainWindow* ui;
|
||||
|
||||
QLabel* statusLabel;
|
||||
@@ -83,11 +91,11 @@ private:
|
||||
void setupTurnstileDialog();
|
||||
void setupSettingsModal();
|
||||
void setupStatusBar();
|
||||
|
||||
void removeExtraAddresses();
|
||||
|
||||
void clearSendForm();
|
||||
|
||||
Tx createTxFromSendPage();
|
||||
bool confirmTx(Tx tx);
|
||||
bool confirmTx(Tx tx, RecurringPaymentInfo* rpi);
|
||||
|
||||
void turnstileDoMigration(QString fromAddr = "");
|
||||
void turnstileProgress();
|
||||
@@ -134,6 +142,8 @@ private:
|
||||
QRegExpValidator* amtValidator = nullptr;
|
||||
QRegExpValidator* feesValidator = nullptr;
|
||||
|
||||
RecurringPaymentInfo* sendTxRecurringInfo = nullptr;
|
||||
|
||||
QMovie* loadingMovie;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user