#ifndef MBWATCHUSERMGR_H #define MBWATCHUSERMGR_H #include "mbwatchuser.h" #include class CMBWatchUserMgr { public: CMBWatchUserMgr(); ~CMBWatchUserMgr(); private: CMBWatchUserVector m_vector; private: QMutex m_mutex; public: bool add(CMBWatchUser *pUser ); // 添加数据 CMBWatchUser *get(QString login,QString svrID); bool removeAll(); // 移除 bool is(QString login,QString svrID); void getVector(CMBWatchUserVector &vector); }; #endif // MBWATCHUSERMGR_H