shill: Update the network technology and roaming state in CellularService.
CDMA only. Also, ignore connection requests when roaming and roaming is
disallowed. Some cleanup and TODOs.
BUG=chromium-os:18728
TEST=unit tests
Change-Id: I491b43f5556ecc2e7fcf3589ecd310be1e65bac4
Reviewed-on: http://gerrit.chromium.org/gerrit/6493
Tested-by: Darin Petkov <petkov@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
diff --git a/cellular_service.h b/cellular_service.h
index 41c2b2f..7224774 100644
--- a/cellular_service.h
+++ b/cellular_service.h
@@ -53,6 +53,12 @@
const Cellular::Operator &serving_operator() const;
void set_serving_operator(const Cellular::Operator &oper);
+ const std::string &network_tech() const { return network_tech_; }
+ void set_network_tech(const std::string &tech) { network_tech_ = tech; }
+
+ const std::string &roaming_state() const { return roaming_state_; }
+ void set_roaming_state(const std::string &state) { roaming_state_ = state; }
+
protected:
virtual std::string CalculateState() { return "idle"; }