GUI: Begin IPC mechanism to open files despite sandboxing
Tá an tiomantas seo le fáil i:
21
gui/ipcserver.h
Comhad gnáth
21
gui/ipcserver.h
Comhad gnáth
@ -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
|
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir