digiKam
|
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 | |
|
explicit |
|
override |
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.
QString Digikam::DatabaseSettingsWidget::databaseBackend | ( | ) | const |
References databaseType(), Digikam::DbEngineParameters::MySQLDatabaseType(), MysqlInternal, MysqlServer, and Digikam::DbEngineParameters::SQLiteDatabaseType().
Referenced by getDbEngineParameters().
QString Digikam::DatabaseSettingsWidget::databasePath | ( | ) | const |
References Digikam::DatabaseSettingsWidget::Private::dbPathEdit, and Digikam::DFileSelector::fileDlgPath().
Referenced by getDbEngineParameters().
int Digikam::DatabaseSettingsWidget::databaseType | ( | ) | const |
References Digikam::DatabaseSettingsWidget::Private::dbType.
Referenced by checkDatabaseSettings(), databaseBackend(), and 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.
DbEngineParameters Digikam::DatabaseSettingsWidget::orgDatabasePrm | ( | ) | const |
void Digikam::DatabaseSettingsWidget::setDatabasePath | ( | const QString & | path | ) |
void Digikam::DatabaseSettingsWidget::setDatabaseType | ( | int | type | ) |
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.