obliteration/gui/pkg_extractor.hpp
2024-10-03 08:43:26 +02:00

23 lines
556 B
C++

#pragma once
#include <QObject>
#include "core.hpp"
class PkgExtractor final : public QObject {
Q_OBJECT
public:
PkgExtractor(Rust<Pkg> &&pkg, std::string &&dst);
~PkgExtractor() override;
public slots:
void exec();
signals:
void statusChanged(const QString &status, std::size_t bar, std::uint64_t current, std::uint64_t total);
void finished(const QString &error);
private:
void update(const char *status, std::size_t bar, std::uint64_t current, std::uint64_t total);
private:
Rust<Pkg> m_pkg;
std::string m_dst;
};