Lines Matching defs:itemRoot
146 cJSON *itemRoot = nullptr;
148 itemRoot = cJSON_GetArrayItem(itemRoots, i);
149 if (itemRoot == nullptr || !IsNeedInsertToTable(itemRoot)) {
153 bean.profileName = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_OPERATOR_NAME));
154 bean.authUser = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_AUTH_USER));
155 bean.authPwd = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_AUTH_PWD));
156 std::string authTypeStr = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_AUTH_TYPE));
158 bean.mcc = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_MCC));
159 bean.mnc = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_MNC));
160 bean.apn = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_APN));
161 bean.apnTypes = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_APN_TYPES));
162 bean.mmsIpAddress = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_MMS_IP_ADDRESS));
163 bean.proxyIpAddress = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_IP_ADDRESS));
164 bean.homeUrl = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_HOME_URL));
165 bean.mvnoType = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_MVNO_TYPE));
166 bean.mvnoMatchData = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_MVNO_MATCH_DATA));
167 bean.server = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_SERVER));
168 std::string editedStr = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_EDITED_STATUS));
170 std::string bearingStr = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_BEARER));
172 std::string isRoamingApnStr = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_IS_ROAMING_APN));
174 std::string pdpProtocolStr = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_APN_PROTOCOL));
176 std::string roamPdpProtocolStr = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_ROAMING_PROTOCOL));
180 itemRoot = nullptr;
267 cJSON *itemRoot = nullptr;
270 itemRoot = cJSON_GetArrayItem(itemRoots, i);
271 if (itemRoot == nullptr) {
275 ruleRoot = cJSON_GetObjectItem(itemRoot, ITEM_RULE);
284 bean.operatorName = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_OPERATOR_NAME_OPKEY));
288 bean.operatorKey = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_OPERATOR_KEY));
289 bean.operatorKeyExt = ParseString(cJSON_GetObjectItem(itemRoot, ITEM_OPERATOR_KEY_EXT));
293 itemRoot = nullptr;
382 cJSON *itemRoot = nullptr;
384 itemRoot = cJSON_GetArrayItem(itemRoots, i);
385 if (itemRoot == nullptr) {
389 bean.name = ParseAsString(cJSON_GetObjectItem(itemRoot, ITEM_NAME));
390 bean.mcc = ParseAsString(cJSON_GetObjectItem(itemRoot, ITEM_MCC));
391 bean.mnc = ParseAsString(cJSON_GetObjectItem(itemRoot, ITEM_MNC));
392 bean.numMatch = ParseInt(cJSON_GetObjectItem(itemRoot, ITEM_NUM_MATCH));
393 bean.numMatchShort = ParseInt(cJSON_GetObjectItem(itemRoot, ITEM_NUM_MATCH_SHORT));
396 itemRoot = nullptr;
476 cJSON *itemRoot = nullptr;
478 itemRoot = cJSON_GetArrayItem(itemRoots, i);
479 if (itemRoot == nullptr) {
483 bean.name = ParseAsString(cJSON_GetObjectItem(itemRoot, ITEM_NAME));
484 bean.mcc = ParseAsString(cJSON_GetObjectItem(itemRoot, ITEM_MCC));
485 bean.mnc = ParseAsString(cJSON_GetObjectItem(itemRoot, ITEM_MNC));
486 bean.numeric = ParseAsString(cJSON_GetObjectItem(itemRoot, ITEM_NUMERIC));
487 bean.ecc_withcard = ParseAsString(cJSON_GetObjectItem(itemRoot, ITEM_ECC_WITH_CARD));
488 bean.ecc_nocard = ParseAsString(cJSON_GetObjectItem(itemRoot, ITEM_ECC_NO_CARD));
489 bean.ecc_fake = ParseAsString(cJSON_GetObjectItem(itemRoot, ITEM_ECC_FAKE));
492 itemRoot = nullptr;