You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
549 B
C++
27 lines
549 B
C++
#ifndef LP_COMMANDPROCESS_H__
|
|
#define LP_COMMANDPROCESS_H__
|
|
|
|
#include <QString>
|
|
#include "tpProtocol.h"
|
|
#include "AppProtocol.h"
|
|
|
|
#include <QRunnable>
|
|
#include <QThreadPool>
|
|
|
|
class CCompressTask : public QObject, public QRunnable
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
CCompressTask(const QString& src, const QString& dst, bool bzip=true);
|
|
~CCompressTask();
|
|
|
|
void run();
|
|
signals:
|
|
void sigTaskFinished(const QString&, const QString&, int, bool);
|
|
private:
|
|
QString m_sSrc;
|
|
QString m_sDst;
|
|
bool m_bzip;
|
|
};
|
|
|
|
#endif //LP_COMMANDPROCESS_H__
|