Lines Matching defs:key
43 void NfcPreferences::SetString(const std::string& key, const std::string& value)
50 DebugLog("Set preference with key %{public}s, value %{public}s", key.c_str(), value.c_str());
51 pref->PutString(key, value);
55 std::string NfcPreferences::GetString(const std::string& key)
62 DebugLog("Get preference with key %{public}s", key.c_str());
63 return pref->GetString(key, "");
66 void NfcPreferences::SetInt(const std::string& key, const int value)
73 DebugLog("Set preference with key %{public}s, value %{public}d", key.c_str(), value);
74 pref->PutInt(key, value);
78 int NfcPreferences::GetInt(const std::string& key)
85 DebugLog("Get preference with key %{public}s", key.c_str());
86 return pref->GetInt(key, 0);
101 void NfcPreferences::Delete(const std::string& key)
108 DebugLog("NfcPreferences: Delete preference with key %{public}s", key.c_str());
109 pref->Delete(key);