| | |
| | | CMBWatchMgr::CMBWatchMgr() |
| | | { |
| | | m_pConst = new CMBWatchConst(); |
| | | |
| | | m_pTaskMgr = new CMBTaskMgr(); |
| | | m_pMdWare = new CMBMdware(); |
| | | m_pTaskMgr->setMdWare(m_pMdWare); |
| | | |
| | | m_pUserMgr = new CMBWatchUserMgr(); |
| | | m_pUserDb = new CMBWatchUserDb(); |
| | |
| | | delete m_pTaskMgr; |
| | | m_pTaskMgr = NULL; |
| | | } |
| | | |
| | | if( m_pMdWare ){ |
| | | delete m_pMdWare; |
| | | m_pMdWare = NULL; |
| | | } |
| | | } |
| | | |
| | | CMBWatchConst *CMBWatchMgr::getConst() |
| | |
| | | return m_pTaskMgr; |
| | | } |
| | | |
| | | CMBMdware *CMBWatchMgr::getMdWare() |
| | | { |
| | | return m_pMdWare; |
| | | } |
| | | |
| | | bool CMBWatchMgr::init(QString &errInfo) |
| | | { |
| | | QString watchUserDB = m_pConst->getWatchUserDB(); |