digiKam
Digikam::DatabaseSettingsWidget Class Reference
+ Inheritance diagram for Digikam::DatabaseSettingsWidget:

Classes

class  Private
 

Public Types

enum  DatabaseType { SQlite = 0 , MysqlInternal = 1 , MysqlServer = 2 }
 

Public Member Functions

bool checkDatabaseSettings ()
 
QString databaseBackend () const
 
QString databasePath () const
 
 DatabaseSettingsWidget (QWidget *const parent=nullptr)
 
int databaseType () const
 
DbEngineParameters getDbEngineParameters () const
 
DbEngineParameters orgDatabasePrm () const
 
void setDatabasePath (const QString &path)
 
void setDatabaseType (int type)
 
void setParametersFromSettings (const ApplicationSettings *const settings, const bool &migration=false)
 
 ~DatabaseSettingsWidget () override
 

Member Enumeration Documentation

◆ DatabaseType

Enumerator
SQlite 
MysqlInternal 
MysqlServer 

Constructor & Destructor Documentation

◆ DatabaseSettingsWidget()

Digikam::DatabaseSettingsWidget::DatabaseSettingsWidget ( QWidget *const  parent = nullptr)
explicit

◆ ~DatabaseSettingsWidget()

Digikam::DatabaseSettingsWidget::~DatabaseSettingsWidget ( )
override

Member Function Documentation

◆ checkDatabaseSettings()

bool Digikam::DatabaseSettingsWidget::checkDatabaseSettings ( )

For Sqlite or MysqlInternal, check properties of local path to store database files. For MysqlServer, check the network connection and database names.

References Digikam::DBinarySearch::allBinariesFound(), databaseType(), Digikam::DatabaseSettingsWidget::Private::dbBinariesWidget, MysqlInternal, and SQlite.

◆ databaseBackend()

QString Digikam::DatabaseSettingsWidget::databaseBackend ( ) const

◆ databasePath()

QString Digikam::DatabaseSettingsWidget::databasePath ( ) const

◆ databaseType()

int Digikam::DatabaseSettingsWidget::databaseType ( ) const

◆ getDbEngineParameters()

DbEngineParameters Digikam::DatabaseSettingsWidget::getDbEngineParameters ( ) const

References Digikam::DbEngineParameters::connectOptions, Digikam::DatabaseSettingsWidget::Private::connectOpts, databaseBackend(), Digikam::DbEngineParameters::databaseNameCore, Digikam::DbEngineParameters::databaseNameFace, Digikam::DbEngineParameters::databaseNameSimilarity, Digikam::DbEngineParameters::databaseNameThumbnails, databasePath(), Digikam::DbEngineParameters::databaseType, databaseType(), Digikam::DatabaseSettingsWidget::Private::dbNameCore, Digikam::DatabaseSettingsWidget::Private::dbNameFace, Digikam::DatabaseSettingsWidget::Private::dbNameSimilarity, Digikam::DatabaseSettingsWidget::Private::dbNameThumbs, Digikam::DbEngineParameters::defaultParameters(), Digikam::DFileSelector::fileDlgPath(), Digikam::DbEngineParameters::hostName, Digikam::DatabaseSettingsWidget::Private::hostName, Digikam::DatabaseSettingsWidget::Private::hostPort, Digikam::DbEngineParameters::internalServer, Digikam::DbEngineParameters::internalServerMysqlAdminCmd, Digikam::DbEngineParameters::internalServerMysqlInitCmd, Digikam::DbEngineParameters::internalServerMysqlServCmd, Digikam::DatabaseSettingsWidget::Private::mysqlAdminBin, Digikam::DatabaseSettingsWidget::Private::mysqlInitBin, MysqlInternal, Digikam::DatabaseSettingsWidget::Private::mysqlServBin, Digikam::DbEngineParameters::parametersForSQLiteDefaultFile(), Digikam::DbEngineParameters::password, Digikam::DatabaseSettingsWidget::Private::password, Digikam::DBinaryIface::path(), Digikam::DbEngineParameters::port, Digikam::DbEngineParameters::setInternalServerPath(), SQlite, Digikam::DbEngineParameters::userName, and Digikam::DatabaseSettingsWidget::Private::userName.

◆ orgDatabasePrm()

DbEngineParameters Digikam::DatabaseSettingsWidget::orgDatabasePrm ( ) const

◆ setDatabasePath()

void Digikam::DatabaseSettingsWidget::setDatabasePath ( const QString &  path)

◆ setDatabaseType()

void Digikam::DatabaseSettingsWidget::setDatabaseType ( int  type)

◆ setParametersFromSettings()

void Digikam::DatabaseSettingsWidget::setParametersFromSettings ( const ApplicationSettings *const  settings,
const bool &  migration = false 
)

References Digikam::DBinarySearch::allBinariesFound(), Digikam::DbEngineParameters::connectOptions, Digikam::DatabaseSettingsWidget::Private::connectOpts, Digikam::DbEngineParameters::databaseNameCore, Digikam::DbEngineParameters::databaseNameFace, Digikam::DbEngineParameters::databaseNameSimilarity, Digikam::DbEngineParameters::databaseNameThumbnails, Digikam::DbEngineParameters::databaseType, Digikam::DatabaseSettingsWidget::Private::dbBinariesWidget, Digikam::DatabaseSettingsWidget::Private::dbNameCore, Digikam::DatabaseSettingsWidget::Private::dbNameFace, Digikam::DatabaseSettingsWidget::Private::dbNameSimilarity, Digikam::DatabaseSettingsWidget::Private::dbNameThumbs, Digikam::DatabaseSettingsWidget::Private::dbPathEdit, Digikam::DatabaseSettingsWidget::Private::dbPathLabel, Digikam::DatabaseSettingsWidget::Private::dbType, Digikam::DatabaseSettingsWidget::Private::dbTypeMap, Digikam::DbEngineParameters::getCoreDatabaseNameOrDir(), Digikam::ApplicationSettings::getDatabaseDirSetAtCmd(), Digikam::ApplicationSettings::getDbEngineParameters(), Digikam::DbEngineParameters::hostName, Digikam::DatabaseSettingsWidget::Private::hostName, Digikam::DatabaseSettingsWidget::Private::hostPort, Digikam::DbEngineParameters::internalServer, Digikam::DbEngineParameters::internalServerMysqlAdminCmd, Digikam::DbEngineParameters::internalServerMysqlInitCmd, Digikam::DbEngineParameters::internalServerMysqlServCmd, Digikam::DbEngineParameters::internalServerPath(), Digikam::DatabaseSettingsWidget::Private::mysqlAdminBin, Digikam::DbEngineParameters::MySQLDatabaseType(), Digikam::DatabaseSettingsWidget::Private::mysqlInitBin, MysqlInternal, Digikam::DatabaseSettingsWidget::Private::mysqlServBin, MysqlServer, Digikam::DatabaseSettingsWidget::Private::orgPrms, Digikam::DbEngineParameters::password, Digikam::DatabaseSettingsWidget::Private::password, Digikam::DbEngineParameters::port, Digikam::DFileSelector::setFileDlgPath(), Digikam::DBinaryIface::setup(), SQlite, Digikam::DbEngineParameters::SQLiteDatabaseType(), Digikam::DbEngineParameters::userName, and Digikam::DatabaseSettingsWidget::Private::userName.


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