blob: 24c8af612495b24c2302545b69fa52de4b020fea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
|