300TC 机载系统 完整功能,(1)采集影像(2)采集和解析惯导数据(3)惯导磁场校正
This commit is contained in:
35
Header_Files/fileoperation.h
Normal file
35
Header_Files/fileoperation.h
Normal file
@ -0,0 +1,35 @@
|
||||
#ifndef FILEOPERATION_H
|
||||
#define FILEOPERATION_H
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <QDir>
|
||||
#include <QFileInfo>
|
||||
|
||||
class FileOperation:public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
FileOperation();
|
||||
|
||||
bool copyFileToPath(QString sourceDir ,QString toDir, bool coverFileIfExist);
|
||||
QStringList getSubfolders(QDir parentFolder);
|
||||
|
||||
QString getFlashDrivePath();
|
||||
QDir getSourcePath();
|
||||
|
||||
private:
|
||||
//0:等待拷贝数据中;1:正在拷贝;2:没有数据可拷贝;3:请插入u盘;
|
||||
int m_copyFileStatus;
|
||||
|
||||
|
||||
public slots:
|
||||
void copyFile();
|
||||
void deleteFile();
|
||||
|
||||
signals:
|
||||
void copyFileStatus(int);
|
||||
};
|
||||
|
||||
#endif // FILEOPERATION_H
|
Reference in New Issue
Block a user