CARDS 2.4.87
Package manager for the NuTyX GNU/Linux distribution
FileDownload Class Reference

File Download class. More...

#include <file_download.h>

Public Member Functions

 FileDownload (std::string url, std::string dirName, std::string fileName, bool progress)
 
 FileDownload (std::string url, std::string dirName, std::string fileName, std::string MD5Sum, bool progress)
 
 FileDownload (std::vector< InfoFile > destinationFiles, bool progress)
 
 ~FileDownload ()
 
 FileDownload (std::string url, std::string dirName, std::string fileName, bool progress)
 
 FileDownload (std::string url, std::string dirName, std::string fileName, std::string MD5Sum, bool progress)
 
 FileDownload (std::vector< InfoFile > destinationFiles, bool progress)
 
 ~FileDownload ()
 

Static Public Member Functions

static void SuscribeToEvents (FileDownloadEvent *callback)
 
static void UnSuscribeFromEvents (FileDownloadEvent *callback)
 
static void SuscribeToEvents (FileDownloadEvent *callback)
 
static void UnSuscribeFromEvents (FileDownloadEvent *callback)
 

Detailed Description

File Download class.

This class takes care of the download process of the binaries and other important files

Constructor & Destructor Documentation

◆ FileDownload() [1/6]

FileDownload::FileDownload ( std::string  url,
std::string  dirName,
std::string  fileName,
bool  progress 
)

Download a file without the need to check the signature of the file

Parameters
urlComplete downloading address including the file
dirNameDestination folder
fileNamefile where to store the downloaded datas
progressIf true, show what's going on

◆ FileDownload() [2/6]

FileDownload::FileDownload ( std::string  url,
std::string  dirName,
std::string  fileName,
std::string  MD5Sum,
bool  progress 
)

Download a file with the possibility of checking the signature of the file

Parameters
urlComplete downloading address including the file
dirNameDestination folder
fileNamefile where to store the downloaded datas
MD5SumSignature to use for checking the download file
progressIf true, show what's going on

◆ FileDownload() [3/6]

FileDownload::FileDownload ( std::vector< InfoFile destinationFiles,
bool  progress 
)

Download a list of InfoFile (a vector of InfoFile type) InfoFile consist of (amount other fields.. ) Name of the file and the signature of the file to download

Parameters
destinationFilesList of files to download
progressIf true, show what's going on

◆ ~FileDownload() [1/2]

FileDownload::~FileDownload ( )
inline

Destructor need to cleanup all the created pointers for the internal cook

◆ FileDownload() [4/6]

FileDownload::FileDownload ( std::string  url,
std::string  dirName,
std::string  fileName,
bool  progress 
)

Download a file without the need to check the signature of the file

Parameters
urlComplete downloading address including the file
dirNameDestination folder
fileNamefile where to store the downloaded datas
progressIf true, show what's going on

◆ FileDownload() [5/6]

FileDownload::FileDownload ( std::string  url,
std::string  dirName,
std::string  fileName,
std::string  MD5Sum,
bool  progress 
)

Download a file with the possibility of checking the signature of the file

Parameters
urlComplete downloading address including the file
dirNameDestination folder
fileNamefile where to store the downloaded datas
MD5SumSignature to use for checking the download file
progressIf true, show what's going on

◆ FileDownload() [6/6]

FileDownload::FileDownload ( std::vector< InfoFile destinationFiles,
bool  progress 
)

Download a list of InfoFile (a vector of InfoFile type) InfoFile consist of (amount other fields.. ) Name of the file and the signature of the file to download

Parameters
destinationFilesList of files to download
progressIf true, show what's going on

◆ ~FileDownload() [2/2]

FileDownload::~FileDownload ( )
inline

Destructor need to cleanup all the created pointers for the internal cook


The documentation for this class was generated from the following files: