3 $Date: 2010/09/10 05:02:08 $
10 #include "stg/resetable.h"
16 #define ADM_LOGIN_LEN (32)
17 #define ADM_PASSWD_LEN (32)
18 //-----------------------------------------------------------------------------
32 explicit PRIV(uint32_t p)
33 : userStat((p & 0x00000003) >> 0x00),
34 userConf((p & 0x0000000C) >> 0x02),
35 userCash((p & 0x00000030) >> 0x04),
36 userPasswd((p & 0x000000C0) >> 0x06),
37 userAddDel((p & 0x00000300) >> 0x08),
38 adminChg((p & 0x00000C00) >> 0x0A),
39 tariffChg((p & 0x00003000) >> 0x0C),
40 serviceChg((p & 0x0000C000) >> 0x0E),
41 corpChg((p & 0x00030000) >> 0x10)
44 uint32_t ToInt() const;
45 void FromInt(uint32_t p);
57 //-----------------------------------------------------------------------------
63 password("* NO PASSWORD *")
65 ADMIN_CONF(const PRIV & pr, const std::string & l, const std::string & p)
74 //-----------------------------------------------------------------------------
78 ADMIN_CONF_RES(const ADMIN_CONF_RES & rhs)
81 password(rhs.password)
83 ADMIN_CONF_RES & operator=(const ADMIN_CONF_RES & rhs)
87 password = rhs.password;
91 RESETABLE<std::string> login;
92 RESETABLE<std::string> password;
95 #include "admin_conf.inc.h"