[shill] Use flimflam-esque storage ids
Devices:
device_<MAC>
IPConfig:
ipconfig_<MAC of associated device>_0
Services:
ethernet_<MAC of associated device>
wifi_<MAC of associated device>_<SSID>_<mode>_<security>
cellular_<MAC of associated device>_<Network_name>
BUG=chromium-os:17744
TEST=unit
Change-Id: Ibf061f9c184e7c86f5afcf97d48e321fc74bde1c
Reviewed-on: http://gerrit.chromium.org/gerrit/6412
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
diff --git a/cellular_service.h b/cellular_service.h
index 9f58c74..41c2b2f 100644
--- a/cellular_service.h
+++ b/cellular_service.h
@@ -33,6 +33,9 @@
virtual void Disconnect();
virtual void ActivateCellularModem(const std::string &carrier);
+ // cellular_<MAC>_<Service_Operator_Name>
+ std::string GetStorageIdentifier(const std::string &mac);
+
const std::string &activation_state() const { return activation_state_; }
void set_activation_state(const std::string &state) {
activation_state_ = state;
@@ -66,6 +69,8 @@
std::map<std::string, std::string> last_good_apn_info_;
private:
+ static const char kServiceType[];
+
virtual std::string GetDeviceRpcId();
CellularRefPtr cellular_;