#ifndef _STARDICT_DICT_MANAGE_H_ #define _STARDICT_DICT_MANAGE_H_ #include #include enum DictManageItemType { LOCAL_DICT, VIRTUAL_DICT, NET_DICT, }; struct DictManageItem { DictManageItemType type; bool enable; std::string file_or_id; }; struct DictManageGroup { std::string name; std::list querydict; std::list scandict; }; struct DictManageInfo { std::list groups; std::string active_group; }; extern void DictConfigXmlToInfo(const char *configxml, DictManageInfo &info); extern void LoadDictInfo(); extern void GetDictList(std::list &dict_list); extern void UpdateDictMask(); #endif