93 enum class OnInitReturnValue {
96 UseOnProcess = Success,
115 [[nodiscard]]
virtual OnInitReturnValue
OnInit() = 0;
138 [[nodiscard]]
virtual int OnProcess();
154 virtual void slotTimeOut();
185 void sigError(
const int nError,
const QString &szError = QString());
215 const QMessageBox::Icon& icon = QMessageBox::Information);
235 const QString& szMessage,
236 QMessageBox::StandardButtons buttons,
237 QMessageBox::StandardButton& nRet,
239 QString checkBoxContext = QString());
250 const QString& szLable,
251 const QString& szMessage,
void sigInformation(const QString &szInfo)
Triggering from a background thread displays information in the main thread without blocking the back...
void sigStop()
Notify the user to stop.
virtual OnInitReturnValue OnInit()=0
Initialization.
virtual int OnClean()=0
Clean.
void sigShowMessageBox(const QString &szTitle, const QString &szMessage, const QMessageBox::Icon &icon=QMessageBox::Information)
Trigger the display of a message dialog (QMessageBox) in the main thread from a background thread wit...
void sigError(const int nError, const QString &szError=QString())
Triggered when an error is generated.
void sigBlockShowMessageBox(const QString &szTitle, const QString &szMessage, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton &nRet, bool &checkBox, QString checkBoxContext=QString())
Block background threads and display message dialogs in foreground threads (QMessageBox)
void sigRunning()
Emitted when the plugin is successfully started.
void sigFinished()
Successful stopped signal.
void sigBlockShowWidget(const QString &className, int &nRet, void *pContext)
Blocks the background thread and displays the window in the foreground thread.
bool m_bStopSignal
When an error occurs, emit a COperate::sigStop() signal.
void sigBlockInputDialog(const QString &szTitle, const QString &szLable, const QString &szMessage, QString &szText)
Block background threads and display input dialogs in foreground threads (QInputDialog)
CBackend(COperate *pOperate=nullptr, bool bStopSignal=true)
CBackend.