Add missing includes tree-wide

This commit is contained in:
Cameron Gutman committed 2026-11-29 21:15:02 -06:00
1 parent a85f933ed0
commit 495cd8b7cd
62 files changed
+194 -4

No files matched your search

+4
View File
@@ -4,6 +4,10 @@
#include <QJsonDocument> #include <QJsonDocument>
#include <QJsonArray> #include <QJsonArray>
#include <QJsonObject> #include <QJsonObject>
#include <QSysInfo>
#include <QTextStream>
#include <utility>
AutoUpdateChecker::AutoUpdateChecker(QObject *parent) : AutoUpdateChecker::AutoUpdateChecker(QObject *parent) :
QObject(parent) QObject(parent)
+1
View File
@@ -2,6 +2,7 @@
#include <QObject> #include <QObject>
#include <QNetworkAccessManager> #include <QNetworkAccessManager>
#include <QVector>
class AutoUpdateChecker : public QObject class AutoUpdateChecker : public QObject
{ {
+1
View File
@@ -1,6 +1,7 @@
#include "boxartmanager.h" #include "boxartmanager.h"
#include "../path.h" #include "../path.h"
#include <QFile>
#include <QImageReader> #include <QImageReader>
#include <QImageWriter> #include <QImageWriter>
+1
View File
@@ -5,6 +5,7 @@
#include <QImage> #include <QImage>
#include <QThreadPool> #include <QThreadPool>
#include <QRunnable> #include <QRunnable>
#include <QUrl>
class BoxArtManager : public QObject class BoxArtManager : public QObject
{ {
+4
View File
@@ -10,6 +10,10 @@
#include <QThreadPool> #include <QThreadPool>
#include <QCoreApplication> #include <QCoreApplication>
#include <QRandomGenerator> #include <QRandomGenerator>
#include <QUrl>
#include <algorithm>
#include <utility>
#define SER_HOSTS "hosts" #define SER_HOSTS "hosts"
#define SER_HOSTS_BACKUP "hostsbackup" #define SER_HOSTS_BACKUP "hostsbackup"
+5
View File
@@ -17,6 +17,11 @@
#include <QTimer> #include <QTimer>
#include <QMutex> #include <QMutex>
#include <QWaitCondition> #include <QWaitCondition>
#include <QMap>
#include <QHash>
#include <QSharedPointer>
#include <QWeakPointer>
#include <QVector>
class ComputerManager; class ComputerManager;
+7
View File
@@ -3,9 +3,16 @@
#include "settings/compatfetcher.h" #include "settings/compatfetcher.h"
#include <QUdpSocket> #include <QUdpSocket>
#include <QTcpSocket>
#include <QHostInfo> #include <QHostInfo>
#include <QNetworkInterface> #include <QNetworkInterface>
#include <QNetworkProxy> #include <QNetworkProxy>
#include <QSet>
#include <QMap>
#include <QDebug>
#include <algorithm>
#include <utility>
#define SER_NAME "hostname" #define SER_NAME "hostname"
#define SER_UUID "uuid" #define SER_UUID "uuid"
+1
View File
@@ -7,6 +7,7 @@
#include <QReadWriteLock> #include <QReadWriteLock>
#include <QSettings> #include <QSettings>
#include <QRunnable> #include <QRunnable>
#include <QVector>
class CopySafeReadWriteLock : public QReadWriteLock class CopySafeReadWriteLock : public QReadWriteLock
{ {
+5
View File
@@ -1,6 +1,7 @@
#include "nvcomputer.h" #include "nvcomputer.h"
#include <Limelight.h> #include <Limelight.h>
#include <QCoreApplication>
#include <QDebug> #include <QDebug>
#include <QUuid> #include <QUuid>
#include <QtNetwork/QNetworkReply> #include <QtNetwork/QNetworkReply>
@@ -11,6 +12,10 @@
#include <QImageReader> #include <QImageReader>
#include <QtEndian> #include <QtEndian>
#include <QNetworkProxy> #include <QNetworkProxy>
#include <QTextStream>
#include <stdexcept>
#include <string.h>
#define FAST_FAIL_TIMEOUT_MS 2000 #define FAST_FAIL_TIMEOUT_MS 2000
#define REQUEST_TIMEOUT_MS 5000 #define REQUEST_TIMEOUT_MS 5000
+4
View File
@@ -9,6 +9,10 @@
#include <QUrl> #include <QUrl>
#include <QNetworkAccessManager> #include <QNetworkAccessManager>
#include <QNetworkReply> #include <QNetworkReply>
#include <QImage>
#include <QVector>
#include <exception>
class NvComputer; class NvComputer;
+9
View File
@@ -1,8 +1,17 @@
#include "nvpairingmanager.h" #include "nvpairingmanager.h"
#include "utils.h" #include "utils.h"
#include <QCryptographicHash>
#include <QDebug>
#include <stdexcept> #include <stdexcept>
#ifdef Q_OS_WIN32
#include <malloc.h>
#else
#include <alloca.h>
#endif
#include <openssl/bio.h> #include <openssl/bio.h>
#include <openssl/rand.h> #include <openssl/rand.h>
#include <openssl/pem.h> #include <openssl/pem.h>
+2
View File
@@ -2,6 +2,8 @@
#include <QDebug> #include <QDebug>
#include <time.h>
RichPresenceManager::RichPresenceManager(StreamingPreferences& prefs, QString gameName) RichPresenceManager::RichPresenceManager(StreamingPreferences& prefs, QString gameName)
: m_DiscordActive(false) : m_DiscordActive(false)
{ {
+2
View File
@@ -3,6 +3,8 @@
#include <QGuiApplication> #include <QGuiApplication>
#include <QLibraryInfo> #include <QLibraryInfo>
#include <QSysInfo>
#include <QThread>
#include "streaming/session.h" #include "streaming/session.h"
#include "streaming/streamutils.h" #include "streaming/streamutils.h"
+1
View File
@@ -2,6 +2,7 @@
#include <QObject> #include <QObject>
#include <QRect> #include <QRect>
#include <QThread>
#include "SDL_compat.h" #include "SDL_compat.h"
+4
View File
@@ -1,8 +1,12 @@
#include "commandlineparser.h" #include "commandlineparser.h"
#include <QCommandLineParser> #include <QCommandLineParser>
#include <QPair>
#include <QRegularExpression> #include <QRegularExpression>
#include <stdio.h>
#include <stdlib.h>
#if defined(Q_OS_WIN) #if defined(Q_OS_WIN)
#include <qt_windows.h> #include <qt_windows.h>
#endif #endif
+1
View File
@@ -4,6 +4,7 @@
#include <QMap> #include <QMap>
#include <QString> #include <QString>
#include <QStringList>
class GlobalCommandLineParser class GlobalCommandLineParser
{ {
+3
View File
@@ -6,6 +6,9 @@
#include <QCoreApplication> #include <QCoreApplication>
#include <exception>
#include <stdio.h>
#define COMPUTER_SEEK_TIMEOUT 30000 #define COMPUTER_SEEK_TIMEOUT 30000
namespace CliListApps namespace CliListApps
+2
View File
@@ -6,6 +6,8 @@
#include <QCoreApplication> #include <QCoreApplication>
#include <QTimer> #include <QTimer>
#include <utility>
#define COMPUTER_SEEK_TIMEOUT 30000 #define COMPUTER_SEEK_TIMEOUT 30000
#define APP_SEEK_TIMEOUT 10000 #define APP_SEEK_TIMEOUT 10000
+2
View File
@@ -1,5 +1,7 @@
#include "appmodel.h" #include "appmodel.h"
#include <utility>
AppModel::AppModel(QObject *parent) AppModel::AppModel(QObject *parent)
: QAbstractListModel(parent) : QAbstractListModel(parent)
{ {
+1
View File
@@ -5,6 +5,7 @@
#include "streaming/session.h" #include "streaming/session.h"
#include <QAbstractListModel> #include <QAbstractListModel>
#include <QVector>
class AppModel : public QAbstractListModel class AppModel : public QAbstractListModel
{ {
+1
View File
@@ -1,5 +1,6 @@
#include "computermodel.h" #include "computermodel.h"
#include <QRunnable>
#include <QThreadPool> #include <QThreadPool>
ComputerModel::ComputerModel(QObject* object) ComputerModel::ComputerModel(QObject* object)
+1
View File
@@ -2,6 +2,7 @@
#include "streaming/session.h" #include "streaming/session.h"
#include <QAbstractListModel> #include <QAbstractListModel>
#include <QVector>
class ComputerModel : public QAbstractListModel class ComputerModel : public QAbstractListModel
{ {
+2
View File
@@ -4,6 +4,8 @@
#include <QGuiApplication> #include <QGuiApplication>
#include <QWindow> #include <QWindow>
#include <utility>
#include "settings/mappingmanager.h" #include "settings/mappingmanager.h"
#define AXIS_NAVIGATION_REPEAT_DELAY 150 #define AXIS_NAVIGATION_REPEAT_DELAY 150
+15
View File
@@ -6,6 +6,7 @@
#include <QQuickStyle> #include <QQuickStyle>
#include <QMutex> #include <QMutex>
#include <QtDebug> #include <QtDebug>
#include <QNetworkProxy>
#include <QNetworkProxyFactory> #include <QNetworkProxyFactory>
#include <QPalette> #include <QPalette>
#include <QFont> #include <QFont>
@@ -13,8 +14,22 @@
#include <QElapsedTimer> #include <QElapsedTimer>
#include <QTemporaryFile> #include <QTemporaryFile>
#include <QRegularExpression> #include <QRegularExpression>
#include <QAtomicInt>
#include <QTextStream>
#include <QThreadPool>
#include <QRunnable>
#include <QTime>
#include <QDateTime>
#include <QDir>
#include <QSettings>
#include <QSurfaceFormat>
#include <QUrl>
#include <stdio.h>
#include <stdlib.h>
#ifdef Q_OS_UNIX #ifdef Q_OS_UNIX
#include <errno.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <signal.h> #include <signal.h>
#endif #endif
+3
View File
@@ -22,6 +22,9 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <pthread.h> #include <pthread.h>
+2
View File
@@ -11,6 +11,8 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdarg.h>
#include <string.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <pthread.h> #include <pthread.h>
+1
View File
@@ -2,6 +2,7 @@
#include <QtDebug> #include <QtDebug>
#include <QDir> #include <QDir>
#include <QFile>
#include <QStandardPaths> #include <QStandardPaths>
#include <QSettings> #include <QSettings>
#include <QCoreApplication> #include <QCoreApplication>
+1
View File
@@ -1,6 +1,7 @@
#include "compatfetcher.h" #include "compatfetcher.h"
#include "path.h" #include "path.h"
#include <QDebug>
#include <QNetworkReply> #include <QNetworkReply>
#include <QSettings> #include <QSettings>
+1
View File
@@ -1,6 +1,7 @@
#include "mappingfetcher.h" #include "mappingfetcher.h"
#include "path.h" #include "path.h"
#include <QDebug>
#include <QNetworkReply> #include <QNetworkReply>
MappingFetcher::MappingFetcher(QObject *parent) : MappingFetcher::MappingFetcher(QObject *parent) :
+2
View File
@@ -3,6 +3,8 @@
#include <QDir> #include <QDir>
#include <utility>
#include "SDL_compat.h" #include "SDL_compat.h"
#define SER_GAMEPADMAPPING "gcmapping" #define SER_GAMEPADMAPPING "gcmapping"
+2
View File
@@ -2,7 +2,9 @@
#include "mappingfetcher.h" #include "mappingfetcher.h"
#include <QMap>
#include <QSettings> #include <QSettings>
#include <QStringList>
class SdlGamepadMapping class SdlGamepadMapping
{ {
+3
View File
@@ -9,6 +9,9 @@
#include <Limelight.h> #include <Limelight.h>
#include <QString>
#include <QtGlobal>
#define TRY_INIT_RENDERER(renderer, opusConfig) \ #define TRY_INIT_RENDERER(renderer, opusConfig) \
{ \ { \
IAudioRenderer* __renderer = new renderer(); \ IAudioRenderer* __renderer = new renderer(); \
+2
View File
@@ -2,6 +2,8 @@
#include "SDL_compat.h" #include "SDL_compat.h"
#include <string.h>
SLAudioRenderer::SLAudioRenderer() SLAudioRenderer::SLAudioRenderer()
: m_AudioContext(nullptr), : m_AudioContext(nullptr),
m_AudioStream(nullptr), m_AudioStream(nullptr),
+1
View File
@@ -1,6 +1,7 @@
#pragma once #pragma once
#include <chrono> #include <chrono>
#include <cstddef>
#include <cstdint> #include <cstdint>
#include <mutex> #include <mutex>
#include <vector> #include <vector>
+4
View File
@@ -7,6 +7,10 @@
#include <QtMath> #include <QtMath>
#include <algorithm>
#include <stdlib.h>
#include <string.h>
// How long the Start button must be pressed to toggle mouse emulation // How long the Start button must be pressed to toggle mouse emulation
#define MOUSE_EMULATION_LONG_PRESS_TIME 750 #define MOUSE_EMULATION_LONG_PRESS_TIME 750
+3
View File
@@ -5,6 +5,9 @@
#include "SDL_compat.h" #include "SDL_compat.h"
#include <QSet>
#include <QStringList>
struct GamepadState { struct GamepadState {
SDL_GameController* controller; SDL_GameController* controller;
SDL_JoystickID jsId; SDL_JoystickID jsId;
+3
View File
@@ -3,6 +3,9 @@
#include <Limelight.h> #include <Limelight.h>
#include "SDL_compat.h" #include "SDL_compat.h"
#include <string.h>
#include <utility>
#define VK_0 0x30 #define VK_0 0x30
#define VK_A 0x41 #define VK_A 0x41
+6
View File
@@ -33,6 +33,7 @@
#include <QtEndian> #include <QtEndian>
#include <QCoreApplication> #include <QCoreApplication>
#include <QThread>
#include <QThreadPool> #include <QThreadPool>
#include <QSvgRenderer> #include <QSvgRenderer>
#include <QPainter> #include <QPainter>
@@ -41,6 +42,11 @@
#include <QCursor> #include <QCursor>
#include <QScreen> #include <QScreen>
#include <math.h>
#include <stdarg.h>
#include <string.h>
#include <utility>
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include <QQuickOpenGLUtils> #include <QQuickOpenGLUtils>
#endif #endif
+1
View File
@@ -1,5 +1,6 @@
#pragma once #pragma once
#include <QMap>
#include <QSemaphore> #include <QSemaphore>
#include <QQuickWindow> #include <QQuickWindow>
+7
View File
@@ -1,14 +1,21 @@
#include "streamutils.h" #include "streamutils.h"
#include <Qt> #include <Qt>
#include <QAtomicInt>
#include <QDir> #include <QDir>
#include <stdio.h>
#include <string.h>
#ifdef Q_OS_DARWIN #ifdef Q_OS_DARWIN
#include <ApplicationServices/ApplicationServices.h> #include <ApplicationServices/ApplicationServices.h>
#endif #endif
#ifdef Q_OS_WINDOWS #ifdef Q_OS_WINDOWS
#include <Windows.h> #include <Windows.h>
#if defined(_MSC_VER) && defined(Q_PROCESSOR_X86)
#include <intrin.h>
#endif
#endif #endif
#ifdef Q_OS_UNIX #ifdef Q_OS_UNIX
+2
View File
@@ -4,6 +4,8 @@
#include "SDL_compat.h" #include "SDL_compat.h"
#include "settings/streamingpreferences.h" #include "settings/streamingpreferences.h"
#include <QSize>
#define SDL_CODE_FRAME_READY 0 #define SDL_CODE_FRAME_READY 0
#define MAX_SLICES 4 #define MAX_SLICES 4
@@ -2,6 +2,8 @@
#include <SDL_opengl.h> #include <SDL_opengl.h>
#include <string.h>
CUDARenderer::CUDARenderer() CUDARenderer::CUDARenderer()
: IFFmpegRenderer(RendererType::CUDA), : IFFmpegRenderer(RendererType::CUDA),
m_HwContext(nullptr) m_HwContext(nullptr)
@@ -13,6 +13,10 @@
#include <dwmapi.h> #include <dwmapi.h>
#include <QByteArray>
#include <algorithm>
using Microsoft::WRL::ComPtr; using Microsoft::WRL::ComPtr;
// Standard DXVA GUIDs for HEVC RExt profiles (redefined for compatibility with pre-24H2 SDKs) // Standard DXVA GUIDs for HEVC RExt profiles (redefined for compatibility with pre-24H2 SDKs)
@@ -12,6 +12,8 @@ extern "C" {
#include <wrl/client.h> #include <wrl/client.h>
#include <wrl/wrappers/corewrappers.h> #include <wrl/wrappers/corewrappers.h>
#include <vector>
class D3D11VARenderer : public IFFmpegRenderer class D3D11VARenderer : public IFFmpegRenderer
{ {
public: public:
@@ -73,6 +73,9 @@ extern "C" {
#include <Limelight.h> #include <Limelight.h>
#include <QString>
#include <inttypes.h>
#include <map> #include <map>
#include <unordered_set> #include <unordered_set>
+9 -2
View File
@@ -10,9 +10,16 @@
#include <xf86drm.h> #include <xf86drm.h>
#include <xf86drmMode.h> #include <xf86drmMode.h>
#include <set> #include <algorithm>
#include <unordered_map> #include <atomic>
#include <inttypes.h>
#include <mutex> #include <mutex>
#include <optional>
#include <set>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
// This is only defined in Linux 6.8+ headers // This is only defined in Linux 6.8+ headers
#ifndef DRM_CAP_ATOMIC_ASYNC_PAGE_FLIP #ifndef DRM_CAP_ATOMIC_ASYNC_PAGE_FLIP
@@ -9,6 +9,9 @@
#include <QDir> #include <QDir>
#include <Limelight.h> #include <Limelight.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h> #include <unistd.h>
#include <SDL_syswm.h> #include <SDL_syswm.h>
@@ -13,8 +13,11 @@
#include <SDL_syswm.h> #include <SDL_syswm.h>
#include <QDir> #include <QDir>
#include <QFile>
#include <QTextStream> #include <QTextStream>
#include <string.h>
MmalRenderer::MmalRenderer() MmalRenderer::MmalRenderer()
: IFFmpegRenderer(RendererType::MMAL), : IFFmpegRenderer(RendererType::MMAL),
m_Renderer(nullptr), m_Renderer(nullptr),
@@ -2,6 +2,8 @@
#include "renderer.h" #include "renderer.h"
#include <QString>
#include <interface/mmal/mmal.h> #include <interface/mmal/mmal.h>
#include <interface/mmal/util/mmal_util.h> #include <interface/mmal/util/mmal_util.h>
#include <interface/mmal/util/mmal_util_params.h> #include <interface/mmal/util/mmal_util_params.h>
@@ -2,6 +2,8 @@
#include "streaming/streamutils.h" #include "streaming/streamutils.h"
#include "streaming/session.h" #include "streaming/session.h"
#include <utility>
#ifdef Q_OS_WIN32 #ifdef Q_OS_WIN32
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <Windows.h> #include <Windows.h>
@@ -15,8 +15,9 @@ extern "C" {
#include <libavutil/hwcontext_vulkan.h> #include <libavutil/hwcontext_vulkan.h>
} }
#include <vector>
#include <set> #include <set>
#include <string.h>
#include <vector>
#ifndef VK_KHR_video_decode_av1 #ifndef VK_KHR_video_decode_av1
#define VK_KHR_VIDEO_DECODE_AV1_EXTENSION_NAME "VK_KHR_video_decode_av1" #define VK_KHR_VIDEO_DECODE_AV1_EXTENSION_NAME "VK_KHR_video_decode_av1"
@@ -11,6 +11,8 @@
#include <libplacebo/vulkan.h> #include <libplacebo/vulkan.h>
#ifdef Q_OS_DARWIN #ifdef Q_OS_DARWIN
#include <memory>
class MetalVulkanTextureFactory { class MetalVulkanTextureFactory {
public: public:
MetalVulkanTextureFactory(pl_vulkan vulkan); MetalVulkanTextureFactory(pl_vulkan vulkan);
@@ -7,6 +7,12 @@
#include "streaming/video/decoder.h" #include "streaming/video/decoder.h"
#include "streaming/video/overlaymanager.h" #include "streaming/video/overlaymanager.h"
#ifdef HAVE_EGL
#include <QString>
#include <QStringList>
#include <unistd.h>
#endif
extern "C" { extern "C" {
#include <libavcodec/avcodec.h> #include <libavcodec/avcodec.h>
#include <libavutil/pixdesc.h> #include <libavutil/pixdesc.h>
@@ -7,6 +7,11 @@
#include <SDL_syswm.h> #include <SDL_syswm.h>
#include <QString>
#include <algorithm>
#include <string.h>
extern "C" { extern "C" {
#include <libavutil/pixdesc.h> #include <libavutil/pixdesc.h>
#include <libavutil/opt.h> #include <libavutil/opt.h>
@@ -1,5 +1,6 @@
#include <QString> #include <QString>
#include <algorithm>
#include <vector> #include <vector>
// HACK: Include before vaapi.h to prevent conflicts with Xlib.h // HACK: Include before vaapi.h to prevent conflicts with Xlib.h
@@ -15,8 +16,11 @@
#include <SDL_syswm.h> #include <SDL_syswm.h>
#include <unistd.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <inttypes.h>
#include <stdlib.h>
#include <unistd.h>
VAAPIRenderer::VAAPIRenderer(int decoderSelectionPass) VAAPIRenderer::VAAPIRenderer(int decoderSelectionPass)
: IFFmpegRenderer(RendererType::VAAPI), : IFFmpegRenderer(RendererType::VAAPI),
@@ -9,6 +9,8 @@
#include <Limelight.h> #include <Limelight.h>
#include <streaming/session.h> #include <streaming/session.h>
#include <QtGlobal>
#include <mach/mach_time.h> #include <mach/mach_time.h>
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
#import <VideoToolbox/VideoToolbox.h> #import <VideoToolbox/VideoToolbox.h>
@@ -22,6 +22,10 @@ extern "C" {
#include <libavutil/pixdesc.h> #include <libavutil/pixdesc.h>
} }
#include <QtGlobal>
#include <math.h>
struct CscParams struct CscParams
{ {
simd_half3x3 matrix; simd_half3x3 matrix;
+5
View File
@@ -3,6 +3,11 @@
#include "utils.h" #include "utils.h"
#include "streaming/session.h" #include "streaming/session.h"
#include <QMap>
#include <stdio.h>
#include <string.h>
#include <h264_stream.h> #include <h264_stream.h>
extern "C" { extern "C" {
+2
View File
@@ -1,7 +1,9 @@
#pragma once #pragma once
#include <functional> #include <functional>
#include <QByteArray>
#include <QQueue> #include <QQueue>
#include <QSet>
#include <set> #include <set>
#include "../bandwidth.h" #include "../bandwidth.h"
+2
View File
@@ -1,6 +1,8 @@
#include "overlaymanager.h" #include "overlaymanager.h"
#include "path.h" #include "path.h"
#include <string.h>
using namespace Overlay; using namespace Overlay;
OverlayManager::OverlayManager() : OverlayManager::OverlayManager() :
+3
View File
@@ -1,6 +1,9 @@
#pragma once #pragma once
#include <QString> #include <QString>
#include <QtGlobal>
#include <new>
#define THROW_BAD_ALLOC_IF_NULL(x) \ #define THROW_BAD_ALLOC_IF_NULL(x) \
if ((x) == nullptr) throw std::bad_alloc() if ((x) == nullptr) throw std::bad_alloc()
+3
View File
@@ -1,5 +1,8 @@
#include <QtGlobal> #include <QtGlobal>
#include <QDir> #include <QDir>
#include <QFile>
#include <string.h>
#include "utils.h" #include "utils.h"