2023-01-07 12:44:45 +01:00
|
|
|
#ifndef TOOLS_H
|
|
|
|
#define TOOLS_H
|
|
|
|
|
2023-02-27 23:48:05 +01:00
|
|
|
#include "mainwindow.h"
|
2023-01-07 12:44:45 +01:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2023-01-18 23:12:21 +01:00
|
|
|
#include <array>
|
2023-02-10 21:32:20 +01:00
|
|
|
#include <QString>
|
|
|
|
#include <QMap>
|
|
|
|
#include <QTranslator>
|
|
|
|
#include <QProcess>
|
2023-03-04 19:12:13 +01:00
|
|
|
#include <QMimeDatabase>
|
|
|
|
#include <QMimeType>
|
2023-01-07 12:44:45 +01:00
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
2023-01-18 23:12:21 +01:00
|
|
|
const vector<string> explode(const string& s, const char& c, int n);
|
|
|
|
|
2023-01-23 23:42:20 +01:00
|
|
|
FILE * popen2(array<string,8> argv, string type, int & pid);
|
2023-01-18 23:12:21 +01:00
|
|
|
|
2023-01-07 12:44:45 +01:00
|
|
|
int pclose2(FILE * fp, pid_t pid);
|
|
|
|
|
2023-02-27 23:48:05 +01:00
|
|
|
bool testRsyncReturn(MainWindow *, QProcess *);
|
2023-03-04 19:12:13 +01:00
|
|
|
QString getFileType(QString finename);
|
2023-02-10 21:32:20 +01:00
|
|
|
|
2023-01-07 12:44:45 +01:00
|
|
|
#endif // TOOLS_H
|