ATLAS Offline Software
Public Slots | Public Member Functions | Protected Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes | List of all members
VP1HttpGetFile_DownloadThread Class Reference

#include <VP1HttpGetFile_Private.h>

Inheritance diagram for VP1HttpGetFile_DownloadThread:
Collaboration diagram for VP1HttpGetFile_DownloadThread:

Public Slots

void checkForStall ()
 

Public Member Functions

 VP1HttpGetFile_DownloadThread (const QString &urltofile, const QString &localtargetfile, const QString &expectedMD5Sum, const QString &data, QObject *parent=0)
 
virtual ~VP1HttpGetFile_DownloadThread ()
 
bool errors () const
 
QString errorString () const
 
QString urltofile () const
 
QString localtargetfile () const
 
QString expectedMD5Sum () const
 
QString data () const
 

Protected Member Functions

void run ()
 

Private Types

enum  DOWNLOADFINISHSTATUS {
  NOTFINISHED, NOERRORS, HTTPERROR, STALLEDERROR,
  SIZEDECREASEDERROR
}
 
enum  CLEANUPOPT { CLEANUPLOCALFILE, DONTTOUCHLOCALFILE }
 

Private Slots

void done (bool)
 
void dataReadProgress ()
 

Private Member Functions

void endInFailure (const QString &, CLEANUPOPT)
 

Private Attributes

const QString m_urltofile
 
const QString m_localtargetfile
 
const QString m_expectedMD5Sum
 
const QString m_data
 
QString m_errorString
 
QMutex m_mutex
 
DOWNLOADFINISHSTATUS m_downloadFinishedStatus
 
unsigned m_lastChangeTime
 
qint64 m_lastcheckedsize
 

Detailed Description

Definition at line 29 of file VP1HttpGetFile_Private.h.

Member Enumeration Documentation

◆ CLEANUPOPT

Enumerator
CLEANUPLOCALFILE 
DONTTOUCHLOCALFILE 

Definition at line 70 of file VP1HttpGetFile_Private.h.

◆ DOWNLOADFINISHSTATUS

Enumerator
NOTFINISHED 
NOERRORS 
HTTPERROR 
STALLEDERROR 
SIZEDECREASEDERROR 

Definition at line 66 of file VP1HttpGetFile_Private.h.

Constructor & Destructor Documentation

◆ VP1HttpGetFile_DownloadThread()

VP1HttpGetFile_DownloadThread::VP1HttpGetFile_DownloadThread ( const QString &  urltofile,
const QString &  localtargetfile,
const QString &  expectedMD5Sum,
const QString &  data,
QObject *  parent = 0 
)

◆ ~VP1HttpGetFile_DownloadThread()

virtual VP1HttpGetFile_DownloadThread::~VP1HttpGetFile_DownloadThread ( )
inlinevirtual

Definition at line 40 of file VP1HttpGetFile_Private.h.

40 {}

Member Function Documentation

◆ checkForStall

void VP1HttpGetFile_DownloadThread::checkForStall ( )
slot

◆ data()

QString VP1HttpGetFile_DownloadThread::data ( ) const
inline

Definition at line 49 of file VP1HttpGetFile_Private.h.

49 { return m_data; }

◆ dataReadProgress

void VP1HttpGetFile_DownloadThread::dataReadProgress ( )
privateslot

◆ done

void VP1HttpGetFile_DownloadThread::done ( bool  )
privateslot

◆ endInFailure()

void VP1HttpGetFile_DownloadThread::endInFailure ( const QString &  ,
CLEANUPOPT   
)
private

◆ errors()

bool VP1HttpGetFile_DownloadThread::errors ( ) const
inline

Definition at line 43 of file VP1HttpGetFile_Private.h.

43 { m_mutex.lock(); bool err=!m_errorString.isEmpty(); m_mutex.unlock(); return err; }

◆ errorString()

QString VP1HttpGetFile_DownloadThread::errorString ( ) const
inline

Definition at line 44 of file VP1HttpGetFile_Private.h.

44 { m_mutex.lock(); QString err = m_errorString; m_mutex.unlock(); return err; }

◆ expectedMD5Sum()

QString VP1HttpGetFile_DownloadThread::expectedMD5Sum ( ) const
inline

Definition at line 48 of file VP1HttpGetFile_Private.h.

48 { return m_expectedMD5Sum; }

◆ localtargetfile()

QString VP1HttpGetFile_DownloadThread::localtargetfile ( ) const
inline

Definition at line 47 of file VP1HttpGetFile_Private.h.

47 { return m_localtargetfile; }

◆ run()

void VP1HttpGetFile_DownloadThread::run ( )
protected

◆ urltofile()

QString VP1HttpGetFile_DownloadThread::urltofile ( ) const
inline

Definition at line 46 of file VP1HttpGetFile_Private.h.

46 { return m_urltofile; }

Member Data Documentation

◆ m_data

const QString VP1HttpGetFile_DownloadThread::m_data
private

Definition at line 62 of file VP1HttpGetFile_Private.h.

◆ m_downloadFinishedStatus

DOWNLOADFINISHSTATUS VP1HttpGetFile_DownloadThread::m_downloadFinishedStatus
private

Definition at line 67 of file VP1HttpGetFile_Private.h.

◆ m_errorString

QString VP1HttpGetFile_DownloadThread::m_errorString
private

Definition at line 63 of file VP1HttpGetFile_Private.h.

◆ m_expectedMD5Sum

const QString VP1HttpGetFile_DownloadThread::m_expectedMD5Sum
private

Definition at line 61 of file VP1HttpGetFile_Private.h.

◆ m_lastChangeTime

unsigned VP1HttpGetFile_DownloadThread::m_lastChangeTime
private

Definition at line 68 of file VP1HttpGetFile_Private.h.

◆ m_lastcheckedsize

qint64 VP1HttpGetFile_DownloadThread::m_lastcheckedsize
private

Definition at line 69 of file VP1HttpGetFile_Private.h.

◆ m_localtargetfile

const QString VP1HttpGetFile_DownloadThread::m_localtargetfile
private

Definition at line 60 of file VP1HttpGetFile_Private.h.

◆ m_mutex

QMutex VP1HttpGetFile_DownloadThread::m_mutex
mutableprivate

Definition at line 64 of file VP1HttpGetFile_Private.h.

◆ m_urltofile

const QString VP1HttpGetFile_DownloadThread::m_urltofile
private

Definition at line 59 of file VP1HttpGetFile_Private.h.


The documentation for this class was generated from the following file:
VP1HttpGetFile_DownloadThread::m_errorString
QString m_errorString
Definition: VP1HttpGetFile_Private.h:63
VP1HttpGetFile_DownloadThread::STALLEDERROR
@ STALLEDERROR
Definition: VP1HttpGetFile_Private.h:66
VP1HttpGetFile_DownloadThread::DONTTOUCHLOCALFILE
@ DONTTOUCHLOCALFILE
Definition: VP1HttpGetFile_Private.h:70
VP1HttpGetFile_DownloadThread::SIZEDECREASEDERROR
@ SIZEDECREASEDERROR
Definition: VP1HttpGetFile_Private.h:66
VP1HttpGetFile_DownloadThread::HTTPERROR
@ HTTPERROR
Definition: VP1HttpGetFile_Private.h:66
dqt_zlumi_pandas.err
err
Definition: dqt_zlumi_pandas.py:182
VP1HttpGetFile_DownloadThread::m_data
const QString m_data
Definition: VP1HttpGetFile_Private.h:62
VP1HttpGetFile_DownloadThread::CLEANUPLOCALFILE
@ CLEANUPLOCALFILE
Definition: VP1HttpGetFile_Private.h:70
VP1HttpGetFile_DownloadThread::m_expectedMD5Sum
const QString m_expectedMD5Sum
Definition: VP1HttpGetFile_Private.h:61
VP1HttpGetFile_DownloadThread::NOERRORS
@ NOERRORS
Definition: VP1HttpGetFile_Private.h:66
VP1HttpGetFile_DownloadThread::m_urltofile
const QString m_urltofile
Definition: VP1HttpGetFile_Private.h:59
VP1HttpGetFile_DownloadThread::m_mutex
QMutex m_mutex
Definition: VP1HttpGetFile_Private.h:64
VP1HttpGetFile_DownloadThread::m_localtargetfile
const QString m_localtargetfile
Definition: VP1HttpGetFile_Private.h:60
VP1HttpGetFile_DownloadThread::NOTFINISHED
@ NOTFINISHED
Definition: VP1HttpGetFile_Private.h:66