gui: PreviewResult: Add serialization() methods for IPC

This commit is contained in:
2022-05-27 09:29:28 +02:00
parent ee18142e36
commit 3bdcb76d8e
6 changed files with 70 additions and 2 deletions

View File

@@ -2,6 +2,12 @@
#define PREVIEWRESULT_H
#include "clicklabel.h"
enum PreviewResultType
{
PDF = 1,
PlainText
};
class PreviewResult
{
protected:
@@ -17,6 +23,7 @@ class PreviewResult
virtual bool hasPreview();
QString getDocumentPath() const;
unsigned int getPage() const;
virtual QByteArray serialize() const;
};
#endif // PREVIEWRESULT_H