BibleTime
Functions
BtInstallBackend Namespace Reference

Functions

bool addSource (sword::InstallSource &source)
 
std::unique_ptr< CSwordBackendbackend (sword::InstallSource const &is)
 
QString configFilename ()
 
QString configPath ()
 
bool deleteSource (const QString &name)
 
bool isRemote (const sword::InstallSource &source)
 
sword::InstallSource source (const QString &name)
 
QStringList sourceNameList ()
 

Function Documentation

◆ addSource()

bool BtInstallBackend::addSource ( sword::InstallSource &  source)

Adds the source described by Source to the backend.

Adds the source to the backend.

Definition at line 41 of file btinstallbackend.cpp.

References configFilename(), isRemote(), and source().

Referenced by BtBookshelfSourcesPage::slotButtonClicked().

◆ backend()

std::unique_ptr< CSwordBackend > BtInstallBackend::backend ( sword::InstallSource const &  is)

◆ configFilename()

QString BtInstallBackend::configFilename ( )

Returns the name of the sword installer configuration file.

Definition at line 155 of file btinstallbackend.cpp.

References configPath().

Referenced by addSource(), deleteSource(), source(), and sourceNameList().

◆ configPath()

QString BtInstallBackend::configPath ( )

Returns the path of the sword installer configuration file.

Definition at line 150 of file btinstallbackend.cpp.

References util::directory::getUserHomeSwordDir().

Referenced by configFilename(), and CSwordBackend::Private::reloadConfig().

◆ deleteSource()

bool BtInstallBackend::deleteSource ( const QString &  name)

Deletes the source.

Todo:
dummy

Definition at line 104 of file btinstallbackend.cpp.

References configFilename(), and source().

Referenced by BtBookshelfSourcesPage::slotButtonClicked().

◆ isRemote()

bool BtInstallBackend::isRemote ( const sword::InstallSource &  source)

Tells if the source is remote or local.

Definition at line 143 of file btinstallbackend.cpp.

References source().

Referenced by addSource(), backend(), and BtInstallThread::installModule().

◆ source()

sword::InstallSource BtInstallBackend::source ( const QString &  name)

◆ sourceNameList()

QStringList BtInstallBackend::sourceNameList ( )