mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
Move to forward declare of pointers
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <QCommandLineOption>
|
||||
#include <QCommandLineParser>
|
||||
#include <QProcess>
|
||||
#include <QUrl>
|
||||
|
||||
#ifdef EMSCRIPTEN
|
||||
#include <emscripten.h>
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#include "web_socket_wrapper.hpp"
|
||||
#include "spdlog/spdlog.h"
|
||||
#include <magic_enum/magic_enum.hpp>
|
||||
#include <QTimer>
|
||||
#include <QtWebSockets/QWebSocket>
|
||||
|
||||
Web_socket_wrapper::Web_socket_wrapper(const QUrl &url, QObject *parent)
|
||||
: QObject(parent), m_web_socket(new QWebSocket("", QWebSocketProtocol::VersionLatest, this)),
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
#ifndef WEB_SOCKET_WRAPPER_H
|
||||
#define WEB_SOCKET_WRAPPER_H
|
||||
|
||||
#include <QTimer>
|
||||
#include <QtWebSockets/QWebSocket>
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <QObject>
|
||||
Q_FORWARD_DECLARE_OBJC_CLASS(QWebSocket);
|
||||
Q_FORWARD_DECLARE_OBJC_CLASS(QTimer);
|
||||
using json = nlohmann::json;
|
||||
|
||||
class Web_socket_wrapper : public QObject
|
||||
|
||||
Reference in New Issue
Block a user