mirror of
https://github.com/obhq/obliteration.git
synced 2024-11-23 11:19:56 +00:00
23 lines
556 B
C++
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;
|
|
};
|