You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
678 B
38 lines
678 B
// Copyright 2019-2022 The Hush developers
|
|
// Released under the GPLv3
|
|
#ifndef RECURRING_H
|
|
#define RECURRING_H
|
|
|
|
#include "precompiled.h"
|
|
|
|
#include "mainwindow.h"
|
|
|
|
enum Schedule {
|
|
DAY = 1,
|
|
WEEK,
|
|
MONTH,
|
|
YEAR
|
|
};
|
|
|
|
struct RecurringPaymentInfo {
|
|
QString desc;
|
|
QString fromAddr;
|
|
QString toAddr;
|
|
double amt;
|
|
QString currency;
|
|
Schedule schedule;
|
|
int numPayments;
|
|
|
|
long startBlock;
|
|
int completedPayments;
|
|
};
|
|
|
|
class Recurring
|
|
{
|
|
public:
|
|
Recurring();
|
|
|
|
static void showEditDialog(QWidget* parent, MainWindow* main, Tx tx);
|
|
};
|
|
|
|
#endif // RECURRING_H
|
|
|