2016-05-17 03:04:11 +12:00
|
|
|
#pragma once
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
#ifndef TIPC_SERVER_PRIVATE_H
|
|
|
|
#define TIPC_SERVER_PRIVATE_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QLocalSocket>
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
namespace tipc {
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
//------------------------------------------------------------------
|
|
|
|
|
|
|
|
// Forward declarations
|
|
|
|
|
|
|
|
class Server;
|
|
|
|
|
|
|
|
//------------------------------------------------------------------
|
|
|
|
|
2016-06-29 18:17:12 +12:00
|
|
|
class SocketController final : public QObject {
|
2016-06-15 18:43:10 +12:00
|
|
|
Q_OBJECT
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
public:
|
2016-06-15 18:43:10 +12:00
|
|
|
Server *m_server;
|
|
|
|
QLocalSocket *m_socket;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
public Q_SLOTS:
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
void onReadyRead();
|
|
|
|
void onDisconnected();
|
2016-03-19 06:57:51 +13:00
|
|
|
};
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
} // namespace tipc
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
#endif // TIPC_SERVER_PRIVATE_H
|