diff options
author | Jacob Keeler <jacob.keeler@livioradio.com> | 2018-04-05 15:00:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-05 15:00:43 -0400 |
commit | 61fd83fed0dc584019b305bebc82512d2c42b9e7 (patch) | |
tree | 5432b4212b003d07029911423d64bdf185ea0c9d /src/components/policy/policy_regular/include/policy/cache_manager.h | |
parent | 6212599da217e95899d63d4b33088082489841bd (diff) | |
parent | c2bdb27e117e30752d0f223ec0e244f207883795 (diff) | |
download | sdl_core-61fd83fed0dc584019b305bebc82512d2c42b9e7.tar.gz |
Merge pull request #2005 from smartdevicelink/release/4.5.04.5.0
Release/4.5.0
Diffstat (limited to 'src/components/policy/policy_regular/include/policy/cache_manager.h')
-rw-r--r-- | src/components/policy/policy_regular/include/policy/cache_manager.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/components/policy/policy_regular/include/policy/cache_manager.h b/src/components/policy/policy_regular/include/policy/cache_manager.h index c5d4c848f4..8c0acd44d2 100644 --- a/src/components/policy/policy_regular/include/policy/cache_manager.h +++ b/src/components/policy/policy_regular/include/policy/cache_manager.h @@ -701,6 +701,15 @@ class CacheManager : public CacheManagerInterface { return pt_; } + /** + * @brief OnDeviceSwitching Processes existing policy permissions for devices + * switching transport + * @param device_id_from Device ID original + * @param device_id_to Device ID new + */ + void OnDeviceSwitching(const std::string& device_id_from, + const std::string& device_id_to) OVERRIDE; + private: std::string currentDateTime(); struct AppHMITypeToString { @@ -722,6 +731,13 @@ class CacheManager : public CacheManagerInterface { void PersistData(); + /** + * @brief Transform to lower case all non default application names in + * applications policies section + * @param pt polict rable for update + */ + void MakeLowerCaseAppNames(policy_table::Table& pt) const; + void ResetCalculatedPermissions(); void AddCalculatedPermissions(const std::string& device_id, @@ -740,7 +756,7 @@ class CacheManager : public CacheManagerInterface { typedef std::set<std::string> UnpairedDevices; UnpairedDevices is_unpaired_; - sync_primitives::Lock cache_lock_; + mutable sync_primitives::Lock cache_lock_; sync_primitives::Lock unpaired_lock_; typedef std::map<std::string, Permissions> AppCalculatedPermissions; |