DataLoader Class Reference

#include <dataloader.h>

List of all members.

Public Slots

void on_procDataReady (const QByteArray &)
void on_eof ()

Signals

void newDataReady (const FileHistory *)
void loaded (const FileHistory *, ulong, int, bool, const QString &, const QString &)

Public Member Functions

 DataLoader (Git *g, FileHistory *f)
 ~DataLoader ()
bool start (const QStringList &args, const QString &wd)

Private Slots

void on_cancel ()
void on_cancel (const FileHistory *)
void on_timeout ()

Private Member Functions

void parseSingleBuffer (const QByteArray &ba)
void addSplittedChunks (const QByteArray *halfChunk)
bool doStart (const QStringList &args, const QString &wd)
ulong readNewData (bool lastBuffer)

Private Attributes

Gitgit
FileHistoryfh
QByteArray * halfChunk
QTime loadTime
QTimer guiUpdateTimer
ulong loadedBytes
bool isProcExited
bool parsing
bool canceling
MyProcessproc
QString procPID
QString scriptFileName
QString dataFileName
QFile dataFile


Detailed Description

Definition at line 25 of file dataloader.h.


Constructor & Destructor Documentation

DataLoader ( Git g,
FileHistory f 
)

Definition at line 20 of file dataloader.cpp.

~DataLoader (  ) 

Definition at line 202 of file dataloader.cpp.


Member Function Documentation

bool start ( const QStringList &  args,
const QString &  wd 
)

Definition at line 38 of file dataloader.cpp.

Referenced by Git::startParseProc().

void on_procDataReady ( const QByteArray &  data  )  [slot]

Definition at line 268 of file dataloader.cpp.

void on_eof (  )  [slot]

Definition at line 54 of file dataloader.cpp.

void newDataReady ( const FileHistory  )  [signal]

Referenced by on_timeout().

void loaded ( const FileHistory ,
ulong  ,
int  ,
bool  ,
const QString &  ,
const QString &   
) [signal]

Referenced by on_timeout().

void on_cancel (  )  [private, slot]

Definition at line 212 of file dataloader.cpp.

Referenced by DataLoader(), and on_cancel().

void on_cancel ( const FileHistory f  )  [private, slot]

Definition at line 32 of file dataloader.cpp.

void on_timeout (  )  [private, slot]

Definition at line 68 of file dataloader.cpp.

Referenced by DataLoader().

void parseSingleBuffer ( const QByteArray &  ba  )  [private]

Definition at line 94 of file dataloader.cpp.

Referenced by readNewData().

void addSplittedChunks ( const QByteArray *  halfChunk  )  [private]

Definition at line 128 of file dataloader.cpp.

Referenced by parseSingleBuffer().

bool doStart ( const QStringList &  args,
const QString &  wd 
) [private]

Definition at line 225 of file dataloader.cpp.

Referenced by start().

ulong readNewData ( bool  lastBuffer  )  [private]

Definition at line 274 of file dataloader.cpp.

Referenced by on_timeout().


Member Data Documentation

Git* git [private]

Definition at line 51 of file dataloader.h.

Referenced by addSplittedChunks(), DataLoader(), doStart(), on_cancel(), and parseSingleBuffer().

FileHistory* fh [private]

Definition at line 52 of file dataloader.h.

Referenced by addSplittedChunks(), on_cancel(), on_timeout(), parseSingleBuffer(), and readNewData().

QByteArray* halfChunk [private]

Definition at line 53 of file dataloader.h.

Referenced by DataLoader(), and parseSingleBuffer().

QTime loadTime [private]

Definition at line 54 of file dataloader.h.

Referenced by on_timeout(), and start().

QTimer guiUpdateTimer [private]

Definition at line 55 of file dataloader.h.

Referenced by DataLoader(), on_eof(), on_timeout(), and start().

ulong loadedBytes [private]

Definition at line 56 of file dataloader.h.

Referenced by DataLoader(), and on_timeout().

bool isProcExited [private]

Definition at line 57 of file dataloader.h.

Referenced by DataLoader(), on_eof(), on_timeout(), and start().

bool parsing [private]

Definition at line 58 of file dataloader.h.

Referenced by DataLoader(), on_eof(), and on_timeout().

bool canceling [private]

Definition at line 59 of file dataloader.h.

Referenced by DataLoader(), on_cancel(), on_eof(), on_timeout(), and parseSingleBuffer().

MyProcess* proc [private]

Definition at line 64 of file dataloader.h.

Referenced by DataLoader(), doStart(), and on_cancel().

QString procPID [private]

Definition at line 65 of file dataloader.h.

Referenced by on_cancel(), and on_procDataReady().

QString scriptFileName [private]

Definition at line 66 of file dataloader.h.

Referenced by doStart(), and ~DataLoader().

QString dataFileName [private]

Definition at line 67 of file dataloader.h.

Referenced by doStart(), and ~DataLoader().

QFile dataFile [private]

Definition at line 68 of file dataloader.h.

Referenced by doStart(), readNewData(), and ~DataLoader().


The documentation for this class was generated from the following files:
Generated on Fri Dec 7 21:57:39 2007 for QGit by  doxygen 1.5.3