ktoblzcheck 1.57.0
|
Database updater for the datafiles used by KtoBLZCheck. More...
#include <ktoblzcheck.h>
Public Member Functions | |
DataUpdater () | |
~DataUpdater () | |
bool | isUpdateAvailable () |
bool | downloadDatabase (const std::string &filename) |
bool | downloadAllDatabases () |
Database updater for the datafiles used by KtoBLZCheck.
Class that is used to update the databases used by the class AccountNumberCheck for validating account numbers and bank IDs.
The class uses libcurl to check and download files from the project's source repository.
DataUpdater | ( | ) |
Default Constructor.
The constructor initialises the urlPath value with the path of the project page directory. The files to be downloaded should be present in this path. The filenames are specified seperately through currentlyDownloading.
Also initialises the memory to store downloaded bytes.
~DataUpdater | ( | ) |
Destructor.
bool downloadAllDatabases | ( | ) |
Downloads all the required databases.
Returns true if all downloads are successful.
bool downloadDatabase | ( | const std::string & | filename | ) |
Download a database specified by the filename.
filename | The name of the database to be downloaded. The parameter is concatenated with the urlPath to form a URL to the file |
Returns true if download is successful.
bool isUpdateAvailable | ( | ) |
Returns true if any updates are available.