mirror of
https://github.com/QuasarApp/Snake.git
synced 2025-04-28 18:54:40 +00:00
33 lines
546 B
C++
33 lines
546 B
C++
#ifndef CLIENT_SP_H
|
|
#define CLIENT_SP_H
|
|
#include "serverprotocol.h"
|
|
#include "serverprotocol_global.h"
|
|
#include <QObject>
|
|
|
|
class QLocalSocket;
|
|
|
|
namespace ServerProtocol {
|
|
|
|
class SERVERPROTOCOLSHARED_EXPORT Client : public QObject
|
|
{
|
|
Q_OBJECT
|
|
private:
|
|
QLocalSocket *_destination;
|
|
Package _downloadPackage;
|
|
|
|
private slots:
|
|
void incommingData();
|
|
|
|
public:
|
|
explicit Client(QObject * ptr = nullptr);
|
|
bool sendPackage(const Package& pkg);
|
|
|
|
signals:
|
|
void sigIncommingData(const QVariantMap& map);
|
|
};
|
|
|
|
}
|
|
|
|
|
|
#endif // CLIENT_SP_H
|