// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later #ifndef QT_COMMON_H #define QT_COMMON_H #include #include #include namespace QtCommon { static constexpr std::array METADATA_RESULTS = { "The operation completed successfully.", "The metadata cache couldn't be deleted. It might be in use or non-existent.", "The metadata cache is already empty.", }; enum MetadataResult { Success, Failure, Empty, }; /** * @brief ResetMetadata Reset game list metadata. * @return A result code. */ MetadataResult ResetMetadata(); /** * \brief Get a string representation of a result from ResetMetadata. * \param result The result code. * \return A string representation of the passed result code. */ inline constexpr const char *GetResetMetadataResultString(MetadataResult result) { return METADATA_RESULTS.at(static_cast(result)); } Core::Frontend::WindowSystemType GetWindowSystemType(); Core::Frontend::EmuWindow::WindowSystemInfo GetWindowSystemInfo(QWindow* window); } // namespace QtCommon #endif