#ifndef TOOLS_H #define TOOLS_H //#include "mainwindow.h" #include #include #include #include #include #include #include #include #include using namespace std; const vector explode(const string& s, const char& c, int n); FILE * popen2(array argv, string type, int & pid); int pclose2(FILE * fp, pid_t pid); bool testRsyncReturn(MainWindow *, QProcess *); QString getFileType(QString finename); #endif // TOOLS_H