yhkylin-backup-tools/backup-daemon/myprocess/mountbackupprocess.h

26 lines
494 B
C
Raw Normal View History

2021-08-06 10:20:03 +08:00
#ifndef MOUNTBACKUPPROCESS_H
#define MOUNTBACKUPPROCESS_H
#include <QProcess>
2021-12-11 09:49:09 +08:00
#include <sys/mount.h>
2021-08-06 10:20:03 +08:00
class MountBackupProcess : public QObject {
Q_OBJECT
public:
MountBackupProcess(QObject* parent = nullptr);
bool Do(const QString& diskUuid);
2021-10-26 09:24:05 +08:00
bool umountBackupPartition();
2022-01-25 16:42:09 +08:00
bool umount(const QString& mountPath);
2021-12-11 09:49:09 +08:00
bool mount(const QString& source, const QString& target, const QString& options = "");
2021-08-06 10:20:03 +08:00
private:
QProcess* m_p;
};
#endif // MOUNTBACKUPPROCESS_H