template <class T> void ExtractCommonNonCDMACellInfoItems(nsCOMPtr<T>& cell, std::map<nsLiteralCString, int32_t>& info) { int32_t mcc, mnc, cid, sig; cell->GetMcc(&mcc); cell->GetMnc(&mnc); cell->GetCid(&cid); cell->GetSignalStrength(&sig); info[keyMcc] = mcc; info[keyMnc] = mnc; info[keyCid] = cid; info[keyStrengthAsu] = sig; }
template <class T> void ExtractCommonNonCDMACellInfoItems(nsCOMPtr<T>& cell, nsDataHashtable<nsCStringHashKey, int32_t>& info) { int32_t mcc, mnc, cid, sig; cell->GetMcc(&mcc); cell->GetMnc(&mnc); cell->GetCid(&cid); cell->GetSignalStrength(&sig); info.Put(TEXT_MCC, mcc); info.Put(TEXT_MNC, mnc); info.Put(TEXT_CID, cid); info.Put(TEXT_STRENGTH_ASU, sig); }