UniversalIndentGUI 1.2.0
Public Slots | Public Member Functions | Private Slots | Private Attributes
UiGuiIndentServer Class Reference

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>

Inheritance diagram for UiGuiIndentServer:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

UiGuiIndentServer::UiGuiIndentServer ( void  )
UiGuiIndentServer::~UiGuiIndentServer ( void  )

Definition at line 53 of file UiGuiIndentServer.cpp.


Member Function Documentation

void UiGuiIndentServer::checkIfReadyForHandleRequest ( ) [private, slot]

Definition at line 149 of file UiGuiIndentServer.cpp.

References _currentClientConnection, _dataToSend, and _readyForHandleRequest.

Referenced by sendMessage().

Here is the caller graph for this function:

void UiGuiIndentServer::handleNewConnection ( ) [private, slot]

Definition at line 86 of file UiGuiIndentServer.cpp.

References _tcpServer, and handleReceivedData().

Referenced by startServer().

Here is the call graph for this function:

Here is the caller graph for this function:

void UiGuiIndentServer::handleReceivedData ( ) [private, slot]

Definition at line 94 of file UiGuiIndentServer.cpp.

References _blockSize, _currentClientConnection, _readyForHandleRequest, and sendMessage().

Referenced by handleNewConnection().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void UiGuiIndentServer::startServer ( ) [slot]

Definition at line 57 of file UiGuiIndentServer.cpp.

References _blockSize, _readyForHandleRequest, _tcpServer, and handleNewConnection().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void UiGuiIndentServer::stopServer ( ) [slot]

Definition at line 75 of file UiGuiIndentServer.cpp.

References _currentClientConnection, _readyForHandleRequest, and _tcpServer.

Referenced by main().

Here is the caller graph for this function:


Member Data Documentation

quint32 UiGuiIndentServer::_blockSize [private]

Definition at line 52 of file UiGuiIndentServer.h.

Referenced by handleReceivedData(), and startServer().

QByteArray UiGuiIndentServer::_dataToSend [private]

Definition at line 49 of file UiGuiIndentServer.h.

Referenced by checkIfReadyForHandleRequest(), and sendMessage().

QTcpServer* UiGuiIndentServer::_tcpServer [private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines