#include <dataloader.h>
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 | |
Git * | git |
FileHistory * | fh |
QByteArray * | halfChunk |
QTime | loadTime |
QTimer | guiUpdateTimer |
ulong | loadedBytes |
bool | isProcExited |
bool | parsing |
bool | canceling |
MyProcess * | proc |
QString | procPID |
QString | scriptFileName |
QString | dataFileName |
QFile | dataFile |
Definition at line 25 of file dataloader.h.
DataLoader | ( | Git * | g, | |
FileHistory * | f | |||
) |
Definition at line 20 of file dataloader.cpp.
~DataLoader | ( | ) |
Definition at line 202 of file dataloader.cpp.
bool start | ( | const QStringList & | args, | |
const QString & | wd | |||
) |
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] |
void on_cancel | ( | const FileHistory * | f | ) | [private, slot] |
Definition at line 32 of file dataloader.cpp.
void on_timeout | ( | ) | [private, slot] |
void parseSingleBuffer | ( | const QByteArray & | ba | ) | [private] |
void addSplittedChunks | ( | const QByteArray * | halfChunk | ) | [private] |
bool doStart | ( | const QStringList & | args, | |
const QString & | wd | |||
) | [private] |
ulong readNewData | ( | bool | lastBuffer | ) | [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] |
QTime loadTime [private] |
QTimer guiUpdateTimer [private] |
Definition at line 55 of file dataloader.h.
Referenced by DataLoader(), on_eof(), on_timeout(), and start().
ulong loadedBytes [private] |
bool isProcExited [private] |
Definition at line 57 of file dataloader.h.
Referenced by DataLoader(), on_eof(), on_timeout(), and start().
bool parsing [private] |
bool canceling [private] |
Definition at line 59 of file dataloader.h.
Referenced by DataLoader(), on_cancel(), on_eof(), on_timeout(), and parseSingleBuffer().
QString procPID [private] |
QString scriptFileName [private] |
QString dataFileName [private] |
QFile dataFile [private] |
Definition at line 68 of file dataloader.h.
Referenced by doStart(), readNewData(), and ~DataLoader().