VGamepad PC
The Windows app for the virtual game controller.
Loading...
Searching...
No Matches
Server Class Reference

#include <server.hpp>

Inheritance diagram for Server:
[legend]
Collaboration diagram for Server:
[legend]

Public Member Functions

 Server (QWidget *parent=nullptr)
 
 ~Server () override
 

Public Attributes

QTcpServer * tcpServer = nullptr
 

Private Slots

void handleConnection ()
 
void destroyServer ()
 

Private Member Functions

void initServer ()
 
void serveClient ()
 

Private Attributes

Ui::Server * ui
 
QTcpSocket * clientConnection
 
bool isGamepadConnected
 

Constructor & Destructor Documentation

◆ Server()

Server::Server ( QWidget * parent = nullptr)
explicit

◆ ~Server()

Server::~Server ( )
override

Member Function Documentation

◆ destroyServer

void Server::destroyServer ( )
privateslot

◆ handleConnection

void Server::handleConnection ( )
privateslot

◆ initServer()

void Server::initServer ( )
private

◆ serveClient()

void Server::serveClient ( )
private

Member Data Documentation

◆ clientConnection

QTcpSocket* Server::clientConnection
private

◆ isGamepadConnected

bool Server::isGamepadConnected
private

◆ tcpServer

QTcpServer* Server::tcpServer = nullptr

◆ ui

Ui::Server* Server::ui
private

The documentation for this class was generated from the following files: