]> git.stg.codes - stg.git/blob - projects/stargazer/user_property.cpp
Fix Boost package name.
[stg.git] / projects / stargazer / user_property.cpp
1 #include "stg/user_property.h"
2
3 STG::UserProperties::UserProperties(const Settings& s)
4     : cash            (stat.cash,             "cash",             false, true, s, properties),
5       up              (stat.monthUp,          "upload",           false, true, s, properties),
6       down            (stat.monthDown,        "download",         false, true, s, properties),
7       lastCashAdd     (stat.lastCashAdd,      "lastCashAdd",      false, true, s, properties),
8       passiveTime     (stat.passiveTime,      "passiveTime",      false, true, s, properties),
9       lastCashAddTime (stat.lastCashAddTime,  "lastCashAddTime",  false, true, s, properties),
10       freeMb          (stat.freeMb,           "freeMb",           false, true, s, properties),
11       lastActivityTime(stat.lastActivityTime, "lastActivityTime", false, true, s, properties),
12
13       password    (conf.password,     "password",     true,  false, s, properties),
14       passive     (conf.passive,      "passive",      false, false, s, properties),
15       disabled    (conf.disabled,     "disabled",     false, false, s, properties),
16       disabledDetailStat(conf.disabledDetailStat, "DisabledDetailStat", false, false, s, properties),
17       alwaysOnline(conf.alwaysOnline, "alwaysOnline", false, false, s, properties),
18       tariffName  (conf.tariffName,   "tariffName",   false, false, s, properties),
19       nextTariff  (conf.nextTariff,   "nextTariff",   false, false, s, properties),
20       address     (conf.address,      "address",      false, false, s, properties),
21       note        (conf.note,         "note",         false, false, s, properties),
22       group       (conf.group,        "group",        false, false, s, properties),
23       email       (conf.email,        "email",        false, false, s, properties),
24       phone       (conf.phone,        "phone",        false, false, s, properties),
25       realName    (conf.realName,     "realName",     false, false, s, properties),
26       credit      (conf.credit,       "credit",       false, false, s, properties),
27       creditExpire(conf.creditExpire, "creditExpire", false, false, s, properties),
28       ips         (conf.ips,          "ips",          false, false, s, properties),
29       userdata0   (conf.userdata[0],  "userdata0",    false, false, s, properties),
30       userdata1   (conf.userdata[1],  "userdata1",    false, false, s, properties),
31       userdata2   (conf.userdata[2],  "userdata2",    false, false, s, properties),
32       userdata3   (conf.userdata[3],  "userdata3",    false, false, s, properties),
33       userdata4   (conf.userdata[4],  "userdata4",    false, false, s, properties),
34       userdata5   (conf.userdata[5],  "userdata5",    false, false, s, properties),
35       userdata6   (conf.userdata[6],  "userdata6",    false, false, s, properties),
36       userdata7   (conf.userdata[7],  "userdata7",    false, false, s, properties),
37       userdata8   (conf.userdata[8],  "userdata8",    false, false, s, properties),
38       userdata9   (conf.userdata[9],  "userdata9",    false, false, s, properties)
39 {}