digiKam
|
Public Types | |
enum | DatabaseServerStateEnum { started , running , notRunning , stopped } |
Signals | |
void | done () |
Public Member Functions | |
DatabaseServer (const DbEngineParameters ¶ms, DatabaseServerStarter *const parent=DatabaseServerStarter::instance()) | |
bool | isRunning () const |
DatabaseServerError | startDatabaseProcess () |
void | stopDatabaseProcess () |
~DatabaseServer () override | |
Public Attributes | |
DatabaseServerStateEnum | databaseServerStateEnum |
Protected Member Functions | |
void | run () override |
|
explicit |
|
override |
|
signal |
Referenced by run().
bool Digikam::DatabaseServer::isRunning | ( | ) | const |
Returns true if the server process is running.
References databaseServerStateEnum, and running.
|
overrideprotected |
References databaseServerStateEnum, done(), and stopped.
DatabaseServerError Digikam::DatabaseServer::startDatabaseProcess | ( | ) |
Starts the database management server.
References databaseServerStateEnum, Digikam::DatabaseServerError::getErrorType(), notRunning, Digikam::DatabaseServerError::NotSupported, running, and Digikam::DatabaseServerError::StartError.
void Digikam::DatabaseServer::stopDatabaseProcess | ( | ) |
Terminates the databaser server process.
References Digikam::adjustedEnvironmentForAppImage(), databaseServerStateEnum, and stopped.
DatabaseServerStateEnum Digikam::DatabaseServer::databaseServerStateEnum |
Referenced by DatabaseServer(), isRunning(), run(), startDatabaseProcess(), and stopDatabaseProcess().