diff options
author | Thomas Preud'homme <robotux@celest.fr> | 2017-11-24 23:24:09 +0000 |
---|---|---|
committer | Thomas Preud'homme <robotux@celest.fr> | 2017-11-24 23:24:09 +0000 |
commit | b3c8bdcc0d1e4b2ab298847a7902b6d60410a5bc (patch) | |
tree | 8fce8a51adfb245db8ab2a76831661780c0c713e /plugins/CopyEngine/Ultracopier/DriveManagement.h | |
parent | e297dbd8052ef4e66f069e2dd1865ae7fa8af28e (diff) |
New upstream version 1.2.3.6
Diffstat (limited to 'plugins/CopyEngine/Ultracopier/DriveManagement.h')
-rw-r--r-- | plugins/CopyEngine/Ultracopier/DriveManagement.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/plugins/CopyEngine/Ultracopier/DriveManagement.h b/plugins/CopyEngine/Ultracopier/DriveManagement.h new file mode 100644 index 0000000..765a753 --- /dev/null +++ b/plugins/CopyEngine/Ultracopier/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 QString &file1,const QString &file2) const; + /// \brief get drive of an file or folder + QString getDrive(const QString &fileOrFolder) const; + QByteArray getDriveType(const QString &drive) const; + void tryUpdate(); +protected: + QStringList mountSysPoint; + QList<QByteArray> driveType; + #ifdef Q_OS_WIN32 + QRegularExpression reg1,reg2,reg3,reg4; + #endif +signals: + /// \brief To debug source + void debugInformation(const Ultracopier::DebugLevel &level,const QString &fonction,const QString &text,const QString &file,const int &ligne) const; +}; + +#endif // DRIVEMANAGEMENT_H |