SourceForge Logo
P.I.G.A.L.E.
1.3.9
Public Implementation of a Graph Algorithm
Library and Editor

H. de Fraysseix      P. Ossona de Mendez

Client Class Reference

Collaboration diagram for Client:

Collaboration graph
[legend]

List of all members.


Detailed Description

Creates a Thread to read input data, and a QTcpSocket to dialog with the server.

Usage

The default port used for connection is 4242

In the input:

When reading from the server

Public Member Functions

Public Attributes

Protected Member Functions

Private Slots

Private Member Functions

Private Attributes


Constructor & Destructor Documentation

Client ( const QString &  host,
quint16  port 
)

~Client (  )  [inline]


Member Function Documentation

void sendToServer ( QString &  str  ) 

bool debug (  )  [inline]

void debug ( bool  b  ) 

void closeConnection (  )  [private, slot]

void askCloseConnection (  )  [private, slot]

void askConnection (  )  [private, slot]

void sendToServer (  )  [private, slot]

void socketReadyRead (  )  [private, slot]

void socketConnected (  )  [private, slot]

void socketConnectionClosed (  )  [private, slot]

void socketError ( QAbstractSocket::SocketError  e  )  [private, slot]

void stop (  )  [private, slot]

void exit (  )  [private, slot]

int ChangeActionsToDo ( int  delta  ) 

void writeServerEvent ( QString  str  ) 

void writeServerEvent ( char *  buf,
uint  size 
)

void writeClient ( QString  str  ) 

void customEvent ( QEvent *  e  )  [protected]

int sendToServerGraph ( QString &  str  )  [private]

uint readBuffer ( char *&  buff  )  [private]

void writeServer ( QString  str  )  [private]

void writeServer ( char *  buff,
quint32  size 
) [private]


Member Data Documentation

QStack<QString > stack

QString host [private]

quint16 port [private]

QPushButton* send [private]

QPushButton * close [private]

QPushButton * quit [private]

QPushButton * connection [private]

QTcpSocket* socket [private]

int ActionsToDo [private]

bool dbg [private]

int warning [private]

QMutex mutex [private]

QReadWriteLock lock [private]

QDataStream clo [private]

QTextEdit* infoText [private]

QLineEdit* inputText [private]

threadRead ThreadRead [private]

int numFiles [private]


Generated on Thu Jan 31 16:51:40 2008 for Pigale by  doxygen 1.5.4