2021-09-28 21:44:09 +02:00
|
|
|
#ifndef IPCSERVER_H
|
|
|
|
#define IPCSERVER_H
|
|
|
|
#include <QString>
|
|
|
|
#include <QLocalServer>
|
|
|
|
#include "ipc.h"
|
2022-04-24 12:34:34 +02:00
|
|
|
#include "filesaver.h"
|
2021-09-28 21:44:09 +02:00
|
|
|
class IpcServer : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
private:
|
|
|
|
QLocalServer spawningServer;
|
2022-04-24 12:34:34 +02:00
|
|
|
SaveFileResult addFile(QString file);
|
2021-09-28 21:44:09 +02:00
|
|
|
private slots:
|
|
|
|
void spawnerNewConnection();
|
|
|
|
|
|
|
|
public:
|
|
|
|
IpcServer();
|
|
|
|
bool startSpawner(QString socketPath);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // IPCSERVER_H
|