* Switched to experimental * Bumped Standards to 4.1.1 * Fixed Symbols * Added build dependency libexif-dev * Added dependencies libexif-dev and libmenu-cache-dev to libfm-qt-dev * Added override for dh_missing * Bumped years in copyright
37 lines
680 B
C++
37 lines
680 B
C++
#ifndef FM2_DELETEJOB_H
|
|
#define FM2_DELETEJOB_H
|
|
|
|
#include "../libfmqtglobals.h"
|
|
#include "fileoperationjob.h"
|
|
#include "filepath.h"
|
|
#include "gioptrs.h"
|
|
|
|
namespace Fm {
|
|
|
|
class LIBFM_QT_API DeleteJob : public Fm::FileOperationJob {
|
|
Q_OBJECT
|
|
public:
|
|
explicit DeleteJob(const FilePathList& paths): paths_{paths} {
|
|
}
|
|
|
|
explicit DeleteJob(FilePathList&& paths): paths_{paths} {
|
|
}
|
|
|
|
~DeleteJob() {
|
|
}
|
|
|
|
protected:
|
|
void exec() override;
|
|
|
|
private:
|
|
bool deleteFile(const FilePath& path, GFileInfoPtr inf);
|
|
bool deleteDirContent(const FilePath& path, GFileInfoPtr inf);
|
|
|
|
private:
|
|
FilePathList paths_;
|
|
};
|
|
|
|
} // namespace Fm
|
|
|
|
#endif // FM2_DELETEJOB_H
|