mirror of
https://github.com/wownero/wowlet.git
synced 2026-11-13 03:34:06 +01:00
refactor: UtilsNetworking -> Networking
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
#include "utils/config.h"
|
||||
|
||||
LocalMoneroApi::LocalMoneroApi(QObject *parent, UtilsNetworking *network)
|
||||
LocalMoneroApi::LocalMoneroApi(QObject *parent, Networking *network)
|
||||
: QObject(parent)
|
||||
, m_network(network)
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#define FEATHER_LOCALMONEROAPI_H
|
||||
|
||||
#include <QObject>
|
||||
#include "utils/networking.h"
|
||||
#include "utils/Networking.h"
|
||||
|
||||
class LocalMoneroApi : public QObject {
|
||||
Q_OBJECT
|
||||
@@ -27,7 +27,7 @@ public:
|
||||
QJsonObject obj;
|
||||
};
|
||||
|
||||
explicit LocalMoneroApi(QObject *parent, UtilsNetworking *network);
|
||||
explicit LocalMoneroApi(QObject *parent, Networking *network);
|
||||
|
||||
void countryCodes();
|
||||
void currencies();
|
||||
@@ -46,7 +46,7 @@ private:
|
||||
QString getBuySellUrl(bool buy, const QString ¤cyCode, const QString &countryCode="", const QString &paymentMethod="", const QString &amount = "", int page = 0);
|
||||
QString getBaseUrl();
|
||||
|
||||
UtilsNetworking *m_network;
|
||||
Networking *m_network;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ LocalMoneroWidget::LocalMoneroWidget(QWidget *parent, Wallet *wallet)
|
||||
|
||||
ui->combo_currency->addItem(config()->get(Config::preferredFiatCurrency).toString());
|
||||
|
||||
m_network = new UtilsNetworking(this);
|
||||
m_network = new Networking(this);
|
||||
m_api = new LocalMoneroApi(this, m_network);
|
||||
|
||||
m_model = new LocalMoneroModel(this);
|
||||
|
||||
@@ -48,7 +48,7 @@ private:
|
||||
|
||||
LocalMoneroApi *m_api;
|
||||
LocalMoneroModel *m_model;
|
||||
UtilsNetworking *m_network;
|
||||
Networking *m_network;
|
||||
QJsonObject m_paymentMethods;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user