Albert S
b6b3e2f3c0
Not entirely ideal as SandboxedProcessor does not save anything, but an improvement nevertheless over the current mess
27 regels
490 B
C++
27 regels
490 B
C++
#ifndef SANDBOXEDPROCESSOR_H
|
|
#define SANDBOXEDPROCESSOR_H
|
|
#include <QString>
|
|
#include <QMimeDatabase>
|
|
#include "pagedata.h"
|
|
#include "savefileresult.h"
|
|
|
|
class SandboxedProcessor
|
|
{
|
|
private:
|
|
QString filePath;
|
|
QMimeDatabase mimeDatabase;
|
|
|
|
void enableSandbox(QString readablePath = "");
|
|
void printResults(const QVector<PageData> &pageData);
|
|
|
|
public:
|
|
SandboxedProcessor(QString filepath)
|
|
{
|
|
this->filePath = filepath;
|
|
}
|
|
|
|
SaveFileResult process();
|
|
};
|
|
|
|
#endif // SANDBOXEDPROCESSOR_H
|