26 #ifndef DIGIKAM_DB_ENGINE_PARAMETERS_H
27 #define DIGIKAM_DB_ENGINE_PARAMETERS_H
54 const QString& _databaseNameCore,
55 const QString& _connectOptions = QString(),
56 const QString& _hostName = QString(),
58 bool _internalServer =
false,
59 const QString& _userName = QString(),
60 const QString& _password = QString(),
61 const QString& _databaseNameThumbnails = QString(),
62 const QString& _databaseNameFace = QString(),
63 const QString& _databaseNameSimilarity = QString(),
64 const QString& _internalServerDBPath = QString(),
65 const QString& _internalServerMysqlAdminCmd = QString(),
66 const QString& _internalServerMysqlServCmd = QString(),
67 const QString& _internalServerMysqlInitCmd = QString());
75 void insertInUrl(QUrl& url)
const;
76 static void removeFromUrl(QUrl& url);
87 bool isSQLite()
const;
89 QString SQLiteDatabaseFile()
const;
96 static QString SQLiteDatabaseType();
97 static QString MySQLDatabaseType();
102 QByteArray hash()
const;
109 static DbEngineParameters parametersFromConfig(
const QString& configGroup = QString());
114 void readFromConfig(
const QString& configGroup = QString());
115 void writeToConfig(
const QString& configGroup = QString())
const;
121 QString getCoreDatabaseNameOrDir()
const;
122 QString getThumbsDatabaseNameOrDir()
const;
123 QString getFaceDatabaseNameOrDir()
const;
124 QString getSimilarityDatabaseNameOrDir()
const;
129 void setCoreDatabasePath(
const QString& folderOrFileOrName);
130 void setThumbsDatabasePath(
const QString& folderOrFileOrName);
131 void setFaceDatabasePath(
const QString& folderOrFileOrName);
132 void setSimilarityDatabasePath(
const QString& folderOrFileOrName);
134 static QString coreDatabaseFileSQLite(
const QString& folderOrFile);
135 static QString thumbnailDatabaseFileSQLite(
const QString& folderOrFile);
136 static QString faceDatabaseFileSQLite(
const QString& folderOrFile);
137 static QString similarityDatabaseFileSQLite(
const QString& folderOrFile);
139 static QString coreDatabaseDirectorySQLite(
const QString& path);
140 static QString thumbnailDatabaseDirectorySQLite(
const QString& path);
141 static QString faceDatabaseDirectorySQLite(
const QString& path);
142 static QString similarityDatabaseDirectorySQLite(
const QString& path);
147 void setInternalServerPath(
const QString& path);
148 QString internalServerPath()
const;
165 void legacyAndDefaultChecks(
const QString& suggestedPath = QString());
166 void removeLegacyConfig();
179 static QString internalServerPrivatePath();
184 static QString defaultMysqlServerCmd();
189 static QString defaultMysqlAdminCmd();
194 static QString defaultMysqlInitCmd();
Definition: dbengineparameters.h:49
QString databaseType
Definition: dbengineparameters.h:198
QString userName
Definition: dbengineparameters.h:204
QString databaseNameFace
Definition: dbengineparameters.h:208
QString password
Definition: dbengineparameters.h:205
QString databaseNameThumbnails
Definition: dbengineparameters.h:207
QString internalServerMysqlAdminCmd
Definition: dbengineparameters.h:216
QString internalServerDBPath
Definition: dbengineparameters.h:210
QString hostName
Definition: dbengineparameters.h:201
bool internalServer
Definition: dbengineparameters.h:203
QString internalServerMysqlServCmd
Definition: dbengineparameters.h:217
int port
Definition: dbengineparameters.h:202
QString databaseNameCore
Definition: dbengineparameters.h:199
QString internalServerMysqlInitCmd
Definition: dbengineparameters.h:218
QString connectOptions
Definition: dbengineparameters.h:200
QString databaseNameSimilarity
Definition: dbengineparameters.h:209
Definition: datefolderview.cpp:43
QDebug operator<<(QDebug dbg, const DbEngineParameters &p)
Definition: dbengineparameters.cpp:863
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49