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

Method DeleteOperate

Src/Manager.cpp:392–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390//! [CManager CreateOperate]
391
392int CManager::DeleteOperate(COperate *p)
393{
394 qDebug(log) << Q_FUNC_INFO;
395 if(!p) return 0;
396
397 CPlugin* pPlugin = nullptr;
398 //pPlugin->GetPlugin();
399 bool bRet = QMetaObject::invokeMethod(
400 p,
401 "GetPlugin",
402 Qt::DirectConnection,
403 Q_RETURN_ARG(CPlugin*, pPlugin));
404
405 if(bRet && pPlugin) {
406 int nRet = 0;
407 //pPlugin->DeleteOperate(p);
408 bRet = QMetaObject::invokeMethod(
409 pPlugin,
410 "DeleteOperate",
411 Qt::DirectConnection,
412 Q_RETURN_ARG(int, nRet),
413 Q_ARG(COperate*, p));
414 if(!bRet) {
415 nRet = -1;
416 qCritical(log) << "Call pPlugin->DeleteOperate(p) fail";
417 }
418 return nRet;
419 }
420
421 qCritical(log) << "Get CManager fail.";
422 return -1;
423}
424
425COperate* CManager::LoadOperate(const QString &szFile)
426{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected