refactor: move third party integrations to plugins folder

This commit is contained in:
tobtoht 2023-03-28 22:26:53 +02:00
parent fbc3b89285
commit 8fd583a649
No known key found for this signature in database
GPG key ID: E45B10DD027D2472
44 changed files with 30 additions and 30 deletions

View file

@ -72,6 +72,8 @@ file(GLOB SOURCE_FILES
"monero_seed/*.cpp" "monero_seed/*.cpp"
"monero_seed/*.c" "monero_seed/*.c"
"monero_seed/*.hpp" "monero_seed/*.hpp"
"plugins/*/*.cpp"
"plugins/*/*.h"
) )
if (WITH_SCANNER AND NOT Qt6_FOUND) if (WITH_SCANNER AND NOT Qt6_FOUND)

View file

@ -32,8 +32,8 @@
#include "utils/daemonrpc.h" #include "utils/daemonrpc.h"
#include "utils/EventFilter.h" #include "utils/EventFilter.h"
#include "utils/Updater.h" #include "utils/Updater.h"
#include "widgets/CCSWidget.h" #include "plugins/ccs/CCSWidget.h"
#include "widgets/RedditWidget.h" #include "plugins/reddit/RedditWidget.h"
#include "widgets/TickerWidget.h" #include "widgets/TickerWidget.h"
#include "widgets/WalletUnlockWidget.h" #include "widgets/WalletUnlockWidget.h"
#include "wizard/WalletWizard.h" #include "wizard/WalletWizard.h"
@ -47,11 +47,11 @@
#include "WindowManager.h" #include "WindowManager.h"
#ifdef HAS_LOCALMONERO #ifdef HAS_LOCALMONERO
#include "widgets/LocalMoneroWidget.h" #include "plugins/localmonero/LocalMoneroWidget.h"
#endif #endif
#ifdef HAS_XMRIG #ifdef HAS_XMRIG
#include "widgets/XMRigWidget.h" #include "plugins/xmrig/XMRigWidget.h"
#endif #endif
namespace Ui { namespace Ui {

View file

@ -960,25 +960,25 @@
<customwidget> <customwidget>
<class>CCSWidget</class> <class>CCSWidget</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>widgets/CCSWidget.h</header> <header>plugins/ccs/CCSWidget.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget> <customwidget>
<class>RedditWidget</class> <class>RedditWidget</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>widgets/RedditWidget.h</header> <header>plugins/reddit/RedditWidget.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget> <customwidget>
<class>RevuoWidget</class> <class>RevuoWidget</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>widgets/RevuoWidget.h</header> <header>plugins/revuo/RevuoWidget.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget> <customwidget>
<class>BountiesWidget</class> <class>BountiesWidget</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>widgets/BountiesWidget.h</header> <header>plugins/bounties/BountiesWidget.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
</customwidgets> </customwidgets>

View file

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

View file

@ -7,7 +7,7 @@
#include <QAbstractTableModel> #include <QAbstractTableModel>
#include <QSharedPointer> #include <QSharedPointer>
#include "widgets/Bounty.h" #include "Bounty.h"
class BountiesModel : public QAbstractTableModel class BountiesModel : public QAbstractTableModel
{ {

View file

@ -8,7 +8,7 @@
#include <QStandardItemModel> #include <QStandardItemModel>
#include <QTableWidget> #include <QTableWidget>
#include "model/BountiesModel.h" #include "BountiesModel.h"
#include "utils/Utils.h" #include "utils/Utils.h"
#include "utils/config.h" #include "utils/config.h"

View file

@ -8,7 +8,7 @@
#include <QMenu> #include <QMenu>
#include <QWidget> #include <QWidget>
#include "model/BountiesModel.h" #include "BountiesModel.h"
namespace Ui { namespace Ui {
class BountiesWidget; class BountiesWidget;

View file

@ -7,7 +7,7 @@
#include <QAbstractTableModel> #include <QAbstractTableModel>
#include <QSharedPointer> #include <QSharedPointer>
#include "widgets/CCSEntry.h" #include "CCSEntry.h"
class CCSModel : public QAbstractTableModel class CCSModel : public QAbstractTableModel
{ {

View file

@ -6,7 +6,7 @@
#include <QStyledItemDelegate> #include <QStyledItemDelegate>
#include "model/CCSModel.h" #include "CCSModel.h"
class CCSProgressDelegate : public QStyledItemDelegate class CCSProgressDelegate : public QStyledItemDelegate
{ {

View file

@ -10,8 +10,8 @@
#include <QProgressBar> #include <QProgressBar>
#include <QWidget> #include <QWidget>
#include "model/CCSModel.h" #include "CCSModel.h"
#include "widgets/CCSEntry.h" #include "CCSEntry.h"
namespace Ui { namespace Ui {
class CSSWidget; class CSSWidget;

View file

@ -8,7 +8,7 @@
#include <QLabel> #include <QLabel>
#include "components.h" #include "components.h"
#include "model/LocalMoneroModel.h" #include "LocalMoneroModel.h"
namespace Ui { namespace Ui {
class LocalMoneroInfoDialog; class LocalMoneroInfoDialog;

View file

@ -7,10 +7,9 @@
#include <QMessageBox> #include <QMessageBox>
#include <QMenu> #include <QMenu>
#include "dialog/LocalMoneroInfoDialog.h" #include "LocalMoneroInfoDialog.h"
#include "utils/ColorScheme.h" #include "utils/ColorScheme.h"
#include "utils/Icons.h" #include "utils/Icons.h"
#include "utils/NetworkManager.h"
#include "utils/WebsocketNotifier.h" #include "utils/WebsocketNotifier.h"
LocalMoneroWidget::LocalMoneroWidget(QWidget *parent, Wallet *wallet) LocalMoneroWidget::LocalMoneroWidget(QWidget *parent, Wallet *wallet)

View file

@ -6,8 +6,8 @@
#include <QWidget> #include <QWidget>
#include "api/LocalMoneroApi.h" #include "LocalMoneroApi.h"
#include "model/LocalMoneroModel.h" #include "LocalMoneroModel.h"
#include "libwalletqt/Wallet.h" #include "libwalletqt/Wallet.h"
namespace Ui { namespace Ui {

View file

@ -7,7 +7,7 @@
#include <QAbstractTableModel> #include <QAbstractTableModel>
#include <QSharedPointer> #include <QSharedPointer>
#include "widgets/RedditPost.h" #include "RedditPost.h"
class RedditModel : public QAbstractTableModel class RedditModel : public QAbstractTableModel
{ {

View file

@ -8,7 +8,7 @@
#include <QStandardItemModel> #include <QStandardItemModel>
#include <QTableWidget> #include <QTableWidget>
#include "model/RedditModel.h" #include "RedditModel.h"
#include "utils/Utils.h" #include "utils/Utils.h"
#include "utils/config.h" #include "utils/config.h"

View file

@ -8,7 +8,7 @@
#include <QMenu> #include <QMenu>
#include <QWidget> #include <QWidget>
#include "model/RedditModel.h" #include "RedditModel.h"
namespace Ui { namespace Ui {
class RedditWidget; class RedditWidget;

View file

@ -9,7 +9,7 @@
#include <QItemSelection> #include <QItemSelection>
#include <QStandardItemModel> #include <QStandardItemModel>
#include "utils/xmrig.h" #include "xmrig.h"
#include "utils/config.h" #include "utils/config.h"
#include "libwalletqt/Wallet.h" #include "libwalletqt/Wallet.h"

View file

@ -6,7 +6,7 @@
#include "utils/config.h" #include "utils/config.h"
#include "utils/Utils.h" #include "utils/Utils.h"
#include "utils/xmrig.h" #include "xmrig.h"
#include "utils/TorManager.h" #include "utils/TorManager.h"
XmRig::XmRig(const QString &configDir, QObject *parent) XmRig::XmRig(const QString &configDir, QObject *parent)

View file

@ -11,10 +11,10 @@
#include "networktype.h" #include "networktype.h"
#include "nodes.h" #include "nodes.h"
#include "prices.h" #include "prices.h"
#include "widgets/Bounty.h" #include "plugins/bounties/Bounty.h"
#include "widgets/RedditPost.h" #include "plugins/reddit/RedditPost.h"
#include "widgets/CCSEntry.h" #include "plugins/ccs/CCSEntry.h"
#include "widgets/RevuoItem.h" #include "plugins/revuo/RevuoItem.h"
#include "TxFiatHistory.h" #include "TxFiatHistory.h"
class WebsocketNotifier : public QObject { class WebsocketNotifier : public QObject {