Limo
A simple mod manager
Loading...
Searching...
No Matches
ipcclient.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <QLocalSocket>
9#include <QObject>
10
11
15class IpcClient : public QObject
16{
17 Q_OBJECT
18public:
20 IpcClient();
22 ~IpcClient();
23
28 bool connect();
33 void sendString(const std::string& data);
34
35private:
37 QLocalSocket* socket_;
38};
QLocalSocket * socket_
The socket used for IPC.
Definition ipcclient.h:37
IpcClient()
Initializes the socket.
Definition ipcclient.cpp:5
void sendString(const std::string &data)
Sends the given string to the IpcServer.
Definition ipcclient.cpp:18
~IpcClient()
Deletes the socket.
Definition ipcclient.cpp:7
bool connect()
Connects the socket to the IpcServer.
Definition ipcclient.cpp:12