2018-09-16 13:05:51 -05:00
|
|
|
// Copyright 2017 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
2018-10-26 09:21:45 -05:00
|
|
|
#include <QFutureWatcher>
|
2018-09-16 13:05:51 -05:00
|
|
|
#include <QWizard>
|
2021-09-02 20:40:55 -05:00
|
|
|
#include "core/telemetry_session.h"
|
2018-09-16 13:05:51 -05:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class CompatDB;
|
|
|
|
}
|
|
|
|
|
|
|
|
class CompatDB : public QWizard {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2021-09-02 20:40:55 -05:00
|
|
|
explicit CompatDB(Core::TelemetrySession& telemetry_session_, QWidget* parent = nullptr);
|
2018-09-16 13:05:51 -05:00
|
|
|
~CompatDB();
|
|
|
|
|
|
|
|
private:
|
2018-10-26 09:21:45 -05:00
|
|
|
QFutureWatcher<bool> testcase_watcher;
|
|
|
|
|
2018-09-16 13:05:51 -05:00
|
|
|
std::unique_ptr<Ui::CompatDB> ui;
|
|
|
|
|
|
|
|
void Submit();
|
2018-10-26 09:21:45 -05:00
|
|
|
void OnTestcaseSubmitted();
|
2018-09-16 13:05:51 -05:00
|
|
|
void EnableNext();
|
2021-09-02 20:40:55 -05:00
|
|
|
|
|
|
|
Core::TelemetrySession& telemetry_session;
|
2018-09-16 13:05:51 -05:00
|
|
|
};
|