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
28
src/localfileextractthread.h
Normal file
28
src/localfileextractthread.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
#ifndef LOCALFILEEXTRACTTHREAD_H
|
||||
#define LOCALFILEEXTRACTTHREAD_H
|
||||
|
||||
/*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
* Copyright (C) 2020 Raspberry Pi Ltd
|
||||
*/
|
||||
|
||||
#include "downloadextractthread.h"
|
||||
#include <QFile>
|
||||
|
||||
class LocalFileExtractThread : public DownloadExtractThread
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit LocalFileExtractThread(const QByteArray &url, const QByteArray &dst = "", const QByteArray &expectedHash = "", QObject *parent = nullptr);
|
||||
virtual ~LocalFileExtractThread();
|
||||
|
||||
protected:
|
||||
virtual void _cancelExtract();
|
||||
virtual void run();
|
||||
virtual ssize_t _on_read(struct archive *a, const void **buff);
|
||||
virtual int _on_close(struct archive *a);
|
||||
QFile _inputfile;
|
||||
char *_inputBuf;
|
||||
};
|
||||
|
||||
#endif // LOCALFILEEXTRACTTHREAD_H
|
Loading…
Add table
Add a link
Reference in a new issue