#ifndef __UserInfo_h_ #define __UserInfo_h_ #include "../shared/SocketInfo.h" typedef int UserId; enum UserInfoStatus { sNone, // This is a permanant condition. sLimited, // Send sample data. Slower, hide some fields, etc. sFull // Send all data. }; struct UserInfoExport { UserId userId; UserInfoStatus status; std::string username; std::string password; }; // This are thread safe. UserInfoExport userInfoGetInfo(SocketInfo *socket); void initUserInfoManager(); #endif