digiKam
|
Public Member Functions | |
SimilarityDbBackend * | backend () const |
SimilarityDb * | db () const |
QString | lastError () const |
void | setLastError (const QString &error) |
SimilarityDbAccess () | |
~SimilarityDbAccess () | |
Static Public Member Functions | |
static bool | checkReadyForUse (InitializationObserver *const observer) |
static void | cleanUpDatabase () |
static void | initDbEngineErrorHandler (DbEngineErrorHandler *const errorhandler) |
static bool | isInitialized () |
static DbEngineParameters | parameters () |
static void | setParameters (const DbEngineParameters ¶meters) |
|
explicit |
This class is written in analogy to CoreDbAccess (some features stripped off). For documentation, see coredbaccess.h
Digikam::SimilarityDbAccess::~SimilarityDbAccess | ( | ) |
SimilarityDbBackend * Digikam::SimilarityDbAccess::backend | ( | ) | const |
|
static |
This static method checks if the similarity db is ready for use.
observer | the observer. |
References Digikam::DbEngineAccess::checkReadyForUse(), setLastError(), and Digikam::SimilarityDbSchemaUpdater::setObserver().
Referenced by Digikam::AlbumManager::setDatabase().
|
static |
This static method removes the connection to the similarity database.
SimilarityDb * Digikam::SimilarityDbAccess::db | ( | ) | const |
Referenced by Digikam::HaarIface::bestMatchesForImageWithThreshold(), Digikam::ItemScanner::commitCopyImageAttributes(), Digikam::ItemLister::listSearch(), Digikam::ItemExtendedProperties::removeSimilarityTo(), Digikam::DatabaseTask::run(), Digikam::ItemExtendedProperties::setSimilarityTo(), and Digikam::ItemExtendedProperties::similarityTo().
|
static |
This static method initialises the error handler for the similarity db.
errorhandler | The error handler. |
Referenced by Digikam::AlbumManager::setDatabase().
|
static |
This static method returns if the similarity db is initialised.
Referenced by Digikam::DatabaseTask::run().
QString Digikam::SimilarityDbAccess::lastError | ( | ) | const |
|
static |
This static method returns the current db parameters.
Referenced by Digikam::AlbumManager::setDatabase(), and setParameters().
void Digikam::SimilarityDbAccess::setLastError | ( | const QString & | error | ) |
Set the "last error" message. This method is not for public use.
Referenced by checkReadyForUse().
|
static |
This static method sets the database parameters that are needed to initialise the db connection.
parameters | The db parameters. |
References parameters().
Referenced by Digikam::AlbumManager::setDatabase().