Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Database manager class for handling database updating. More...
#include <DatabaseManager.h>
Public Member Functions | |
CDatabaseManager () | |
CDatabaseManager (const CDatabaseManager &)=delete | |
CDatabaseManager const & | operator= (CDatabaseManager const &)=delete |
~CDatabaseManager () | |
void | Initialize () |
Initialize the database manager Checks that all databases are up to date, otherwise updates them. | |
bool | CanOpen (const std::string &name) |
Check whether we can open a database. | |
bool | IsUpgrading () const |
void | LocalizationChanged () |
Database manager class for handling database updating.
Ensures that databases used in XBMC are up to date, and if a database can't be opened, ensures we don't continuously try it.
CDatabaseManager::CDatabaseManager | ( | ) |
|
delete |
|
default |
bool CDatabaseManager::CanOpen | ( | const std::string & | name | ) |
Check whether we can open a database.
Checks whether the database has been updated correctly, if so returns true. If the database update failed, returns false immediately. If the database update is in progress, returns false.
name | the name of the database to check. |
void CDatabaseManager::Initialize | ( | ) |
Initialize the database manager Checks that all databases are up to date, otherwise updates them.
|
inline |
void CDatabaseManager::LocalizationChanged | ( | ) |
|
delete |