core_syntax Class Reference

This class manage the dialog between client and server. More...

List of all members.

Public Member Functions

 core_syntax (const QString &="")
QString returnArg (int index)
void setValue (const QString &)
virtual ~core_syntax ()

Private Attributes

QString myTxt


Detailed Description

This class manage the dialog between client and server.

Date:
2007-06-17
Version:
1.0
Author:
Daniel Rocher
Client and server use a protocol :

	command  client server   definition
	- auth_rq       ->         Authentication request (login+password)
	- auth_ack      <-         Authentication OK
	- end           <->        Stop connection
	- kill_user     ->         Disconnect an user
	- send_msg      ->         Send a popup windows
	- smb_rq        ->         Sambstatus request
	- smb_data      <-         smbstatus reply
	- end_smb_rq    <-         smbstatus command finish
	- not_imp1                 Not implemented	
	- server_info   <-         Server Information (right for current client : permit disconnect an user,...)
	- error_auth    <-         Authentication error (bad password,...)
	- error_command <-         Command error (server informs client : the last command is not recognized)
	- error_obj     <-         Server wants to open a dialogbox to visualize an error
	- echo_request  <->        Test if connection is correct (is not dead)
	- echo_reply    <->        connection is correct
	

syntax:

	[command]field1;field2
	

exemple:

	[auth_rq]login;password
	[end]
	[smb_rq]
	

Constructor & Destructor Documentation

core_syntax::core_syntax ( const QString &  mte = ""  ) 

core_syntax::~core_syntax (  )  [virtual]


Member Function Documentation

QString core_syntax::returnArg ( int  index  ) 

Return value of an argument

Parameters:
index index of argument
Returns:
value of argument index

void core_syntax::setValue ( const QString &  mte  ) 

Parameters:
mte line to be analyzed


Member Data Documentation

QString core_syntax::myTxt [private]


The documentation for this class was generated from the following files:
Generated on Fri Nov 2 21:44:59 2007 for qtsmbstatus.kdevelop by  doxygen 1.5.3