GUI: Begin IPC mechanism to open files despite sandboxing

Tá an tiomantas seo le fáil i:
2021-09-28 21:44:09 +02:00
tuismitheoir 3e387b99f8
tiomantas 890925929a
D'athraigh 11 comhad le 235 breiseanna agus 36 scriosta

21
gui/ipcserver.h Comhad gnáth
Féach ar an gComhad

@ -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