| 48 | } |
| 49 | |
| 50 | CManager::~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 | |
| 82 | int CManager::Initial(QString szFile) |
| 83 | { |
nothing calls this directly
no test coverage detected