looqs/gui/ipcserver.h

27 righe
584 B
C

#ifndef IPCSERVER_H
#define IPCSERVER_H
#include <QString>
#include <QLocalServer>
#include "ipc.h"
2022-04-24 12:34:34 +02:00
#include "filesaver.h"
class IpcServer : public QObject
{
Q_OBJECT
private:
2022-04-24 12:34:34 +02:00
QSharedPointer<DatabaseFactory> dbFactory;
QSharedPointer<SqliteDbService> dbService;
QSharedPointer<FileSaver> fileSaver;
QLocalServer spawningServer;
bool docOpen(QString path, int pagenum);
bool fileOpen(QString path);
2022-04-24 12:34:34 +02:00
SaveFileResult addFile(QString file);
private slots:
void spawnerNewConnection();
public:
IpcServer();
bool startSpawner(QString socketPath);
};
#endif // IPCSERVER_H