feather/src/cli.h

36 lines
665 B
C
Raw Normal View History

// SPDX-License-Identifier: BSD-3-Clause
2022-02-10 10:26:41 +00:00
// SPDX-FileCopyrightText: 2020-2022 The Monero Project
#ifndef FEATHER_CLI_H
#define FEATHER_CLI_H
#include <QtCore>
#include "appcontext.h"
class CLI : public QObject
{
Q_OBJECT
2021-05-18 15:59:18 +00:00
public:
2021-05-18 15:59:18 +00:00
enum Mode {
Invalid,
2021-05-18 15:59:18 +00:00
ExportContacts,
ExportTxHistory,
BruteforcePassword
};
2021-05-18 15:59:18 +00:00
explicit CLI(Mode mode, QCommandLineParser *cmdargs, QObject *parent = nullptr);
2021-05-18 15:59:18 +00:00
private slots:
void onWalletOpened(Wallet *wallet);
private:
2021-05-18 15:59:18 +00:00
void finished(const QString &message);
2021-05-18 15:59:18 +00:00
Mode m_mode;
QCommandLineParser *m_cmdargs;
WalletManager *m_walletManager;
};
#endif //FEATHER_CLI_H