2021-08-07 18:38:23 +02:00
|
|
|
#ifndef SANDBOXEDPROCESSOR_H
|
|
|
|
#define SANDBOXEDPROCESSOR_H
|
|
|
|
#include <QString>
|
2022-05-30 19:51:13 +02:00
|
|
|
#include <QMimeDatabase>
|
2021-08-07 18:38:23 +02:00
|
|
|
#include "pagedata.h"
|
|
|
|
|
|
|
|
class SandboxedProcessor
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
QString filePath;
|
2022-05-30 19:51:13 +02:00
|
|
|
QMimeDatabase mimeDatabase;
|
2021-08-07 18:38:23 +02:00
|
|
|
|
|
|
|
void enableSandbox(QString readablePath = "");
|
|
|
|
void printResults(const QVector<PageData> &pageData);
|
|
|
|
|
|
|
|
public:
|
|
|
|
SandboxedProcessor(QString filepath)
|
|
|
|
{
|
|
|
|
this->filePath = filepath;
|
|
|
|
}
|
|
|
|
|
|
|
|
int process();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SANDBOXEDPROCESSOR_H
|