2023-01-07 12:44:45 +01:00
|
|
|
#ifndef TOOLS_H
|
|
|
|
#define TOOLS_H
|
|
|
|
|
2024-08-22 23:08:42 +02:00
|
|
|
#define DEBUGMACRO QString(__FILE__) + "->" + QString(Q_FUNC_INFO) + ": " + QString::number(__LINE__) + " -"
|
|
|
|
|
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>
|
2024-08-22 23:08:42 +02:00
|
|
|
#include "mainwindow.h"
|
2023-01-07 12:44:45 +01:00
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
2023-02-27 23:48:05 +01:00
|
|
|
bool testRsyncReturn(MainWindow *, QProcess *);
|
2024-08-22 23:08:42 +02:00
|
|
|
QString getFileType(QString filename);
|
|
|
|
int whatIpVersion(QString server);
|
|
|
|
void warning(QString message);
|
|
|
|
void error(QString message);
|
|
|
|
void info(QString debugHeader, QString message);
|
2024-10-18 15:52:13 +02:00
|
|
|
QString preparePath(QString path);
|
2023-02-10 21:32:20 +01:00
|
|
|
|
2023-01-07 12:44:45 +01:00
|
|
|
#endif // TOOLS_H
|