-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathipcinterface.h
48 lines (38 loc) · 1.41 KB
/
ipcinterface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/************************************************************************************************
Kioo Media Player: A Player With Clear Crystal Sound, Extra Sharp Video, with a Beautiful Design.
Copyright (C) 2017 - 2020 Kioo Media Player <[email protected]>.
Homepage: https://www.kiooplayer.com
Developer: Godfrey E Laswai <[email protected]>
All rights reserved.
Use of this source code is governed by a BSD-3-Clause license that can be
found in the BSD-LICENSE file or see it here <https://opensource.org/licenses/BSD-3-Clause>.
*************************************************************************************************/
#ifndef IPCINTERFACE_H
#define IPCINTERFACE_H
#include <QObject>
#include <QtNetwork>
#include <QDebug>
#include <QByteArray>
#include <QString>
#include <QStringList>
class IPCInterface : public QObject
{
Q_OBJECT
public:
explicit IPCInterface(QObject *parent = nullptr);
~IPCInterface();
QTcpSocket *tcpClient = nullptr;
QTcpServer *tcpServer = nullptr;
QTcpSocket *tcpServerConnection = nullptr;
QString ipcPayload = "NoData";
QStringList ipcPayLoadList = {};
bool dataSent = false;
void clientConnect();
signals:
void linkReceived(QString data);
public slots:
void newConnection();
void serverReadyRead();
void clientReadyWrite();
};
#endif // IPCINTERFACE_H