libwalletqt: forward declare wallet2

This commit is contained in:
tobtoht 2023-12-22 13:18:37 +01:00
parent 669074eff7
commit 46e0215953
No known key found for this signature in database
GPG key ID: E45B10DD027D2472
10 changed files with 26 additions and 10 deletions

View file

@ -3,6 +3,7 @@
#include "AddressBook.h"
#include <QDebug>
#include <wallet/wallet2.h>
AddressBook::AddressBook(Wallet *wallet, tools::wallet2 *wallet2, QObject *parent)
: QObject(parent)

View file

@ -13,12 +13,15 @@
#include "rows/ContactRow.h"
#include "Wallet.h"
#include "wallet/wallet2.h"
namespace Monero {
struct AddressBook;
}
namespace tools{
class wallet2;
}
class AddressBook : public QObject
{
Q_OBJECT

View file

@ -3,6 +3,7 @@
#include "Coins.h"
#include "rows/CoinsInfo.h"
#include <wallet/wallet2.h>
Coins::Coins(Wallet *wallet, tools::wallet2 *wallet2, QObject *parent)
: QObject(parent)

View file

@ -10,15 +10,17 @@
#include <QList>
#include <QReadWriteLock>
#include <QDateTime>
#include <wallet/api/wallet2_api.h>
#include "Wallet.h"
#include "wallet/wallet2.h"
namespace Monero {
struct TransactionHistory;
}
namespace tools {
class wallet2;
}
class CoinsInfo;
class Coins : public QObject

View file

@ -4,6 +4,8 @@
#include "Subaddress.h"
#include <QDebug>
#include <wallet/wallet2.h>
Subaddress::Subaddress(Wallet *wallet, tools::wallet2 *wallet2, QObject *parent)
: QObject(parent)
, m_wallet(wallet)

View file

@ -12,11 +12,13 @@
#include <QList>
#include <QDateTime>
#include <wallet/wallet2.h>
#include "Wallet.h"
#include "rows/SubaddressRow.h"
namespace tools {
class wallet2;
}
class Subaddress : public QObject
{
Q_OBJECT

View file

@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
#include "SubaddressAccount.h"
#include <QDebug>
#include <wallet/wallet2.h>
SubaddressAccount::SubaddressAccount(Wallet *wallet, tools::wallet2 *wallet2, QObject *parent)
: QObject(parent)

View file

@ -6,17 +6,18 @@
#include <functional>
#include <wallet/api/wallet2_api.h>
#include <QObject>
#include <QReadWriteLock>
#include <QList>
#include <QDateTime>
#include <wallet/wallet2.h>
#include "Wallet.h"
#include "rows/AccountRow.h"
namespace tools {
class wallet2;
}
class SubaddressAccount : public QObject
{
Q_OBJECT

View file

@ -9,6 +9,7 @@
#include "WalletManager.h"
#include "Transfer.h"
#include "Ring.h"
#include "wallet/wallet2.h"
bool TransactionHistory::transaction(int index, std::function<void (TransactionRow &)> callback)
{

View file

@ -13,7 +13,10 @@
#include "rows/TransactionRow.h"
#include "Wallet.h"
#include "wallet/wallet2.h"
namespace tools {
class wallet2;
}
namespace Monero {
struct TransactionHistory;