digiKam
Digikam::DbEngineErrorHandler Class Referenceabstract
+ Inheritance diagram for Digikam::DbEngineErrorHandler:

Public Slots

virtual void connectionError (DbEngineErrorAnswer *answer, const QSqlError &error, const QString &query)=0
 
virtual void consultUserForError (DbEngineErrorAnswer *answer, const QSqlError &error, const QString &query)=0
 

Public Member Functions

 DbEngineErrorHandler ()
 
 ~DbEngineErrorHandler () override
 

Constructor & Destructor Documentation

◆ DbEngineErrorHandler()

Digikam::DbEngineErrorHandler::DbEngineErrorHandler ( )
explicit

◆ ~DbEngineErrorHandler()

Digikam::DbEngineErrorHandler::~DbEngineErrorHandler ( )
override

Member Function Documentation

◆ connectionError

virtual void Digikam::DbEngineErrorHandler::connectionError ( DbEngineErrorAnswer answer,
const QSqlError &  error,
const QString &  query 
)
pure virtualslot

In the situation of a connection error, all threads will be waiting with their queries and this method is called. This method can display an error dialog and try to repair the connection. It must then call either connectionErrorContinueQueries() or connectionErrorAbortQueries(). The method is guaranteed to be invoked in the UI thread.

◆ consultUserForError

virtual void Digikam::DbEngineErrorHandler::consultUserForError ( DbEngineErrorAnswer answer,
const QSqlError &  error,
const QString &  query 
)
pure virtualslot

In the situation of an error requiring user intervention or information, all threads will be waiting with their queries and this method is called. This method can display an error dialog. It must then call either connectionErrorContinueQueries() or connectionErrorAbortQueries(). The method is guaranteed to be invoked in the UI thread.


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