#ifndef CACHEMANAGER_H #define CACHEMANAGER_H #include <QMutex> #include <QList> #include "dao/SysDeptDao.h" #include "dao/SysDictDao.h" #include "dao/SysPersonDao.h" #include "dao/FaceDataDao.h" #include "dao/FaceDataImgDao.h" #include "dao/IrisDataDao.h" #include "dao/IrisDataImgDao.h" class CacheManager { public: ~CacheManager() {}; CacheManager(const CacheManager&)=delete; CacheManager& operator=(const CacheManager&)=delete; static CacheManager& getInstance() { static CacheManager instance; return instance; } QList<QVariantMap> * getDeptCachePtr(); QVariantMap getGenderName(); void updateDeptCache(); private: CacheManager(); QList<QVariantMap> * deptCache; QVariantMap genderName; }; #endif // CACHEMANAGER_H