ASAPCabinetFE
 
Loading...
Searching...
No Matches
VpinMdbClient Class Reference
+ Collaboration diagram for VpinMdbClient:

Public Member Functions

 VpinMdbClient (const Settings &settings, LoadingProgress *progress=nullptr, const nlohmann::json *mediaDb=nullptr)
 Constructs a VpinMdbClient instance.
 
bool downloadMedia (std::vector< TableData > &tables)
 Downloads media for a list of tables and updates their media paths.
 

Constructor & Destructor Documentation

◆ VpinMdbClient()

VpinMdbClient::VpinMdbClient ( const Settings settings,
LoadingProgress progress = nullptr,
const nlohmann::json *  mediaDb = nullptr 
)

Constructs a VpinMdbClient instance.

Parameters
settingsApplication settings controlling download behavior.
progressOptional pointer to LoadingProgress for updates.
mediaDbOptional pre-loaded vpinmdb.json (if null, loads from data/vpinmdb.json).

Member Function Documentation

◆ downloadMedia()

bool VpinMdbClient::downloadMedia ( std::vector< TableData > &  tables)

Downloads media for a list of tables and updates their media paths.

Parameters
tablesVector of TableData to process (updated with new media paths).
Returns
True if any media was successfully downloaded.
+ Here is the caller graph for this function:

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