3 $Date: 2010/09/10 05:02:08 $
11 #include "resetable.h"
15 #define ADM_LOGIN_LEN (32)
16 #define ADM_PASSWD_LEN (32)
17 //-----------------------------------------------------------------------------
32 : userStat((p & 0x00000003) >> 0x00),
33 userConf((p & 0x0000000C) >> 0x02),
34 userCash((p & 0x00000030) >> 0x04),
35 userPasswd((p & 0x000000C0) >> 0x06),
36 userAddDel((p & 0x00000300) >> 0x08),
37 adminChg((p & 0x00000C00) >> 0x0A),
38 tariffChg((p & 0x00003000) >> 0x0C),
39 serviceChg((p & 0x0000C000) >> 0x0E),
40 corpChg((p & 0x00030000) >> 0x10)
43 uint32_t ToInt() const;
44 void FromInt(uint32_t p);
56 //-----------------------------------------------------------------------------
62 password("* NO PASSWORD *")
64 ADMIN_CONF(const ADMIN_CONF & rvalue)
67 password(rvalue.password)
69 ADMIN_CONF(const PRIV & pr, const std::string & l, const std::string & p)
78 //-----------------------------------------------------------------------------
81 ADMIN_CONF_RES(const ADMIN_CONF & conf)
84 password(conf.password)
86 ADMIN_CONF_RES(const ADMIN_CONF_RES & rhs)
89 password(rhs.password)
91 ADMIN_CONF_RES & operator=(const ADMIN_CONF_RES & rhs)
95 password = rhs.password;
99 RESETABLE<std::string> login;
100 RESETABLE<std::string> password;
103 #include "admin_conf.inc.h"