mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-03 23:57:25 -04:00
21 lines
444 B
C++
21 lines
444 B
C++
#pragma once
|
|
|
|
#include <QCoreApplication>
|
|
#include <QtNetwork>
|
|
|
|
#include "FutureScheduler.h"
|
|
|
|
class Network : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
Network(QObject *parent = nullptr);
|
|
|
|
public:
|
|
Q_INVOKABLE void get(const QString &url, const QJSValue &callback, const QString &contentType = {}) const;
|
|
Q_INVOKABLE void getJSON(const QString &url, const QJSValue &callback) const;
|
|
|
|
private:
|
|
mutable FutureScheduler m_scheduler;
|
|
};
|