mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-10 09:17:25 -04:00
Fiat API
Co-Authored-By: selsta <selsta@sent.at> Co-Authored-By: Gene Peters <gene@telligent-data.com>
This commit is contained in:
30
src/qt/prices.h
Normal file
30
src/qt/prices.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef PRICES_H
|
||||
#define PRICES_H
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QtNetwork>
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QNetworkReply>
|
||||
#include <QDebug>
|
||||
|
||||
class Prices : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
Prices(QNetworkAccessManager *networkAccessManager, QObject *parent = nullptr);
|
||||
|
||||
public slots:
|
||||
Q_INVOKABLE void getJSON(const QString url);
|
||||
void gotJSON();
|
||||
void gotError();
|
||||
void gotError(const QString &message);
|
||||
signals:
|
||||
void priceJsonReceived(QVariantMap document);
|
||||
void priceJsonError(QString message);
|
||||
|
||||
private:
|
||||
mutable QPointer<QNetworkReply> m_reply;
|
||||
QNetworkAccessManager *m_networkAccessManager;
|
||||
};
|
||||
|
||||
#endif // PRICES_H
|
||||
Reference in New Issue
Block a user