summaryrefslogtreecommitdiff
path: root/plugins/CopyEngine/Ultracopier-Spec/DriveManagement.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2020-08-11 22:35:12 +0100
committerThomas Preud'homme <robotux@celest.fr>2020-08-11 22:35:12 +0100
commit3ac113857071fc1f225b2e1b42547269e568c6b7 (patch)
tree8b28dd9c44a0d3c7ab8187cd8d8f19d47591d813 /plugins/CopyEngine/Ultracopier-Spec/DriveManagement.h
parent9b10c21f5cad0e2ec27d23c59e65af7141a226f3 (diff)
New upstream version 2.2.4.4
Diffstat (limited to 'plugins/CopyEngine/Ultracopier-Spec/DriveManagement.h')
-rwxr-xr-xplugins/CopyEngine/Ultracopier-Spec/DriveManagement.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/plugins/CopyEngine/Ultracopier-Spec/DriveManagement.h b/plugins/CopyEngine/Ultracopier-Spec/DriveManagement.h
new file mode 100755
index 0000000..24c8af6
--- /dev/null
+++ b/plugins/CopyEngine/Ultracopier-Spec/DriveManagement.h
@@ -0,0 +1,34 @@
+#ifndef DRIVEMANAGEMENT_H
+#define DRIVEMANAGEMENT_H
+
+#include <QObject>
+#include <QString>
+#include <QStringList>
+#include <QRegularExpression>
+#include <QStorageInfo>
+#include <QTimer>
+
+#include "Environment.h"
+
+class DriveManagement : public QObject
+{
+ Q_OBJECT
+public:
+ explicit DriveManagement();
+ bool isSameDrive(const std::string &file1, const std::string &file2) const;
+ /// \brief get drive of an file or folder
+ std::string getDrive(const std::string &fileOrFolder) const;
+ std::string getDriveType(const std::string &drive) const;
+ void tryUpdate();
+protected:
+ std::vector<std::string> mountSysPoint;
+ std::vector<std::string> driveType;
+ #ifdef Q_OS_WIN32
+ std::regex reg3,reg4;
+ #endif
+signals:
+ /// \brief To debug source
+ void debugInformation(const Ultracopier::DebugLevel &level,const std::string &fonction,const std::string &text,const std::string &file,const int &ligne) const;
+};
+
+#endif // DRIVEMANAGEMENT_H