mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
Move source files to /src
This commit is contained in:
parent
4daff1ba79
commit
033ff07abf
2685 changed files with 9 additions and 7 deletions
39
cli.h
39
cli.h
|
@ -1,39 +0,0 @@
|
|||
#ifndef CLI_H
|
||||
#define CLI_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QVariant>
|
||||
|
||||
class ImageWriter;
|
||||
class QCoreApplication;
|
||||
|
||||
class Cli : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit Cli(int &argc, char *argv[]);
|
||||
virtual ~Cli();
|
||||
int main();
|
||||
|
||||
protected:
|
||||
QCoreApplication *_app;
|
||||
ImageWriter *_imageWriter;
|
||||
int _lastPercent;
|
||||
QByteArray _lastMsg;
|
||||
bool _quiet;
|
||||
|
||||
void _printProgress(const QByteArray &msg, QVariant now, QVariant total);
|
||||
void _clearLine();
|
||||
|
||||
protected slots:
|
||||
void onSuccess();
|
||||
void onError(QVariant msg);
|
||||
void onDownloadProgress(QVariant dlnow, QVariant dltotal);
|
||||
void onVerifyProgress(QVariant now, QVariant total);
|
||||
void onPreparationStatusUpdate(QVariant msg);
|
||||
|
||||
signals:
|
||||
|
||||
};
|
||||
|
||||
#endif // CLI_H
|
Loading…
Add table
Add a link
Reference in a new issue