LineCore Class Reference

Analysis the lines of smbstatus reply. More...

List of all members.

Public Member Functions

void Analysis (const QString &OneLine)
bool InitElement (QString element)
void InitHeader (const QString &OneHeader)
 LineCore (QObject *parent=0)
QString ReturnElement (QString element)
void SortElements ()
 ~LineCore ()

Static Public Attributes

static int compteur_objet = 0

Private Types

typedef Q3ValueList
< record
recordList

Private Attributes

bool analysisProc
QString header
bool initHead
QString line
recordList listElement

Static Private Attributes

static const short int back = 2

Classes

struct  record


Detailed Description

Analysis the lines of smbstatus reply.

Date:
2007-06-15
Version:
1.0
Author:
Daniel Rocher
See also:
smbstatus

Member Typedef Documentation

typedef Q3ValueList<record> LineCore::recordList [private]


Constructor & Destructor Documentation

LineCore::LineCore ( QObject *  parent = 0  ) 

LineCore::~LineCore (  ) 


Member Function Documentation

void LineCore::Analysis ( const QString &  OneLine  ) 

Analysis one line

Parameters:
OneLine one line of smbstatus (without the header).
Exemple:
	3456   DENY_NONE  0x1         RDONLY     NONE             /home/villou/Utilitaires/qtsmbstatus.pdf   Fri Sep 10 14:14:12 2004
	

bool LineCore::InitElement ( QString  element  ) 

Find field on header

Parameters:
element field
Return values:
true field exist
false field doesn't exist
See also:
InitHeader Exemple: "Pid", "DenyMode", ...

void LineCore::InitHeader ( const QString &  OneHeader  ) 

Init header. Received header for one section.

Parameters:
OneHeader header of one section (connections, shares, locked files, ...).
Exemple:
	Pid    DenyMode   Access      R/W        Oplock           Name
	

QString LineCore::ReturnElement ( QString  element  ) 

Return one field contents

Parameters:
element field name
Returns:
one field contents

void LineCore::SortElements (  ) 

Sort records


Member Data Documentation

bool LineCore::analysisProc [private]

const short int LineCore::back = 2 [static, private]

int LineCore::compteur_objet = 0 [static]

QString LineCore::header [private]

bool LineCore::initHead [private]

QString LineCore::line [private]

recordList LineCore::listElement [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