hydrogen 1.1.1
DownloadWidget Class Reference

#include <DownloadWidget.h>

Inheritance diagram for DownloadWidget:
Download Object

Public Member Functions

 DownloadWidget (QWidget *parent, const QString &title, const QString &download_url, const QString &local_file="")
 
 ~DownloadWidget ()
 
QUrl get_redirect_url ()
 
- Public Member Functions inherited from Download
 Download (QWidget *parent, const QString &download_url, const QString &local_file)
 
 ~Download ()
 
int get_percent_done ()
 
const QString & get_xml_content ()
 
const QString & get_error ()
 
- Public Member Functions inherited from Object
 ~Object ()
 destructor More...
 
 Object (const Object &obj)
 copy constructor More...
 
 Object (const char *class_name)
 constructor More...
 
const char * class_name () const
 return the class name More...
 
virtual QString toQString (const QString &sPrefix, bool bShort=true) const
 Formatted string version for debugging purposes. More...
 
void Print (bool bShort=true) const
 Prints content of toQString() via DEBUGLOG. More...
 

Private Slots

void updateStats ()
 

Private Attributes

QTimer * __update_timer
 
QTimer * __close_timer
 
QLabel * __url_label
 
QLabel * __eta_label
 
QProgressBar * __progress_bar
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static void set_count (bool flag)
 enable/disable class instances counting More...
 
static bool count_active ()
 return true if class instances counting is enabled More...
 
static unsigned objects_count ()
 return the number of objects More...
 
static void write_objects_map_to (std::ostream &out)
 output the full objects map to a given ostream More...
 
static void write_objects_map_to_cerr ()
 output objects map to stderr More...
 
static int bootstrap (Logger *logger, bool count=false)
 must be called before any Object instantiation ! More...
 
static Loggerlogger ()
 return the logger instance More...
 
- Static Public Attributes inherited from Object
static QString sPrintIndention = " "
 String used to format the debugging string output of some core classes. More...
 
- Protected Attributes inherited from Download
QNetworkAccessManager * __http_client
 
QNetworkReply * __reply
 
QElapsedTimer __time
 
float __download_percent
 
int __eta
 
qint64 __bytes_current
 
qint64 __bytes_total
 
QUrl __redirect_url
 
QUrl __remote_url
 
QString __local_file
 
QString __feed_xml_string
 
QString __error
 
- Static Protected Attributes inherited from Object
static Logger__logger = nullptr
 logger instance pointer More...
 

Constructor & Destructor Documentation

◆ DownloadWidget()

DownloadWidget ( QWidget *  parent,
const QString &  title,
const QString &  download_url,
const QString &  local_file = "" 
)

◆ ~DownloadWidget()

Member Function Documentation

◆ get_redirect_url()

QUrl get_redirect_url ( )
inline

◆ updateStats

void updateStats ( )
privateslot

Field Documentation

◆ __close_timer

QTimer* __close_timer
private

◆ __eta_label

QLabel* __eta_label
private

◆ __progress_bar

QProgressBar* __progress_bar
private

◆ __update_timer

QTimer* __update_timer
private

◆ __url_label

QLabel* __url_label
private