/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #if !defined(Q_MOC_RUN) #include #endif QT_FORWARD_DECLARE_CLASS(QProcess) namespace O3DE::ProjectManager { class DownloadWorker : public QObject { // Download was cancelled inline static const QString DownloadCancelled = QObject::tr("Download Cancelled."); Q_OBJECT public: explicit DownloadWorker(); ~DownloadWorker() = default; public slots: void StartDownload(); void SetGemToDownload(const QString& gemName, bool downloadNow = true); signals: void UpdateProgress(int bytesDownloaded, int totalBytes); void Done(QString result = "", QString detailedResult = ""); private: QString m_gemName; }; } // namespace O3DE::ProjectManager