Home | History | Annotate | Download | only in shill

Lines Matching defs:property

46 const StaticIPParameters::Property StaticIPParameters::kProperties[] = {
47 { kAddressProperty, Property::kTypeString },
48 { kGatewayProperty, Property::kTypeString },
49 { kMtuProperty, Property::kTypeInt32 },
50 { kNameServersProperty, Property::kTypeStrings },
51 { kPeerAddressProperty, Property::kTypeString },
52 { kPrefixlenProperty, Property::kTypeInt32 }
63 const Property& property = kProperties[i];
64 const string name(string(kConfigKeyPrefix) + property.name);
65 const string saved_name(string(kSavedConfigKeyPrefix) + property.name);
66 switch (property.type) {
67 case Property::kTypeInt32:
87 case Property::kTypeString:
107 case Property::kTypeStrings:
153 const Property& property = kProperties[i];
154 const string name(string(kConfigKeyPrefix) + property.name);
155 switch (property.type) {
156 case Property::kTypeInt32:
160 args_.SetInt(property.name, value);
162 args_.RemoveInt(property.name);
166 case Property::kTypeString:
170 args_.SetString(property.name, value);
172 args_.RemoveString(property.name);
176 case Property::kTypeStrings:
184 args_.SetStrings(property.name, string_list);
186 args_.RemoveStrings(property.name);
200 const Property& property = kProperties[i];
201 const string name(string(kConfigKeyPrefix) + property.name);
203 switch (property.type) {
204 case Property::kTypeInt32:
205 if (args_.ContainsInt(property.name)) {
207 storage->SetInt(storage_id, name, args_.GetInt(property.name));
210 case Property::kTypeString:
211 if (args_.ContainsString(property.name)) {
213 storage->SetString(storage_id, name, args_.GetString(property.name));
216 case Property::kTypeStrings:
217 if (args_.ContainsStrings(property.name)) {
223 base::JoinString(args_.GetStrings(property.name), ","));
237 const string& property, int32_t* value_out) {
238 saved_args_.SetInt(property, *value_out);
239 if (args_.ContainsInt(property)) {
240 *value_out = args_.GetInt(property);
245 const string& property, string* value_out) {
246 saved_args_.SetString(property, *value_out);
247 if (args_.ContainsString(property)) {
248 *value_out = args_.GetString(property);
253 const string& property, vector<string>* value_out) {
254 saved_args_.SetStrings(property, *value_out);
255 if (args_.ContainsStrings(property)) {
256 *value_out = args_.GetStrings(property);
307 const Property& property = kProperties[index];
308 switch (property.type) {
309 case Property::kTypeInt32:
310 if (args_.ContainsInt(property.name)) {
311 args_.RemoveInt(property.name);
313 error->Populate(Error::kNotFound, "Property is not set");
316 case Property::kTypeString:
317 if (args_.ContainsString(property.name)) {
318 args_.RemoveString(property.name);
320 error->Populate(Error::kNotFound, "Property is not set");
323 case Property::kTypeStrings:
324 if (args_.ContainsStrings(property.name)) {
325 args_.RemoveStrings(property.name);
327 error->Populate(Error::kNotFound, "Property is not set");
338 error->Populate(Error::kInvalidArguments, "Property is read-only");
347 error->Populate(Error::kNotFound, "Property is not set");
359 error->Populate(Error::kNotFound, "Property is not set");
371 error->Populate(Error::kNotFound, "Property is not set");
383 error->Populate(Error::kNotFound, "Property is not set");
395 error->Populate(Error::kNotFound, "Property is not set");
407 error->Populate(Error::kNotFound, "Property is not set");
426 error->Populate(Error::kInvalidArguments, "Property is read-only");
443 error->Populate(Error::kInvalidArguments, "Property is read-only");
464 error->Populate(Error::kInvalidArguments, "Property is read-only");