ktoblzcheck 1.57.0
Public Member Functions | List of all members
DataUpdater Class Reference

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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ 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.

Member Function Documentation

◆ downloadAllDatabases()

bool downloadAllDatabases ( )

Downloads all the required databases.

Returns true if all downloads are successful.

◆ downloadDatabase()

bool downloadDatabase ( const std::string & filename)

Download a database specified by the filename.

Parameters
filenameThe 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.

◆ isUpdateAvailable()

bool isUpdateAvailable ( )

Returns true if any updates are available.


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