Some checks failed
eden-license / license-header (pull_request) Failing after 25s
Signed-off-by: crueter <crueter@eden-emu.dev>
32 lines
794 B
C++
32 lines
794 B
C++
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#ifndef QT_COMMON_H
|
|
#define QT_COMMON_H
|
|
|
|
#include <memory>
|
|
#include <QWindow>
|
|
#include "core/core.h"
|
|
#include <core/frontend/emu_window.h>
|
|
|
|
#include <core/file_sys/vfs/vfs_real.h>
|
|
|
|
namespace QtCommon {
|
|
|
|
extern QObject *rootObject;
|
|
extern std::unique_ptr<Core::System> system;
|
|
extern std::shared_ptr<FileSys::RealVfsFilesystem> vfs;
|
|
|
|
typedef std::function<bool(std::size_t, std::size_t)> QtProgressCallback;
|
|
|
|
Core::Frontend::WindowSystemType GetWindowSystemType();
|
|
|
|
Core::Frontend::EmuWindow::WindowSystemInfo GetWindowSystemInfo(QWindow *window);
|
|
|
|
void Init(QObject *root);
|
|
|
|
const QString tr(const char *str);
|
|
const QString tr(const std::string &str);
|
|
|
|
} // namespace QtCommon
|
|
#endif
|