File indexing completed on 2024-05-12 05:25:34

0001 /*
0002    SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QObject>
0010 class KZip;
0011 class StoreResourceJob : public QObject
0012 {
0013     Q_OBJECT
0014 public:
0015     explicit StoreResourceJob(QObject *parent = nullptr);
0016     ~StoreResourceJob() override;
0017 
0018     void start();
0019 
0020     void setArchivePath(const QString &archivePath);
0021 
0022     void setIdentifier(const QString &identifier);
0023 
0024     void setZip(KZip *zip);
0025 Q_SIGNALS:
0026     void error(const QString &);
0027     void info(const QString &);
0028 
0029 private:
0030     QString mArchivePath;
0031     QString mIdentifier;
0032     KZip *mZip = nullptr;
0033 };