Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CDatabaseManager Class Reference

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ CDatabaseManager() [1/2]

CDatabaseManager::CDatabaseManager ( )

◆ CDatabaseManager() [2/2]

CDatabaseManager::CDatabaseManager ( const CDatabaseManager & )
delete

◆ ~CDatabaseManager()

CDatabaseManager::~CDatabaseManager ( )
default

Member Function Documentation

◆ CanOpen()

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.

Parameters
namethe name of the database to check.
Returns
true if the database can be opened, false otherwise.

◆ Initialize()

void CDatabaseManager::Initialize ( )

Initialize the database manager Checks that all databases are up to date, otherwise updates them.

◆ IsUpgrading()

bool CDatabaseManager::IsUpgrading ( ) const
inline

◆ LocalizationChanged()

void CDatabaseManager::LocalizationChanged ( )

◆ operator=()

CDatabaseManager const & CDatabaseManager::operator= ( CDatabaseManager const & )
delete

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