GUI: Begin IPC mechanism to open files despite sandboxing

此提交包含在:
2021-09-28 21:44:09 +02:00
父節點 3e387b99f8
當前提交 890925929a
共有 11 個檔案被更改,包括 235 行新增36 行删除

21
gui/ipcserver.h 一般檔案
查看文件

@@ -0,0 +1,21 @@
#ifndef IPCSERVER_H
#define IPCSERVER_H
#include <QString>
#include <QLocalServer>
#include "ipc.h"
class IpcServer : public QObject
{
Q_OBJECT
private:
QLocalServer spawningServer;
bool docOpen(QString path, int pagenum);
bool fileOpen(QString path);
private slots:
void spawnerNewConnection();
public:
IpcServer();
bool startSpawner(QString socketPath);
};
#endif // IPCSERVER_H