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

Public Types

enum  DatabaseServerStateEnum { started , running , notRunning , stopped }
 

Signals

void done ()
 

Public Member Functions

 DatabaseServer (const DbEngineParameters &params, DatabaseServerStarter *const parent=DatabaseServerStarter::instance())
 
bool isRunning () const
 
DatabaseServerError startDatabaseProcess ()
 
void stopDatabaseProcess ()
 
 ~DatabaseServer () override
 

Public Attributes

DatabaseServerStateEnum databaseServerStateEnum
 

Protected Member Functions

void run () override
 

Member Enumeration Documentation

◆ DatabaseServerStateEnum

Enumerator
started 
running 
notRunning 
stopped 

Constructor & Destructor Documentation

◆ DatabaseServer()

Digikam::DatabaseServer::DatabaseServer ( const DbEngineParameters params,
DatabaseServerStarter *const  parent = DatabaseServerStarter::instance() 
)
explicit

◆ ~DatabaseServer()

Digikam::DatabaseServer::~DatabaseServer ( )
override

Member Function Documentation

◆ done

void Digikam::DatabaseServer::done ( )
signal

Referenced by run().

◆ isRunning()

bool Digikam::DatabaseServer::isRunning ( ) const

Returns true if the server process is running.

References databaseServerStateEnum, and running.

◆ run()

void Digikam::DatabaseServer::run ( )
overrideprotected

◆ startDatabaseProcess()

◆ stopDatabaseProcess()

void Digikam::DatabaseServer::stopDatabaseProcess ( )

Terminates the databaser server process.

References Digikam::adjustedEnvironmentForAppImage(), databaseServerStateEnum, and stopped.

Member Data Documentation

◆ databaseServerStateEnum

DatabaseServerStateEnum Digikam::DatabaseServer::databaseServerStateEnum

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