MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / DeleteOperate

Method DeleteOperate

Src/Plugin.cpp:124–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122//! [CPlugin CreateOperate]
123
124int CPlugin::DeleteOperate(COperate *p)
125{
126 qDebug(log) << Q_FUNC_INFO;
127 if(!p) return 0;
128 int nRet = 0;
129 bool bRet = false;
130 //nRet = p->Clean();
131 bRet = QMetaObject::invokeMethod(
132 p,
133 "Clean",
134 Qt::DirectConnection,
135 Q_RETURN_ARG(int, nRet));
136 if(!bRet) {
137 qCritical(log) << "Call p->Clean() fail.";
138 return -1;
139 }
140 if(nRet)
141 qWarning(log) << "Operate clean fail" << nRet;
142 p->deleteLater();
143 return 0;
144}
145
146QWidget* CPlugin::GetSettingsWidget(QWidget* parent)
147{

Callers 4

StartMethod · 0.45
foreachFunction · 0.45
slotNewMethod · 0.45
foreachFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected