File indexing completed on 2024-11-17 04:55:38
0001 /* 0002 * SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez <aleixpol@blue-systems.com> 0003 * SPDX-FileCopyrightText: 2017 Jan Grulich <jgrulich@redhat.com> 0004 * 0005 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0006 */ 0007 0008 #pragma once 0009 0010 #include "flatpak-helper.h" 0011 #include <QThread> 0012 0013 class FlatpakRefreshAppstreamMetadataJob : public QThread 0014 { 0015 Q_OBJECT 0016 public: 0017 FlatpakRefreshAppstreamMetadataJob(FlatpakInstallation *installation, FlatpakRemote *remote); 0018 ~FlatpakRefreshAppstreamMetadataJob() override; 0019 0020 void cancel(); 0021 void run() override; 0022 0023 Q_SIGNALS: 0024 void jobRefreshAppstreamMetadataFinished(FlatpakInstallation *installation, FlatpakRemote *remote); 0025 0026 private: 0027 GCancellable *m_cancellable; 0028 FlatpakInstallation *m_installation; 0029 FlatpakRemote *m_remote; 0030 };