summaryrefslogtreecommitdiff
path: root/property_store.h
diff options
context:
space:
mode:
authorDarin Petkov <petkov@chromium.org>2012-02-06 14:09:15 +0100
committerGerrit <chrome-bot@google.com>2012-02-07 14:30:16 -0800
commit63138a9b8249fd69c83a772ee3170551a589d57a (patch)
treea7e1c550df9100fa1e69c7c462173b214f1b584b /property_store.h
parentd9f893fba21b093cf63939e6e2c58bc77d6f2bdb (diff)
downloadshill-63138a9b8249fd69c83a772ee3170551a589d57a.tar.gz
shill: Add SIMLockEnabled to the SIM lock status properties and emit changes.
This patch replaces the StrIntPair class with the more generic KeyValueStore and updates cellular's SIMLockStatus property to include the enabled key/value pair. BUG=chromium-os:25850 TEST=unit tests Change-Id: I2662cb468807e3afa04c3699e323f31282e1a50e Reviewed-on: https://gerrit.chromium.org/gerrit/15325 Tested-by: Darin Petkov <petkov@chromium.org> Reviewed-by: Eric Shienbrood <ers@chromium.org> Reviewed-by: mukesh agrawal <quiche@chromium.org> Commit-Ready: Darin Petkov <petkov@chromium.org>
Diffstat (limited to 'property_store.h')
-rw-r--r--property_store.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/property_store.h b/property_store.h
index 602d2eff..461cb7f7 100644
--- a/property_store.h
+++ b/property_store.h
@@ -78,10 +78,11 @@ class PropertyStore {
ReadablePropertyConstIterator<bool> GetBoolPropertiesIter() const;
ReadablePropertyConstIterator<int16> GetInt16PropertiesIter() const;
ReadablePropertyConstIterator<int32> GetInt32PropertiesIter() const;
+ ReadablePropertyConstIterator<KeyValueStore> GetKeyValueStorePropertiesIter(
+ ) const;
ReadablePropertyConstIterator<std::string> GetStringPropertiesIter() const;
ReadablePropertyConstIterator<Stringmap> GetStringmapPropertiesIter() const;
ReadablePropertyConstIterator<Stringmaps> GetStringmapsPropertiesIter() const;
- ReadablePropertyConstIterator<StrIntPair> GetStrIntPairPropertiesIter() const;
ReadablePropertyConstIterator<Strings> GetStringsPropertiesIter() const;
ReadablePropertyConstIterator<uint8> GetUint8PropertiesIter() const;
ReadablePropertyConstIterator<uint16> GetUint16PropertiesIter() const;
@@ -119,14 +120,14 @@ class PropertyStore {
const BoolAccessor &accessor);
void RegisterDerivedInt32(const std::string &name,
const Int32Accessor &accessor);
+ void RegisterDerivedKeyValueStore(const std::string &name,
+ const KeyValueStoreAccessor &accessor);
void RegisterDerivedString(const std::string &name,
const StringAccessor &accessor);
void RegisterDerivedStringmaps(const std::string &name,
const StringmapsAccessor &accessor);
void RegisterDerivedStrings(const std::string &name,
const StringsAccessor &accessor);
- void RegisterDerivedStrIntPair(const std::string &name,
- const StrIntPairAccessor &accessor);
void RegisterDerivedUint16(const std::string &name,
const Uint16Accessor &accessor);
@@ -144,11 +145,11 @@ class PropertyStore {
std::map<std::string, BoolAccessor> bool_properties_;
std::map<std::string, Int16Accessor> int16_properties_;
std::map<std::string, Int32Accessor> int32_properties_;
+ std::map<std::string, KeyValueStoreAccessor> key_value_store_properties_;
std::map<std::string, StringAccessor> string_properties_;
std::map<std::string, StringmapAccessor> stringmap_properties_;
std::map<std::string, StringmapsAccessor> stringmaps_properties_;
std::map<std::string, StringsAccessor> strings_properties_;
- std::map<std::string, StrIntPairAccessor> strintpair_properties_;
std::map<std::string, Uint8Accessor> uint8_properties_;
std::map<std::string, Uint16Accessor> uint16_properties_;
std::map<std::string, Uint32Accessor> uint32_properties_;