MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / ~CManager

Method ~CManager

Src/Manager.cpp:50–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50CManager::~CManager()
51{
52 qDebug(log) << "CManager::~CManager()";
53
54 qApp->removeEventFilter(this);
55
56 if(m_pDatabaseFile) {
57 delete m_pDatabaseFile;
58 m_pDatabaseFile = nullptr;
59 }
60
61 if(m_pHook) {
62 m_pHook->UnRegisterKeyboard();
63 m_pHook->deleteLater();
64 m_pHook = nullptr;
65 }
66
67 if(m_pParameterPlugin) {
68 m_pParameterPlugin->deleteLater();
69 m_pParameterPlugin = nullptr;
70 }
71
72 if(m_Translator)
73 RabbitCommon::CTools::Instance()->RemoveTranslator(m_Translator);
74
75 CChannel::RemoveTranslation();
76
77 //#if defined (_DEBUG) || !defined(BUILD_SHARED_LIBS)
78 // Q_CLEANUP_RESOURCE(translations_Plugin);
79 //#endif
80}
81
82int CManager::Initial(QString szFile)
83{

Callers

nothing calls this directly

Calls 1

UnRegisterKeyboardMethod · 0.45

Tested by

no test coverage detected