feather/src/cli.h
2021-05-18 18:08:40 +02:00

34 lines
640 B
C++

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