libwalletqt: forward declare wallet2

This commit is contained in:
tobtoht
2023-12-22 13:18:37 +01:00
parent 669074eff7
commit 46e0215953
10 changed files with 26 additions and 10 deletions
+1
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)
+4 -1
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
+1
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)
+4 -2
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
+2
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)
+4 -2
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
+1 -1
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)
+4 -3
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
+1
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)
{
+4 -1
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;