42 lines
804 B
C++
42 lines
804 B
C++
#ifndef FILE_OPERATIOIN_H
|
|
#define FILE_OPERATIOIN_H
|
|
|
|
#include <iostream>
|
|
#include <fstream>
|
|
#include<iostream>
|
|
#include <QObject>
|
|
|
|
using namespace std;
|
|
|
|
class FileOperation :public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
FileOperation();
|
|
~FileOperation();
|
|
|
|
string getDirectoryOfExe();//getDirectoryOfExe
|
|
string getDirectoryFromString(string directory="");
|
|
|
|
|
|
|
|
|
|
public Q_SLOTS:
|
|
bool copyFile(QString source, QString target);
|
|
|
|
/*bool moveFile(const string& source, const string& target);
|
|
bool deleteFile(const string& path);
|
|
bool hasFile(const string& path);
|
|
|
|
bool copyDirectory(const string& source, const string& target);
|
|
bool moveDirectory(const string& source, const string& target);
|
|
bool deleteDirectory(const string& path);*/
|
|
|
|
|
|
|
|
signals:
|
|
void CopyFinishedSignal();//绘制影像信号
|
|
};
|
|
#endif
|