107 enum class OnInitReturnValue {
110 UseOnProcess = Success,
130 [[nodiscard]]
virtual OnInitReturnValue
OnInit() = 0;
200 void sigError(
const int nError,
const QString &szError = QString());
230 const QMessageBox::Icon& icon = QMessageBox::Information);
250 const QString& szMessage,
251 QMessageBox::StandardButtons buttons,
252 QMessageBox::StandardButton& nRet,
254 QString checkBoxContext = QString());
265 const QString& szLable,
266 const QString& szMessage,
void sigInformation(const QString &szInfo)
Triggering from a background thread displays information in the main thread without blocking the back...
virtual int WakeUp()=0
Wake up backend thread(background thread).
virtual int OnProcess()
Specific operation processing of plug-in.
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...
virtual int Start()
Start.
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.
virtual void slotTimeOut()
a non-Qt event loop (that is, normal loop processing), It call OnProcess(), and start timer.
void sigSecurityLevel(CSecurityLevel::Levels level)
Triggered when the security level changes.
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.