cleanup includes

This commit is contained in:
tobtoht 2024-10-01 22:17:54 +02:00
parent a1836a64b2
commit 8ab420b802
No known key found for this signature in database
GPG key ID: E45B10DD027D2472
117 changed files with 250 additions and 230 deletions

2
monero

@ -1 +1 @@
Subproject commit 14d2ac095df656745e383258f4434ed4968b1c6b Subproject commit 5b9a197de481409ab3dc4cd25c5a1048d20ca09f

View file

@ -8,7 +8,6 @@
#include <QtNetwork/qlocalserver.h> #include <QtNetwork/qlocalserver.h>
class QLockFile; class QLockFile;
class QSocketNotifier;
class Application : public QApplication { class Application : public QApplication {
Q_OBJECT Q_OBJECT

View file

@ -7,7 +7,10 @@
#include <QMessageBox> #include <QMessageBox>
#include "dialog/ContactsDialog.h" #include "dialog/ContactsDialog.h"
#include "model/AddressBookModel.h"
#include "model/AddressBookProxyModel.h"
#include "libwalletqt/AddressBook.h" #include "libwalletqt/AddressBook.h"
#include "libwalletqt/Wallet.h"
#include "libwalletqt/WalletManager.h" #include "libwalletqt/WalletManager.h"
#include "utils/Icons.h" #include "utils/Icons.h"
#include "utils/Utils.h" #include "utils/Utils.h"

View file

@ -8,9 +8,9 @@
#include <QWidget> #include <QWidget>
#include <QMenu> #include <QMenu>
#include "model/AddressBookModel.h" class AddressBookModel;
#include "model/AddressBookProxyModel.h" class AddressBookProxyModel;
#include "libwalletqt/Wallet.h" class Wallet;
namespace Ui { namespace Ui {
class ContactsWidget; class ContactsWidget;

View file

@ -8,6 +8,8 @@
#include "dialog/TxInfoDialog.h" #include "dialog/TxInfoDialog.h"
#include "dialog/TxProofDialog.h" #include "dialog/TxProofDialog.h"
#include "model/TransactionHistoryProxyModel.h"
#include "libwalletqt/Wallet.h"
#include "libwalletqt/WalletManager.h" #include "libwalletqt/WalletManager.h"
#include "utils/config.h" #include "utils/config.h"
#include "utils/Icons.h" #include "utils/Icons.h"

View file

@ -7,10 +7,8 @@
#include <QWidget> #include <QWidget>
#include <QMenu> #include <QMenu>
#include "libwalletqt/Coins.h" class TransactionHistoryProxyModel;
#include "libwalletqt/Wallet.h" class Wallet;
#include "model/TransactionHistoryModel.h"
#include "model/TransactionHistoryProxyModel.h"
namespace Ui { namespace Ui {
class HistoryWidget; class HistoryWidget;

View file

@ -26,12 +26,13 @@
#include "libwalletqt/AddressBook.h" #include "libwalletqt/AddressBook.h"
#include "libwalletqt/rows/CoinsInfo.h" #include "libwalletqt/rows/CoinsInfo.h"
#include "libwalletqt/Transfer.h" #include "libwalletqt/Transfer.h"
#include "libwalletqt/TransactionHistory.h"
#include "model/AddressBookModel.h"
#include "plugins/PluginRegistry.h" #include "plugins/PluginRegistry.h"
#include "utils/AppData.h" #include "utils/AppData.h"
#include "utils/AsyncTask.h" #include "utils/AsyncTask.h"
#include "utils/ColorScheme.h" #include "utils/ColorScheme.h"
#include "utils/Icons.h" #include "utils/Icons.h"
#include "utils/SemanticVersion.h"
#include "utils/TorManager.h" #include "utils/TorManager.h"
#include "utils/WebsocketNotifier.h" #include "utils/WebsocketNotifier.h"

View file

@ -5,7 +5,6 @@
#include "ui_ReceiveWidget.h" #include "ui_ReceiveWidget.h"
#include <QMenu> #include <QMenu>
#include <QMessageBox>
#include "dialog/PaymentRequestDialog.h" #include "dialog/PaymentRequestDialog.h"
#include "dialog/QrCodeDialog.h" #include "dialog/QrCodeDialog.h"

View file

@ -6,7 +6,6 @@
#include <QMenu> #include <QMenu>
#include <QWidget> #include <QWidget>
#include <QSvgWidget>
#include "libwalletqt/Subaddress.h" #include "libwalletqt/Subaddress.h"
#include "libwalletqt/Wallet.h" #include "libwalletqt/Wallet.h"

View file

@ -6,7 +6,7 @@
#include <QWidget> #include <QWidget>
#include "libwalletqt/Wallet.h" class Wallet;
namespace Ui { namespace Ui {
class SendWidget; class SendWidget;

View file

@ -12,6 +12,7 @@
#include "libwalletqt/WalletManager.h" #include "libwalletqt/WalletManager.h"
#include "utils/AppData.h" #include "utils/AppData.h"
#include "utils/Icons.h" #include "utils/Icons.h"
#include "utils/nodes.h"
#include "utils/WebsocketNotifier.h" #include "utils/WebsocketNotifier.h"
#include "widgets/NetworkProxyWidget.h" #include "widgets/NetworkProxyWidget.h"
#include "WindowManager.h" #include "WindowManager.h"

View file

@ -4,17 +4,13 @@
#ifndef FEATHER_SettingsDIALOG_H #ifndef FEATHER_SettingsDIALOG_H
#define FEATHER_SettingsDIALOG_H #define FEATHER_SettingsDIALOG_H
#include <QAbstractButton>
#include <QDialog> #include <QDialog>
#include <QSettings>
#include "widgets/NodeWidget.h"
namespace Ui { namespace Ui {
class Settings; class Settings;
} }
class Nodes;
class Settings : public QDialog class Settings : public QDialog
{ {
Q_OBJECT Q_OBJECT

View file

@ -10,14 +10,20 @@
#include "Application.h" #include "Application.h"
#include "constants.h" #include "constants.h"
#include "MainWindow.h"
#include "dialog/DocsDialog.h"
#include "dialog/PasswordDialog.h" #include "dialog/PasswordDialog.h"
#include "dialog/SplashDialog.h" #include "dialog/SplashDialog.h"
#include "dialog/TorInfoDialog.h"
#include "libwalletqt/WalletManager.h"
#include "libwalletqt/Wallet.h"
#include "utils/Icons.h" #include "utils/Icons.h"
#include "utils/NetworkManager.h" #include "utils/NetworkManager.h"
#include "utils/os/tails.h" #include "utils/os/tails.h"
#include "utils/os/whonix.h" #include "utils/os/whonix.h"
#include "utils/TorManager.h" #include "utils/TorManager.h"
#include "utils/WebsocketNotifier.h" #include "utils/WebsocketNotifier.h"
#include "utils/AppData.h"
WindowManager::WindowManager(QObject *parent) WindowManager::WindowManager(QObject *parent)
: QObject(parent) : QObject(parent)

View file

@ -5,17 +5,20 @@
#define FEATHER_WINDOWMANAGER_H #define FEATHER_WINDOWMANAGER_H
#include <QObject> #include <QObject>
#include <QSystemTrayIcon>
#include "dialog/DocsDialog.h" #include "utils/EventFilter.h"
#include "dialog/TorInfoDialog.h"
#include "libwalletqt/WalletManager.h"
#include "libwalletqt/Wallet.h"
#include "MainWindow.h"
#include "utils/nodes.h" #include "utils/nodes.h"
#include "wizard/WalletWizard.h" #include "wizard/WalletWizard.h"
#include "Utils.h" #include "Utils.h"
class MainWindow; class MainWindow;
class DocsDialog;
class TorInfoDialog;
class WalletManager;
class Wallet;
class SplashDialog;
class WindowManager : public QObject { class WindowManager : public QObject {
Q_OBJECT Q_OBJECT

View file

@ -4,8 +4,7 @@
#ifndef FEATHER_CONSTANTS_H #ifndef FEATHER_CONSTANTS_H
#define FEATHER_CONSTANTS_H #define FEATHER_CONSTANTS_H
#include <QtGlobal> #include <QString>
#include <QUrl>
#include "networktype.h" #include "networktype.h"

View file

@ -5,6 +5,7 @@
#include "ui_AboutDialog.h" #include "ui_AboutDialog.h"
#include <QMessageBox> #include <QMessageBox>
#include <QDate>
#include "config-feather.h" #include "config-feather.h"
#include "utils/Utils.h" #include "utils/Utils.h"

View file

@ -4,9 +4,6 @@
#ifndef FEATHER_ABOUT_H #ifndef FEATHER_ABOUT_H
#define FEATHER_ABOUT_H #define FEATHER_ABOUT_H
#include <QDialog>
#include <QStringListModel>
#include "components.h" #include "components.h"
namespace Ui { namespace Ui {

View file

@ -8,6 +8,7 @@
#include "libwalletqt/SubaddressAccount.h" #include "libwalletqt/SubaddressAccount.h"
#include "libwalletqt/WalletManager.h" #include "libwalletqt/WalletManager.h"
#include "model/SubaddressAccountModel.h"
#include "utils/Icons.h" #include "utils/Icons.h"
#include "utils/Utils.h" #include "utils/Utils.h"

View file

@ -4,10 +4,8 @@
#ifndef FEATHER_ACCOUNTSWITCHERDIALOG_H #ifndef FEATHER_ACCOUNTSWITCHERDIALOG_H
#define FEATHER_ACCOUNTSWITCHERDIALOG_H #define FEATHER_ACCOUNTSWITCHERDIALOG_H
#include <QDialog>
#include "libwalletqt/Wallet.h"
#include "components.h" #include "components.h"
#include "libwalletqt/Wallet.h"
#include "model/SubaddressAccountModel.h" #include "model/SubaddressAccountModel.h"
namespace Ui { namespace Ui {

View file

@ -7,6 +7,7 @@
#include "utils/Utils.h" #include "utils/Utils.h"
#include "components.h" #include "components.h"
#include "dialog/QrCodeDialog.h" #include "dialog/QrCodeDialog.h"
#include "libwalletqt/Wallet.h"
AddressCheckerIndexDialog::AddressCheckerIndexDialog(Wallet *wallet, QWidget *parent) AddressCheckerIndexDialog::AddressCheckerIndexDialog(Wallet *wallet, QWidget *parent)
: WindowModalDialog(parent) : WindowModalDialog(parent)

View file

@ -5,7 +5,8 @@
#define ADDRESSCHECKERINDEXDIALOG_H #define ADDRESSCHECKERINDEXDIALOG_H
#include "components.h" #include "components.h"
#include "Wallet.h"
class Wallet;
namespace Ui { namespace Ui {
class AddressCheckerIndexDialog; class AddressCheckerIndexDialog;

View file

@ -4,8 +4,6 @@
#ifndef FEATHER_BALANCEDIALOG_H #ifndef FEATHER_BALANCEDIALOG_H
#define FEATHER_BALANCEDIALOG_H #define FEATHER_BALANCEDIALOG_H
#include <QDialog>
#include "components.h" #include "components.h"
#include "libwalletqt/Wallet.h" #include "libwalletqt/Wallet.h"

View file

@ -5,6 +5,7 @@
#include "ui_DocsDialog.h" #include "ui_DocsDialog.h"
#include <QScrollBar> #include <QScrollBar>
#include <QDirIterator>
#include "utils/Utils.h" #include "utils/Utils.h"
#include "ColorScheme.h" #include "ColorScheme.h"

View file

@ -9,7 +9,6 @@
#include <QObject> #include <QObject>
#include <QList> #include <QList>
#include <QReadWriteLock> #include <QReadWriteLock>
#include <QDateTime>
#include "Wallet.h" #include "Wallet.h"

View file

@ -5,6 +5,7 @@
#include "Input.h" #include "Input.h"
#include "Transfer.h" #include "Transfer.h"
#include <wallet/api/wallet2_api.h>
quint64 ConstructionInfo::unlockTime() const { quint64 ConstructionInfo::unlockTime() const {
return m_unlockTime; return m_unlockTime;

View file

@ -4,13 +4,16 @@
#ifndef FEATHER_CONSTRUCTIONINFO_H #ifndef FEATHER_CONSTRUCTIONINFO_H
#define FEATHER_CONSTRUCTIONINFO_H #define FEATHER_CONSTRUCTIONINFO_H
#include <wallet/api/wallet2_api.h>
#include <QObject> #include <QObject>
#include <QSet> #include <QSet>
class Input; class Input;
class Transfer; class Transfer;
namespace Monero {
class TransactionConstructionInfo;
}
class ConstructionInfo : public QObject class ConstructionInfo : public QObject
{ {
Q_OBJECT Q_OBJECT

View file

@ -4,15 +4,11 @@
#ifndef FEATHER_INPUT_H #ifndef FEATHER_INPUT_H
#define FEATHER_INPUT_H #define FEATHER_INPUT_H
#include <wallet/api/wallet2_api.h>
#include <QObject> #include <QObject>
#include <utility>
class Input : public QObject class Input : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(quint64 amount READ amount)
Q_PROPERTY(QString pubKey READ pubKey)
private: private:
explicit Input(uint64_t _amount, QString _address, QObject *parent = nullptr): QObject(parent), m_amount(_amount), m_pubkey(std::move(_address)) {}; explicit Input(uint64_t _amount, QString _address, QObject *parent = nullptr): QObject(parent), m_amount(_amount), m_pubkey(std::move(_address)) {};
@ -20,10 +16,10 @@ private:
friend class ConstructionInfo; friend class ConstructionInfo;
quint64 m_amount; quint64 m_amount;
QString m_pubkey; QString m_pubkey;
public: public:
quint64 amount() const { return m_amount; } quint64 amount() const { return m_amount; }
QString pubKey() const { return m_pubkey; } QString pubKey() const { return m_pubkey; }
}; };
#endif //FEATHER_INPUT_H #endif //FEATHER_INPUT_H

View file

@ -4,7 +4,7 @@
#include "PassphraseHelper.h" #include "PassphraseHelper.h"
#include <QDebug> #include <QDebug>
Monero::optional<std::string> PassphraseHelper::onDevicePassphraseRequest(bool & on_device) std::optional<std::string> PassphraseHelper::onDevicePassphraseRequest(bool & on_device)
{ {
qDebug() << __FUNCTION__; qDebug() << __FUNCTION__;
QMutexLocker locker(&m_mutex_pass); QMutexLocker locker(&m_mutex_pass);
@ -26,9 +26,9 @@ Monero::optional<std::string> PassphraseHelper::onDevicePassphraseRequest(bool &
if (!on_device) { if (!on_device) {
auto tmpPass = m_passphrase.toStdString(); auto tmpPass = m_passphrase.toStdString();
m_passphrase = QString(); m_passphrase = QString();
return Monero::optional<std::string>(tmpPass); return std::optional<std::string>(tmpPass);
} else { } else {
return Monero::optional<std::string>(); return std::optional<std::string>();
} }
} }

View file

@ -4,11 +4,9 @@
#ifndef MONERO_GUI_PASSPHRASEHELPER_H #ifndef MONERO_GUI_PASSPHRASEHELPER_H
#define MONERO_GUI_PASSPHRASEHELPER_H #define MONERO_GUI_PASSPHRASEHELPER_H
#include <wallet/api/wallet2_api.h>
#include <QMutex> #include <QMutex>
#include <QPointer> #include <QPointer>
#include <QWaitCondition> #include <QWaitCondition>
#include <QMutex>
/** /**
* Implements component responsible for showing entry prompt to the user, * Implements component responsible for showing entry prompt to the user,
@ -32,7 +30,7 @@ class PassphraseHelper {
public: public:
PassphraseHelper(PassphrasePrompter * prompter=nullptr): m_prompter(prompter) {}; PassphraseHelper(PassphrasePrompter * prompter=nullptr): m_prompter(prompter) {};
PassphraseHelper(const PassphraseHelper & h): PassphraseHelper(h.m_prompter) {}; PassphraseHelper(const PassphraseHelper & h): PassphraseHelper(h.m_prompter) {};
Monero::optional<std::string> onDevicePassphraseRequest(bool & on_device); std::optional<std::string> onDevicePassphraseRequest(bool & on_device);
void onPassphraseEntered(const QString &passphrase, bool enter_on_device, bool entry_abort); void onPassphraseEntered(const QString &passphrase, bool enter_on_device, bool entry_abort);
private: private:

View file

@ -5,6 +5,8 @@
#include <QVariant> #include <QVariant>
#include <wallet/api/wallet2_api.h>
PendingTransaction::Status PendingTransaction::status() const PendingTransaction::Status PendingTransaction::status() const
{ {
return static_cast<Status>(m_pimpl->status()); return static_cast<Status>(m_pimpl->status());

View file

@ -7,18 +7,21 @@
#include <QObject> #include <QObject>
#include <QList> #include <QList>
#include <wallet/api/wallet2_api.h>
#include "PendingTransactionInfo.h" #include "PendingTransactionInfo.h"
namespace Monero {
class PendingTransaction;
}
class PendingTransaction : public QObject class PendingTransaction : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
enum Status { enum Status {
Status_Ok = Monero::PendingTransaction::Status_Ok, Status_Ok = 0,
Status_Error = Monero::PendingTransaction::Status_Error, Status_Error = 1,
Status_Critical = Monero::PendingTransaction::Status_Critical Status_Critical = 2
}; };
Q_ENUM(Status) Q_ENUM(Status)

View file

@ -2,6 +2,7 @@
// SPDX-FileCopyrightText: 2020-2024 The Monero Project // SPDX-FileCopyrightText: 2020-2024 The Monero Project
#include "PendingTransactionInfo.h" #include "PendingTransactionInfo.h"
#include <wallet/api/wallet2_api.h>
quint64 PendingTransactionInfo::fee() const { quint64 PendingTransactionInfo::fee() const {
return m_fee; return m_fee;

View file

@ -11,6 +11,10 @@
class Input; class Input;
class Transfer; class Transfer;
namespace Monero {
class PendingTransactionInfo;
}
class PendingTransactionInfo : public ConstructionInfo class PendingTransactionInfo : public ConstructionInfo
{ {
Q_OBJECT Q_OBJECT

View file

@ -4,10 +4,7 @@
#ifndef FEATHER_RINGS_H #ifndef FEATHER_RINGS_H
#define FEATHER_RINGS_H #define FEATHER_RINGS_H
#include <wallet/api/wallet2_api.h>
#include <QObject> #include <QObject>
#include <QList>
#include <utility>
class Ring : public QObject class Ring : public QObject
{ {

View file

@ -4,10 +4,8 @@
#ifndef SUBADDRESS_H #ifndef SUBADDRESS_H
#define SUBADDRESS_H #define SUBADDRESS_H
#include <functional>
#include <QReadWriteLock>
#include <QObject> #include <QObject>
#include <QReadWriteLock>
#include <QList> #include <QList>
#include <QDateTime> #include <QDateTime>

View file

@ -2,7 +2,9 @@
// SPDX-FileCopyrightText: 2020-2024 The Monero Project // SPDX-FileCopyrightText: 2020-2024 The Monero Project
#include "UnsignedTransaction.h" #include "UnsignedTransaction.h"
#include <QDebug>
#include "ConstructionInfo.h"
#include <wallet/api/wallet2_api.h>
UnsignedTransaction::Status UnsignedTransaction::status() const UnsignedTransaction::Status UnsignedTransaction::status() const
{ {

View file

@ -6,7 +6,12 @@
#include <QObject> #include <QObject>
#include "libwalletqt/PendingTransactionInfo.h" namespace Monero {
class UnsignedTransaction;
class Wallet;
}
class ConstructionInfo;
class UnsignedTransaction : public QObject class UnsignedTransaction : public QObject
{ {
@ -14,9 +19,9 @@ class UnsignedTransaction : public QObject
public: public:
enum Status { enum Status {
Status_Ok = Monero::UnsignedTransaction::Status_Ok, Status_Ok = 0,
Status_Error = Monero::UnsignedTransaction::Status_Error, Status_Error = 1,
Status_Critical = Monero::UnsignedTransaction::Status_Critical Status_Critical = 2
}; };
Q_ENUM(Status) Q_ENUM(Status)

View file

@ -12,6 +12,7 @@
#include "SubaddressAccount.h" #include "SubaddressAccount.h"
#include "TransactionHistory.h" #include "TransactionHistory.h"
#include "WalletManager.h" #include "WalletManager.h"
#include "WalletListenerImpl.h"
#include "config.h" #include "config.h"
#include "constants.h" #include "constants.h"
@ -357,6 +358,22 @@ void Wallet::setSeedLanguage(const QString &lang)
m_wallet2->set_seed_language(lang.toStdString()); m_wallet2->set_seed_language(lang.toStdString());
} }
QString Wallet::getSecretViewKey() const {
return QString::fromStdString(m_walletImpl->secretViewKey());
}
QString Wallet::getPublicViewKey() const {
return QString::fromStdString(m_walletImpl->publicViewKey());
}
QString Wallet::getSecretSpendKey() const {
return QString::fromStdString(m_walletImpl->secretSpendKey());
}
QString Wallet::getPublicSpendKey() const {
return QString::fromStdString(m_walletImpl->publicSpendKey());
}
// #################### Node connection #################### // #################### Node connection ####################
void Wallet::setOffline(bool offline) { void Wallet::setOffline(bool offline) {
@ -866,7 +883,7 @@ void Wallet::createTransaction(const QString &address, quint64 amount, const QSt
m_scheduler.run([this, all, address, amount, feeLevel, subtractFeeFromAmount] { m_scheduler.run([this, all, address, amount, feeLevel, subtractFeeFromAmount] {
std::set<uint32_t> subaddr_indices; std::set<uint32_t> subaddr_indices;
Monero::PendingTransaction *ptImpl = m_walletImpl->createTransaction(address.toStdString(), "", all ? Monero::optional<uint64_t>() : Monero::optional<uint64_t>(amount), constants::mixin, Monero::PendingTransaction *ptImpl = m_walletImpl->createTransaction(address.toStdString(), "", all ? std::optional<uint64_t>() : std::optional<uint64_t>(amount), constants::mixin,
static_cast<Monero::PendingTransaction::Priority>(feeLevel), static_cast<Monero::PendingTransaction::Priority>(feeLevel),
currentSubaddressAccount(), subaddr_indices, m_selectedInputs, subtractFeeFromAmount); currentSubaddressAccount(), subaddr_indices, m_selectedInputs, subtractFeeFromAmount);
@ -1331,6 +1348,10 @@ bool Wallet::setRingDatabase(const QString &path) {
return m_walletImpl->setRingDatabase(path.toStdString()); return m_walletImpl->setRingDatabase(path.toStdString());
} }
quint64 Wallet::getWalletCreationHeight() const {
return m_walletImpl->getRefreshFromBlockHeight();
}
void Wallet::setWalletCreationHeight(quint64 height) { void Wallet::setWalletCreationHeight(quint64 height) {
m_wallet2->set_refresh_from_block_height(height); m_wallet2->set_refresh_from_block_height(height);
} }

View file

@ -4,24 +4,28 @@
#ifndef WALLET_H #ifndef WALLET_H
#define WALLET_H #define WALLET_H
#include <QElapsedTimer>
#include <QObject> #include <QObject>
#include <QMutex> #include <QMutex>
#include <QList>
#include <QtConcurrent/QtConcurrent>
#include "utils/scheduler.h" #include "utils/scheduler.h"
#include "PendingTransaction.h" #include "PendingTransaction.h"
#include "UnsignedTransaction.h" #include "UnsignedTransaction.h"
#include "utils/networktype.h" #include "utils/networktype.h"
#include "PassphraseHelper.h" #include "PassphraseHelper.h"
#include "WalletListenerImpl.h"
#include "rows/TxBacklogEntry.h" #include "rows/TxBacklogEntry.h"
#include <set>
class WalletListenerImpl;
namespace Monero { namespace Monero {
struct Wallet; // forward declaration struct Wallet; // forward declaration
} }
namespace tools {
struct wallet2;
}
struct TxProof { struct TxProof {
TxProof(QString proof, QString error = "") TxProof(QString proof, QString error = "")
: proof(std::move(proof)), error(std::move(error)){} : proof(std::move(proof)), error(std::move(error)){}
@ -94,17 +98,17 @@ public:
~Wallet() override; ~Wallet() override;
enum Status { enum Status {
Status_Ok = Monero::Wallet::Status_Ok, Status_Ok = 0,
Status_Error = Monero::Wallet::Status_Error, Status_Error = 1,
Status_Critical = Monero::Wallet::Status_Critical, Status_Critical = 2,
Status_BadPassword = Monero::Wallet::Status_BadPassword Status_BadPassword = 3
}; };
Q_ENUM(Status) Q_ENUM(Status)
enum ConnectionStatus { enum ConnectionStatus {
ConnectionStatus_Disconnected = Monero::Wallet::ConnectionStatus_Disconnected, ConnectionStatus_Disconnected = 0,
ConnectionStatus_WrongVersion = Monero::Wallet::ConnectionStatus_WrongVersion, ConnectionStatus_WrongVersion = 2,
ConnectionStatus_Connecting = 9, ConnectionStatus_Connecting = 9,
ConnectionStatus_Synchronizing = 10, ConnectionStatus_Synchronizing = 10,
ConnectionStatus_Synchronized = 11 ConnectionStatus_Synchronized = 11
@ -186,10 +190,10 @@ public:
void setSeedLanguage(const QString &lang); void setSeedLanguage(const QString &lang);
//! Get wallet keys //! Get wallet keys
QString getSecretViewKey() const {return QString::fromStdString(m_walletImpl->secretViewKey());} QString getSecretViewKey() const;
QString getPublicViewKey() const {return QString::fromStdString(m_walletImpl->publicViewKey());} QString getPublicViewKey() const;
QString getSecretSpendKey() const {return QString::fromStdString(m_walletImpl->secretSpendKey());} QString getSecretSpendKey() const;
QString getPublicSpendKey() const {return QString::fromStdString(m_walletImpl->publicSpendKey());} QString getPublicSpendKey() const;
// ##### Node connection ##### // ##### Node connection #####
@ -399,7 +403,7 @@ public:
bool setRingDatabase(const QString &path); bool setRingDatabase(const QString &path);
quint64 getWalletCreationHeight() const {return m_walletImpl->getRefreshFromBlockHeight();} quint64 getWalletCreationHeight() const;
void setWalletCreationHeight(quint64 height); void setWalletCreationHeight(quint64 height);
//! Rescan spent outputs //! Rescan spent outputs
@ -529,6 +533,4 @@ private:
std::set<std::string> m_selectedInputs; std::set<std::string> m_selectedInputs;
}; };
#endif // WALLET_H #endif // WALLET_H

View file

@ -85,7 +85,7 @@ void WalletListenerImpl::onPassphraseEntered(const QString &passphrase, bool ent
m_phelper.onPassphraseEntered(passphrase, enter_on_device, entry_abort); m_phelper.onPassphraseEntered(passphrase, enter_on_device, entry_abort);
} }
Monero::optional<std::string> WalletListenerImpl::onDevicePassphraseRequest(bool & on_device) std::optional<std::string> WalletListenerImpl::onDevicePassphraseRequest(bool & on_device)
{ {
qDebug() << __FUNCTION__; qDebug() << __FUNCTION__;
return m_phelper.onDevicePassphraseRequest(on_device); return m_phelper.onDevicePassphraseRequest(on_device);

View file

@ -35,7 +35,7 @@ public:
virtual void onPassphraseEntered(const QString &passphrase, bool enter_on_device, bool entry_abort) override; virtual void onPassphraseEntered(const QString &passphrase, bool enter_on_device, bool entry_abort) override;
virtual Monero::optional<std::string> onDevicePassphraseRequest(bool & on_device) override; virtual std::optional<std::string> onDevicePassphraseRequest(bool & on_device) override;
private: private:
Wallet * m_wallet; Wallet * m_wallet;

View file

@ -5,6 +5,7 @@
#include "Wallet.h" #include "Wallet.h"
#include "utils/ScopeGuard.h" #include "utils/ScopeGuard.h"
#include <wallet/api/wallet2_api.h>
class WalletPassphraseListenerImpl : public Monero::WalletListener, public PassphraseReceiver class WalletPassphraseListenerImpl : public Monero::WalletListener, public PassphraseReceiver
{ {
@ -24,7 +25,7 @@ public:
m_phelper.onPassphraseEntered(passphrase, enter_on_device, entry_abort); m_phelper.onPassphraseEntered(passphrase, enter_on_device, entry_abort);
} }
Monero::optional<std::string> onDevicePassphraseRequest(bool & on_device) override std::optional<std::string> onDevicePassphraseRequest(bool & on_device) override
{ {
qDebug() << __FUNCTION__; qDebug() << __FUNCTION__;
return m_phelper.onDevicePassphraseRequest(on_device); return m_phelper.onDevicePassphraseRequest(on_device);

View file

@ -4,8 +4,6 @@
#ifndef WALLETMANAGER_H #ifndef WALLETMANAGER_H
#define WALLETMANAGER_H #define WALLETMANAGER_H
#include <wallet/api/wallet2_api.h>
#include <QObject> #include <QObject>
#include <QMutex> #include <QMutex>
#include <QPointer> #include <QPointer>

View file

@ -1,6 +1,8 @@
// SPDX-License-Identifier: BSD-3-Clause // SPDX-License-Identifier: BSD-3-Clause
// SPDX-FileCopyrightText: 2020-2024 The Monero Project // SPDX-FileCopyrightText: 2020-2024 The Monero Project
#include <QSslSocket>
#include "Application.h" #include "Application.h"
#include "config-feather.h" #include "config-feather.h"
#include "constants.h" #include "constants.h"
@ -8,6 +10,9 @@
#include "utils/os/Prestium.h" #include "utils/os/Prestium.h"
#include "WindowManager.h" #include "WindowManager.h"
#include "config.h" #include "config.h"
#include <wallet/api/wallet2_api.h>
#include "libwalletqt/Wallet.h"
#include "libwalletqt/WalletManager.h"
#if defined(Q_OS_LINUX) && defined(STACK_TRACE) #if defined(Q_OS_LINUX) && defined(STACK_TRACE)
#define BOOST_STACKTRACE_LINK #define BOOST_STACKTRACE_LINK

View file

@ -4,12 +4,7 @@
#ifndef FEATHER_COINSMODEL_H #ifndef FEATHER_COINSMODEL_H
#define FEATHER_COINSMODEL_H #define FEATHER_COINSMODEL_H
#include <wallet/api/wallet2_api.h>
#include <QAbstractTableModel> #include <QAbstractTableModel>
#include <QSortFilterProxyModel>
#include <QDebug>
#include <QIcon>
class Coins; class Coins;
class CoinsInfo; class CoinsInfo;

View file

@ -4,11 +4,7 @@
#ifndef SUBADDRESSMODEL_H #ifndef SUBADDRESSMODEL_H
#define SUBADDRESSMODEL_H #define SUBADDRESSMODEL_H
#include <wallet/api/wallet2_api.h>
#include <QAbstractTableModel> #include <QAbstractTableModel>
#include <QSortFilterProxyModel>
#include <QDebug>
#include "rows/SubaddressRow.h" #include "rows/SubaddressRow.h"

View file

@ -5,7 +5,6 @@
#include "TransactionHistory.h" #include "TransactionHistory.h"
#include "constants.h" #include "constants.h"
#include "utils/config.h" #include "utils/config.h"
#include "utils/ColorScheme.h"
#include "utils/Icons.h" #include "utils/Icons.h"
#include "utils/AppData.h" #include "utils/AppData.h"
#include "utils/Utils.h" #include "utils/Utils.h"

View file

@ -5,6 +5,7 @@
#include "ui_BountiesWidget.h" #include "ui_BountiesWidget.h"
#include <QTableWidget> #include <QTableWidget>
#include <QJsonArray>
#include "BountiesModel.h" #include "BountiesModel.h"
#include "utils/Utils.h" #include "utils/Utils.h"

View file

@ -5,6 +5,7 @@
#include "ui_CCSWidget.h" #include "ui_CCSWidget.h"
#include <QTableWidget> #include <QTableWidget>
#include <QJsonArray>
#include "CCSProgressDelegate.h" #include "CCSProgressDelegate.h"
#include "utils/Utils.h" #include "utils/Utils.h"

View file

@ -4,6 +4,8 @@
#include "RevuoWidget.h" #include "RevuoWidget.h"
#include "ui_RevuoWidget.h" #include "ui_RevuoWidget.h"
#include <QJsonArray>
#include "utils/ColorScheme.h" #include "utils/ColorScheme.h"
#include "Utils.h" #include "Utils.h"
#include "utils/WebsocketNotifier.h" #include "utils/WebsocketNotifier.h"

View file

@ -4,15 +4,6 @@
#include "QrCodeScanDialog.h" #include "QrCodeScanDialog.h"
#include "ui_QrCodeScanDialog.h" #include "ui_QrCodeScanDialog.h"
#include <QCamera>
#include <QMediaDevices>
#include <QCameraDevice>
#include <QMessageBox>
#include <QImageCapture>
#include <QVideoFrame>
#include "Utils.h"
QrCodeScanDialog::QrCodeScanDialog(QWidget *parent, bool scan_ur) QrCodeScanDialog::QrCodeScanDialog(QWidget *parent, bool scan_ur)
: QDialog(parent) : QDialog(parent)
, ui(new Ui::QrCodeScanDialog) , ui(new Ui::QrCodeScanDialog)

View file

@ -5,13 +5,7 @@
#define FEATHER_QRCODESCANDIALOG_H #define FEATHER_QRCODESCANDIALOG_H
#include <QDialog> #include <QDialog>
#include <QCamera>
#include <QScopedPointer> #include <QScopedPointer>
#include <QMediaCaptureSession>
#include <QTimer>
#include <QVideoSink>
#include "QrScanThread.h"
namespace Ui { namespace Ui {
class QrCodeScanDialog; class QrCodeScanDialog;

View file

@ -8,8 +8,11 @@
#include <QMediaDevices> #include <QMediaDevices>
#include <QComboBox> #include <QComboBox>
#include <bcur/bc-ur.hpp>
#include "utils/config.h" #include "utils/config.h"
#include "utils/Icons.h" #include "utils/Icons.h"
#include "QrScanThread.h"
QrCodeScanWidget::QrCodeScanWidget(QWidget *parent) QrCodeScanWidget::QrCodeScanWidget(QWidget *parent)
: QWidget(parent) : QWidget(parent)

View file

@ -11,11 +11,10 @@
#include <QTimer> #include <QTimer>
#include <QVideoSink> #include <QVideoSink>
#include "QrScanThread.h"
#include <bcur/bc-ur.hpp>
#include <bcur/ur-decoder.hpp> #include <bcur/ur-decoder.hpp>
class QrScanThread;
namespace Ui { namespace Ui {
class QrCodeScanWidget; class QrCodeScanWidget;
} }

View file

@ -2,10 +2,11 @@
// SPDX-FileCopyrightText: 2020-2024 The Monero Project // SPDX-FileCopyrightText: 2020-2024 The Monero Project
#include "QrScanThread.h" #include "QrScanThread.h"
#include <QDebug>
#include <ZXing/ReadBarcode.h> #include <ZXing/ReadBarcode.h>
#include "utils/QrCodeUtils.h"
QrScanThread::QrScanThread(QObject *parent) QrScanThread::QrScanThread(QObject *parent)
: QThread(parent) : QThread(parent)
, m_running(true) , m_running(true)

View file

@ -7,12 +7,6 @@
#include <QThread> #include <QThread>
#include <QMutex> #include <QMutex>
#include <QWaitCondition> #include <QWaitCondition>
#include <QEvent>
#include <QCamera>
#include <ZXing/ReadBarcode.h>
#include "qrcode/utils/QrCodeUtils.h"
class QrScanThread : public QThread class QrScanThread : public QThread
{ {

View file

@ -8,7 +8,6 @@
#include <QInputDialog> #include <QInputDialog>
#include "utils/Utils.h" #include "utils/Utils.h"
#include "WalletManager.h"
URDialog::URDialog(QWidget *parent) URDialog::URDialog(QWidget *parent)
: WindowModalDialog(parent) : WindowModalDialog(parent)

View file

@ -4,8 +4,6 @@
#ifndef FEATHER_URDIALOG_H #ifndef FEATHER_URDIALOG_H
#define FEATHER_URDIALOG_H #define FEATHER_URDIALOG_H
#include <QDialog>
#include "components.h" #include "components.h"
namespace Ui { namespace Ui {

View file

@ -8,7 +8,6 @@
#include <QTimer> #include <QTimer>
#include "qrcode/QrCode.h" #include "qrcode/QrCode.h"
#include "widgets/QrCodeWidget.h"
#include <bcur/bc-ur.hpp> #include <bcur/bc-ur.hpp>
namespace Ui { namespace Ui {

View file

@ -2,6 +2,9 @@
// SPDX-FileCopyrightText: 2020-2024 The Monero Project // SPDX-FileCopyrightText: 2020-2024 The Monero Project
#include "AppData.h" #include "AppData.h"
#include <QCoreApplication>
#include "config.h" #include "config.h"
#include "WebsocketNotifier.h" #include "WebsocketNotifier.h"

View file

@ -6,7 +6,6 @@
#include <QObject> #include <QObject>
#include <QPointer> #include <QPointer>
#include <QCoreApplication>
#include "prices.h" #include "prices.h"
#include "TxFiatHistory.h" #include "TxFiatHistory.h"

View file

@ -4,7 +4,6 @@
#include "EventFilter.h" #include "EventFilter.h"
#include <QKeyEvent> #include <QKeyEvent>
#include <QDebug>
EventFilter::EventFilter(QObject *parent) EventFilter::EventFilter(QObject *parent)
: QObject(parent) : QObject(parent)

View file

@ -16,7 +16,6 @@ public:
protected: protected:
bool eventFilter(QObject *obj, QEvent *ev); bool eventFilter(QObject *obj, QEvent *ev);
signals: signals:
void userActivity(); void userActivity();
}; };

View file

@ -5,7 +5,6 @@
#include <QCoreApplication> #include <QCoreApplication>
#include <QNetworkProxy> #include <QNetworkProxy>
#include <QRegularExpression>
#include <QUrl> #include <QUrl>
#include "utils/config.h" #include "utils/config.h"

View file

@ -1,11 +1,12 @@
// SPDX-License-Identifier: BSD-3-Clause // SPDX-License-Identifier: BSD-3-Clause
// SPDX-FileCopyrightText: 2020-2024 The Monero Project // SPDX-FileCopyrightText: 2020-2024 The Monero Project
#include "utils/Networking.h"
#include <QNetworkAccessManager> #include <QNetworkAccessManager>
#include <QNetworkReply> #include <QNetworkReply>
#include <QJsonDocument>
#include "utils/Utils.h"
#include "utils/Networking.h"
#include "utils/NetworkManager.h" #include "utils/NetworkManager.h"
#include "config.h" #include "config.h"

View file

@ -1,9 +1,17 @@
// SPDX-License-Identifier: BSD-3-Clause // SPDX-License-Identifier: BSD-3-Clause
// SPDX-FileCopyrightText: 2020-2024 The Monero Project // SPDX-FileCopyrightText: 2020-2024 The Monero Project
#include <iomanip>
#include "Seed.h" #include "Seed.h"
#include "constants.h"
#include "monero_seed/monero_seed.hpp"
#include "polyseed/polyseed.h"
#include "utils/AppData.h"
#include <sstream>
#include <utility>
#include <iomanip>
Seed::Seed(Type type, NetworkType::Type networkType, QString language, const char* secret) Seed::Seed(Type type, NetworkType::Type networkType, QString language, const char* secret)
: type(type) : type(type)
, networkType(networkType) , networkType(networkType)

View file

@ -4,17 +4,11 @@
#ifndef FEATHER_SEED_H #ifndef FEATHER_SEED_H
#define FEATHER_SEED_H #define FEATHER_SEED_H
#include "constants.h" #include <QMap>
#include "libwalletqt/Wallet.h"
#include "monero_seed/monero_seed.hpp"
#include "polyseed/polyseed.h"
#include "utils/AppData.h"
#include <QString> #include <QString>
#include <QStringList> #include <QStringList>
#include <sstream> #include "networktype.h"
#include <utility>
struct Seed { struct Seed {
enum Type { enum Type {

View file

@ -5,6 +5,7 @@
#define FEATHER_SEMANTICVERSION_H #define FEATHER_SEMANTICVERSION_H
#include <QObject> #include <QObject>
#include <QRegularExpression>
struct SemanticVersion struct SemanticVersion
{ {

View file

@ -3,7 +3,8 @@
#include "utils/TorManager.h" #include "utils/TorManager.h"
#include <QDesktopServices> #include <QCoreApplication>
#include <QDirIterator>
#include "utils/config.h" #include "utils/config.h"
#include "utils/Utils.h" #include "utils/Utils.h"

View file

@ -4,11 +4,10 @@
#ifndef FEATHER_TOR_H #ifndef FEATHER_TOR_H
#define FEATHER_TOR_H #define FEATHER_TOR_H
#include <cstdio> #include <QObject>
#include <cstdlib> #include <QProcess>
#include <iostream> #include <QTimer>
#include <QRegularExpression>
#include <QtNetwork>
#include "utils/SemanticVersion.h" #include "utils/SemanticVersion.h"
class TorManager : public QObject class TorManager : public QObject

View file

@ -2,6 +2,9 @@
// SPDX-FileCopyrightText: 2020-2024 The Monero Project // SPDX-FileCopyrightText: 2020-2024 The Monero Project
#include "TxFiatHistory.h" #include "TxFiatHistory.h"
#include <QJsonObject>
#include "utils/Utils.h" #include "utils/Utils.h"
TxFiatHistory::TxFiatHistory(int genesis_timestamp, const QString &configDirectory, QObject *parent) TxFiatHistory::TxFiatHistory(int genesis_timestamp, const QString &configDirectory, QObject *parent)

View file

@ -1,6 +1,8 @@
// SPDX-License-Identifier: BSD-3-Clause // SPDX-License-Identifier: BSD-3-Clause
// SPDX-FileCopyrightText: 2020-2024 The Monero Project // SPDX-FileCopyrightText: 2020-2024 The Monero Project
#include "Utils.h"
#include <QApplication> #include <QApplication>
#include <QMessageBox> #include <QMessageBox>
#include <QClipboard> #include <QClipboard>
@ -9,14 +11,20 @@
#include <QFontDatabase> #include <QFontDatabase>
#include <QTcpSocket> #include <QTcpSocket>
#include <QFileDialog> #include <QFileDialog>
#include <QLayout>
#include <QLayoutItem>
#include <QJsonDocument>
#include <QThread>
#include <QStandardPaths>
#include <QProcess>
#include "constants.h" #include "constants.h"
#include "networktype.h" #include "networktype.h"
#include "Utils.h"
#include "utils/ColorScheme.h" #include "utils/ColorScheme.h"
#include "utils/config.h" #include "utils/config.h"
#include "utils/os/tails.h" #include "utils/os/tails.h"
#include "utils/os/whonix.h" #include "utils/os/whonix.h"
#include "libwalletqt/Wallet.h"
#include "WindowManager.h" #include "WindowManager.h"
namespace Utils { namespace Utils {

View file

@ -5,13 +5,16 @@
#define FEATHER_UTILS_H #define FEATHER_UTILS_H
#include <QRegularExpression> #include <QRegularExpression>
#include <QStandardItemModel>
#include <QTextCharFormat> #include <QTextCharFormat>
#include <QMessageBox> #include <QMessageBox>
#include <QSettings>
#include <QStandardItem>
#include <QMetaEnum>
#include "libwalletqt/Wallet.h"
#include "networktype.h" #include "networktype.h"
class SubaddressIndex;
namespace Utils namespace Utils
{ {
enum MessageType enum MessageType

View file

@ -4,9 +4,12 @@
#include "WebsocketClient.h" #include "WebsocketClient.h"
#include <QCoreApplication> #include <QCoreApplication>
#include "utils/Utils.h" #include <QRandomGenerator>
#include <QJsonDocument>
#include <QJsonObject>
#include "utils/config.h" #include "utils/config.h"
#include "utils/Utils.h"
WebsocketClient::WebsocketClient(QObject *parent) WebsocketClient::WebsocketClient(QObject *parent)
: QObject(parent) : QObject(parent)

View file

@ -2,8 +2,6 @@
// SPDX-FileCopyrightText: 2020-2024 The Monero Project // SPDX-FileCopyrightText: 2020-2024 The Monero Project
#include "WebsocketNotifier.h" #include "WebsocketNotifier.h"
#include "Utils.h"
#include "utils/os/tails.h"
#include "utils/os/whonix.h" #include "utils/os/whonix.h"
#include "plugins/PluginRegistry.h" #include "plugins/PluginRegistry.h"

View file

@ -4,6 +4,10 @@
// SPDX-FileCopyrightText: 2020-2024 The Monero Project // SPDX-FileCopyrightText: 2020-2024 The Monero Project
#include "config.h" #include "config.h"
#include <QCoreApplication>
#include <QStandardPaths>
#include "utils/Utils.h" #include "utils/Utils.h"
#include "utils/os/tails.h" #include "utils/os/tails.h"

View file

@ -3,6 +3,9 @@
#include "daemonrpc.h" #include "daemonrpc.h"
#include <QJsonArray>
#include <QJsonDocument>
DaemonRpc::DaemonRpc(QObject *parent, QString daemonAddress) DaemonRpc::DaemonRpc(QObject *parent, QString daemonAddress)
: QObject(parent) : QObject(parent)
, m_network(new Networking(this)) , m_network(new Networking(this))

View file

@ -5,6 +5,7 @@
#define FEATHER_DAEMON_RPC_H #define FEATHER_DAEMON_RPC_H
#include <QObject> #include <QObject>
#include <QJsonObject>
#include "utils/Networking.h" #include "utils/Networking.h"

View file

@ -4,7 +4,6 @@
#pragma once #pragma once
#include <QObject> #include <QObject>
#include <wallet/api/wallet2_api.h>
class NetworkType : public QObject class NetworkType : public QObject
{ {
@ -12,9 +11,9 @@ class NetworkType : public QObject
public: public:
enum Type : uint8_t { enum Type : uint8_t {
MAINNET = Monero::MAINNET, MAINNET = 0,
TESTNET = Monero::TESTNET, TESTNET = 1,
STAGENET = Monero::STAGENET STAGENET = 2
}; };
Q_ENUM(Type) Q_ENUM(Type)
}; };

View file

@ -1,9 +1,9 @@
// SPDX-License-Identifier: BSD-3-Clause // SPDX-License-Identifier: BSD-3-Clause
// SPDX-FileCopyrightText: 2020-2024 The Monero Project // SPDX-FileCopyrightText: 2020-2024 The Monero Project
#include <QObject>
#include "nodes.h" #include "nodes.h"
#include "libwalletqt/Wallet.h"
#include "utils/AppData.h" #include "utils/AppData.h"
#include "utils/Utils.h" #include "utils/Utils.h"
#include "utils/os/tails.h" #include "utils/os/tails.h"

View file

@ -4,14 +4,19 @@
#ifndef FEATHER_NODES_H #ifndef FEATHER_NODES_H
#define FEATHER_NODES_H #define FEATHER_NODES_H
#include <QObject>
#include <QJsonObject>
#include <QTimer> #include <QTimer>
#include <QRegularExpression> #include <QRegularExpression>
#include <QHostAddress> #include <QHostAddress>
#include <QUrl>
#include "model/NodeModel.h" #include "model/NodeModel.h"
#include "utils/Utils.h" #include "utils/Utils.h"
#include "utils/config.h" #include "utils/config.h"
class Wallet;
enum NodeSource { enum NodeSource {
websocket = 0, websocket = 0,
custom custom

View file

@ -1,10 +1,12 @@
// SPDX-License-Identifier: BSD-3-Clause // SPDX-License-Identifier: BSD-3-Clause
// SPDX-FileCopyrightText: 2020-2024 The Monero Project // SPDX-FileCopyrightText: 2020-2024 The Monero Project
#include "tails.h"
#include <QDir>
#include <QRegularExpression> #include <QRegularExpression>
#include <QMessageBox> #include <QMessageBox>
#include "tails.h"
#include "Utils.h" #include "Utils.h"
bool TailsOS::detected = false; bool TailsOS::detected = false;

View file

@ -4,6 +4,8 @@
#ifndef TAILSOS_H #ifndef TAILSOS_H
#define TAILSOS_H #define TAILSOS_H
#include <QString>
class TailsOS class TailsOS
{ {
public: public:

View file

@ -1,7 +1,10 @@
// SPDX-License-Identifier: BSD-3-Clause // SPDX-License-Identifier: BSD-3-Clause
// SPDX-FileCopyrightText: 2020-2024 The Monero Project // SPDX-FileCopyrightText: 2020-2024 The Monero Project
#include "utils/prices.h" #include "prices.h"
#include <QJsonArray>
#include <QJsonObject>
Prices::Prices(QObject *parent) Prices::Prices(QObject *parent)
: QObject(parent) : QObject(parent)

View file

@ -4,13 +4,9 @@
#ifndef FUTURE_SCHEDULER_H #ifndef FUTURE_SCHEDULER_H
#define FUTURE_SCHEDULER_H #define FUTURE_SCHEDULER_H
#include <functional>
#include <QtConcurrent/QtConcurrent> #include <QtConcurrent/QtConcurrent>
#include <QFuture> #include <QFuture>
//#include <QJSValue>
#include <QMutex> #include <QMutex>
#include <QMutexLocker>
#include <QPair> #include <QPair>
#include <QWaitCondition> #include <QWaitCondition>

View file

@ -12,7 +12,6 @@
#include "Utils.h" #include "Utils.h"
#include "utils/AsyncTask.h" #include "utils/AsyncTask.h"
#include "utils/Networking.h" #include "utils/Networking.h"
#include "utils/NetworkManager.h"
#include "utils/SemanticVersion.h" #include "utils/SemanticVersion.h"
Updater::Updater(QObject *parent) : Updater::Updater(QObject *parent) :

View file

@ -5,7 +5,6 @@
#define FEATHER_URLLISTCONFIGUREWIDGET_H #define FEATHER_URLLISTCONFIGUREWIDGET_H
#include <QWidget> #include <QWidget>
#include <QTextEdit>
#include "utils/config.h" #include "utils/config.h"

View file

@ -8,6 +8,7 @@
#include <QPushButton> #include <QPushButton>
#include "utils/Utils.h" #include "utils/Utils.h"
#include "libwalletqt/Wallet.h"
WalletUnlockWidget::WalletUnlockWidget(QWidget *parent, Wallet *wallet) WalletUnlockWidget::WalletUnlockWidget(QWidget *parent, Wallet *wallet)
: QWidget(parent) : QWidget(parent)

View file

@ -5,9 +5,8 @@
#define FEATHER_WALLETUNLOCKWIDGET_H #define FEATHER_WALLETUNLOCKWIDGET_H
#include <QWidget> #include <QWidget>
#include <QMenu>
#include "Wallet.h" class Wallet;
namespace Ui { namespace Ui {
class WalletUnlockWidget; class WalletUnlockWidget;

View file

@ -3,12 +3,13 @@
#include "PageHardwareDevice.h" #include "PageHardwareDevice.h"
#include "ui_PageHardwareDevice.h" #include "ui_PageHardwareDevice.h"
#include "WalletWizard.h"
#include <QCheckBox> #include <QCheckBox>
#include <QDialogButtonBox> #include <QDialogButtonBox>
#include <QPushButton> #include <QPushButton>
#include "WalletWizard.h"
PageHardwareDevice::PageHardwareDevice(WizardFields *fields, QWidget *parent) PageHardwareDevice::PageHardwareDevice(WizardFields *fields, QWidget *parent)
: QWizardPage(parent) : QWizardPage(parent)
, ui(new Ui::PageHardwareDevice) , ui(new Ui::PageHardwareDevice)

View file

@ -4,12 +4,9 @@
#ifndef FEATHER_PAGEHARDWAREDEVICE_H #ifndef FEATHER_PAGEHARDWAREDEVICE_H
#define FEATHER_PAGEHARDWAREDEVICE_H #define FEATHER_PAGEHARDWAREDEVICE_H
#include <QLabel>
#include <QWizardPage> #include <QWizardPage>
#include <QWidget>
#include <QDir>
#include "WalletWizard.h" class WizardFields;
namespace Ui { namespace Ui {
class PageHardwareDevice; class PageHardwareDevice;

View file

@ -1,13 +1,11 @@
// SPDX-License-Identifier: BSD-3-Clause // SPDX-License-Identifier: BSD-3-Clause
// SPDX-FileCopyrightText: 2020-2024 The Monero Project // SPDX-FileCopyrightText: 2020-2024 The Monero Project
#include "WalletWizard.h"
#include "PageMenu.h" #include "PageMenu.h"
#include "ui_PageMenu.h" #include "ui_PageMenu.h"
#include <QFileDialog>
#include "config-feather.h" #include "config-feather.h"
#include "WalletWizard.h"
PageMenu::PageMenu(WizardFields *fields, WalletKeysFilesModel *wallets, QWidget *parent) PageMenu::PageMenu(WizardFields *fields, WalletKeysFilesModel *wallets, QWidget *parent)
: QWizardPage(parent) : QWizardPage(parent)

View file

@ -4,9 +4,10 @@
#ifndef FEATHER_WIZARDMENU_H #ifndef FEATHER_WIZARDMENU_H
#define FEATHER_WIZARDMENU_H #define FEATHER_WIZARDMENU_H
#include <QLabel>
#include <QWizardPage> #include <QWizardPage>
#include <QWidget>
class WizardFields;
class WalletKeysFilesModel;
namespace Ui { namespace Ui {
class PageMenu; class PageMenu;

View file

@ -7,6 +7,7 @@
#include <QtConcurrent/QtConcurrent> #include <QtConcurrent/QtConcurrent>
#include "constants.h" #include "constants.h"
#include "utils/nodes.h"
#include "utils/os/Prestium.h" #include "utils/os/Prestium.h"
#include "Utils.h" #include "Utils.h"
#include "WalletWizard.h" #include "WalletWizard.h"

View file

@ -4,11 +4,8 @@
#ifndef FEATHER_WIZARDNETWORK_H #ifndef FEATHER_WIZARDNETWORK_H
#define FEATHER_WIZARDNETWORK_H #define FEATHER_WIZARDNETWORK_H
#include <QLabel>
#include <QWizardPage> #include <QWizardPage>
#include <QWidget> #include <QFutureWatcher>
#include "utils/nodes.h"
namespace Ui { namespace Ui {
class PageNetwork; class PageNetwork;

View file

@ -3,9 +3,10 @@
#include "PageNetworkProxy.h" #include "PageNetworkProxy.h"
#include "ui_PageNetworkProxy.h" #include "ui_PageNetworkProxy.h"
#include "WalletWizard.h"
#include <QSysInfo> #include <QTimer>
#include "WalletWizard.h"
PageNetworkProxy::PageNetworkProxy(QWidget *parent) PageNetworkProxy::PageNetworkProxy(QWidget *parent)
: QWizardPage(parent) : QWizardPage(parent)

View file

@ -8,6 +8,7 @@
#include "constants.h" #include "constants.h"
#include "WalletWizard.h" #include "WalletWizard.h"
#include "model/WalletKeysFilesModel.h"
PageOpenWallet::PageOpenWallet(WalletKeysFilesModel *wallets, QWidget *parent) PageOpenWallet::PageOpenWallet(WalletKeysFilesModel *wallets, QWidget *parent)
: QWizardPage(parent) : QWizardPage(parent)

View file

@ -7,9 +7,9 @@
#include <QLabel> #include <QLabel>
#include <QStandardItemModel> #include <QStandardItemModel>
#include <QWizardPage> #include <QWizardPage>
#include <QWidget>
#include "model/WalletKeysFilesModel.h" class WalletKeysFilesModel;
class WalletKeysFilesProxyModel;
namespace Ui { namespace Ui {
class PageOpenWallet; class PageOpenWallet;

View file

@ -5,9 +5,8 @@
#define FEATHER_PASSWORD_H #define FEATHER_PASSWORD_H
#include <QWizardPage> #include <QWizardPage>
#include <QWidget>
#include "WalletWizard.h" class WizardFields;
namespace Ui { namespace Ui {
class PageSetPassword; class PageSetPassword;

View file

@ -1,13 +1,15 @@
// SPDX-License-Identifier: BSD-3-Clause // SPDX-License-Identifier: BSD-3-Clause
// SPDX-FileCopyrightText: 2020-2024 The Monero Project // SPDX-FileCopyrightText: 2020-2024 The Monero Project
#include <QValidator>
#include "PageSetRestoreHeight.h" #include "PageSetRestoreHeight.h"
#include "ui_PageSetRestoreHeight.h" #include "ui_PageSetRestoreHeight.h"
#include "WalletWizard.h"
#include "constants.h"
#include <QValidator>
#include "constants.h"
#include "utils/AppData.h"
#include "utils/Icons.h" #include "utils/Icons.h"
#include "WalletWizard.h"
PageSetRestoreHeight::PageSetRestoreHeight(WizardFields *fields, QWidget *parent) PageSetRestoreHeight::PageSetRestoreHeight(WizardFields *fields, QWidget *parent)
: QWizardPage(parent) : QWizardPage(parent)

Some files were not shown because too many files have changed in this diff Show more