1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-05-12 21:07:44 +00:00
astra/launcher/include/steamapi.h

23 lines
491 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(bool freeTrial);
QCoro::Task<> shutdown();
QCoro::Task<std::pair<QString, int>> getTicket();
private:
QNetworkAccessManager m_qnam;
};