mirror of
https://github.com/redstrate/Astra.git
synced 2025-05-06 10:47:44 +00:00
This adds support for Steam service accounts, finally. Requires an updated steamwrap, and we're missing the infrastructure to launch it at the moment too.
23 lines
477 B
C++
23 lines
477 B
C++
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QCoroTask>
|
|
#include <QNetworkAccessManager>
|
|
#include <QObject>
|
|
|
|
class LauncherCore;
|
|
|
|
class SteamAPI : public QObject
|
|
{
|
|
public:
|
|
explicit SteamAPI(QObject *parent = nullptr);
|
|
|
|
QCoro::Task<> initialize();
|
|
QCoro::Task<> shutdown();
|
|
QCoro::Task<std::pair<QString, int>> getTicket();
|
|
|
|
private:
|
|
QNetworkAccessManager m_qnam;
|
|
};
|