UniversalIndentGUI 1.2.0
|
UiGuiIndentServer is in such an early state, that even the communication protocol isn't completely planned. So this class lacks documentation until I really know where all this will lead to. More...
#include <UiGuiIndentServer.h>
Public Slots | |
void | startServer () |
void | stopServer () |
Public Member Functions | |
UiGuiIndentServer (void) | |
~UiGuiIndentServer (void) | |
Private Slots | |
void | checkIfReadyForHandleRequest () |
void | handleNewConnection () |
void | handleReceivedData () |
void | sendMessage (const QString &message) |
Private Attributes | |
quint32 | _blockSize |
QTcpSocket * | _currentClientConnection |
QByteArray | _dataToSend |
bool | _readyForHandleRequest |
QTcpServer * | _tcpServer |
UiGuiIndentServer is in such an early state, that even the communication protocol isn't completely planned. So this class lacks documentation until I really know where all this will lead to.
The plan however is to have a server that receives commands for selecting an indenter and perhaps load some by the user predefined indenter config file. Then the client can send a text to it and will receive it formatted. The idea behind that is to make UiGUIs use as plugin or whatever more flexible. So the plugin is developed for Eclipse for example and it takes the client role, making it possible to use UiGUI from within Eclipse. Choosing a network protocol makes everything platform and programming language independent, so it doesn't matter for which application the plugin/client is developed.
Definition at line 29 of file UiGuiIndentServer.h.
UiGuiIndentServer::UiGuiIndentServer | ( | void | ) |
Definition at line 46 of file UiGuiIndentServer.cpp.
References _currentClientConnection, _readyForHandleRequest, and _tcpServer.
UiGuiIndentServer::~UiGuiIndentServer | ( | void | ) |
Definition at line 53 of file UiGuiIndentServer.cpp.
void UiGuiIndentServer::checkIfReadyForHandleRequest | ( | ) | [private, slot] |
Definition at line 149 of file UiGuiIndentServer.cpp.
References _currentClientConnection, _dataToSend, and _readyForHandleRequest.
Referenced by sendMessage().
void UiGuiIndentServer::handleNewConnection | ( | ) | [private, slot] |
Definition at line 86 of file UiGuiIndentServer.cpp.
References _tcpServer, and handleReceivedData().
Referenced by startServer().
void UiGuiIndentServer::handleReceivedData | ( | ) | [private, slot] |
Definition at line 94 of file UiGuiIndentServer.cpp.
References _blockSize, _currentClientConnection, _readyForHandleRequest, and sendMessage().
Referenced by handleNewConnection().
void UiGuiIndentServer::sendMessage | ( | const QString & | message | ) | [private, slot] |
Definition at line 133 of file UiGuiIndentServer.cpp.
References _currentClientConnection, _dataToSend, _readyForHandleRequest, and checkIfReadyForHandleRequest().
Referenced by handleReceivedData().
void UiGuiIndentServer::startServer | ( | ) | [slot] |
Definition at line 57 of file UiGuiIndentServer.cpp.
References _blockSize, _readyForHandleRequest, _tcpServer, and handleNewConnection().
Referenced by main().
void UiGuiIndentServer::stopServer | ( | ) | [slot] |
Definition at line 75 of file UiGuiIndentServer.cpp.
References _currentClientConnection, _readyForHandleRequest, and _tcpServer.
Referenced by main().
quint32 UiGuiIndentServer::_blockSize [private] |
Definition at line 52 of file UiGuiIndentServer.h.
Referenced by handleReceivedData(), and startServer().
QTcpSocket* UiGuiIndentServer::_currentClientConnection [private] |
Definition at line 51 of file UiGuiIndentServer.h.
Referenced by checkIfReadyForHandleRequest(), handleReceivedData(), sendMessage(), stopServer(), and UiGuiIndentServer().
QByteArray UiGuiIndentServer::_dataToSend [private] |
Definition at line 49 of file UiGuiIndentServer.h.
Referenced by checkIfReadyForHandleRequest(), and sendMessage().
bool UiGuiIndentServer::_readyForHandleRequest [private] |
Definition at line 50 of file UiGuiIndentServer.h.
Referenced by checkIfReadyForHandleRequest(), handleReceivedData(), sendMessage(), startServer(), stopServer(), and UiGuiIndentServer().
QTcpServer* UiGuiIndentServer::_tcpServer [private] |
Definition at line 48 of file UiGuiIndentServer.h.
Referenced by handleNewConnection(), startServer(), stopServer(), and UiGuiIndentServer().