Lines Matching full:property
5 #include "dbus/property.h"
51 PropertyBase* property) { in RegisterProperty() argument
52 property->Init(this, name); in RegisterProperty()
53 properties_map_[name] = property; in RegisterProperty()
74 LOG(WARNING) << "Property changed signal has wrong parameters: " in ChangedReceived()
83 LOG(WARNING) << "Property changed signal has wrong parameters: " in ChangedReceived()
88 LOG(WARNING) << "Property changed signal has wrong parameters: " in ChangedReceived()
101 void PropertySet::Get(PropertyBase* property, GetCallback callback) { in Get() argument
105 writer.AppendString(property->name()); in Get()
112 property, in Get()
116 void PropertySet::OnGet(PropertyBase* property, GetCallback callback, in OnGet() argument
119 LOG(WARNING) << property->name() << ": Get: failed."; in OnGet()
124 if (property->PopValueFromReader(&reader)) { in OnGet()
125 property->set_valid(true); in OnGet()
126 NotifyPropertyChanged(property->name()); in OnGet()
128 if (property->is_valid()) { in OnGet()
129 property->set_valid(false); in OnGet()
130 NotifyPropertyChanged(property->name()); in OnGet()
138 bool PropertySet::GetAndBlock(PropertyBase* property) { in GetAndBlock() argument
142 writer.AppendString(property->name()); in GetAndBlock()
149 LOG(WARNING) << property->name() << ": GetAndBlock: failed."; in GetAndBlock()
154 if (property->PopValueFromReader(&reader)) { in GetAndBlock()
155 property->set_valid(true); in GetAndBlock()
156 NotifyPropertyChanged(property->name()); in GetAndBlock()
158 if (property->is_valid()) { in GetAndBlock()
159 property->set_valid(false); in GetAndBlock()
160 NotifyPropertyChanged(property->name()); in GetAndBlock()
191 void PropertySet::Set(PropertyBase* property, SetCallback callback) { in Set() argument
195 writer.AppendString(property->name()); in Set()
196 property->AppendSetValueToWriter(&writer); in Set()
203 property, in Set()
207 bool PropertySet::SetAndBlock(PropertyBase* property) { in SetAndBlock() argument
211 writer.AppendString(property->name()); in SetAndBlock()
212 property->AppendSetValueToWriter(&writer); in SetAndBlock()
222 void PropertySet::OnSet(PropertyBase* property, in OnSet() argument
225 LOG_IF(WARNING, !response) << property->name() << ": Set: failed."; in OnSet()
256 PropertyBase* property = it->second; in UpdatePropertyFromReader() local
257 if (property->PopValueFromReader(reader)) { in UpdatePropertyFromReader()
258 property->set_valid(true); in UpdatePropertyFromReader()
262 if (property->is_valid()) { in UpdatePropertyFromReader()
263 property->set_valid(false); in UpdatePropertyFromReader()
264 NotifyPropertyChanged(property->name()); in UpdatePropertyFromReader()
285 PropertyBase* property = it->second; in InvalidatePropertiesFromReader() local
286 if (property->is_valid()) { in InvalidatePropertiesFromReader()
287 property->set_valid(false); in InvalidatePropertiesFromReader()
288 NotifyPropertyChanged(property->name()); in InvalidatePropertiesFromReader()
301 // Property<Byte> specialization.
305 Property<uint8_t>::Property() in Property() function in dbus::Property
309 bool Property<uint8_t>::PopValueFromReader(MessageReader* reader) { in PopValueFromReader()
314 void Property<uint8_t>::AppendSetValueToWriter(MessageWriter* writer) { in AppendSetValueToWriter()
319 // Property<bool> specialization.
323 Property<bool>::Property() : value_(false) { in Property() function in dbus::Property
327 bool Property<bool>::PopValueFromReader(MessageReader* reader) { in PopValueFromReader()
332 void Property<bool>::AppendSetValueToWriter(MessageWriter* writer) { in AppendSetValueToWriter()
337 // Property<int16_t> specialization.
341 Property<int16_t>::Property() in Property() function in dbus::Property
345 bool Property<int16_t>::PopValueFromReader(MessageReader* reader) { in PopValueFromReader()
350 void Property<int16_t>::AppendSetValueToWriter(MessageWriter* writer) { in AppendSetValueToWriter()
355 // Property<uint16_t> specialization.
359 Property<uint16_t>::Property() in Property() function in dbus::Property
363 bool Property<uint16_t>::PopValueFromReader(MessageReader* reader) { in PopValueFromReader()
368 void Property<uint16_t>::AppendSetValueToWriter(MessageWriter* writer) { in AppendSetValueToWriter()
373 // Property<int32_t> specialization.
377 Property<int32_t>::Property() in Property() function in dbus::Property
381 bool Property<int32_t>::PopValueFromReader(MessageReader* reader) { in PopValueFromReader()
386 void Property<int32_t>::AppendSetValueToWriter(MessageWriter* writer) { in AppendSetValueToWriter()
391 // Property<uint32_t> specialization.
395 Property<uint32_t>::Property() in Property() function in dbus::Property
399 bool Property<uint32_t>::PopValueFromReader(MessageReader* reader) { in PopValueFromReader()
404 void Property<uint32_t>::AppendSetValueToWriter(MessageWriter* writer) { in AppendSetValueToWriter()
409 // Property<int64_t> specialization.
413 Property<int64_t>::Property() in Property() function in dbus::Property
417 bool Property<int64_t>::PopValueFromReader(MessageReader* reader) { in PopValueFromReader()
422 void Property<int64_t>::AppendSetValueToWriter(MessageWriter* writer) { in AppendSetValueToWriter()
427 // Property<uint64_t> specialization.
431 Property<uint64_t>::Property() in Property() function in dbus::Property
435 bool Property<uint64_t>::PopValueFromReader(MessageReader* reader) { in PopValueFromReader()
440 void Property<uint64_t>::AppendSetValueToWriter(MessageWriter* writer) { in AppendSetValueToWriter()
445 // Property<double> specialization.
449 Property<double>::Property() : value_(0.0) { in Property() function in dbus::Property
453 bool Property<double>::PopValueFromReader(MessageReader* reader) { in PopValueFromReader()
458 void Property<double>::AppendSetValueToWriter(MessageWriter* writer) { in AppendSetValueToWriter()
463 // Property<std::string> specialization.
467 bool Property<std::string>::PopValueFromReader(MessageReader* reader) { in PopValueFromReader()
472 void Property<std::string>::AppendSetValueToWriter(MessageWriter* writer) { in AppendSetValueToWriter()
477 // Property<ObjectPath> specialization.
481 bool Property<ObjectPath>::PopValueFromReader(MessageReader* reader) { in PopValueFromReader()
486 void Property<ObjectPath>::AppendSetValueToWriter(MessageWriter* writer) { in AppendSetValueToWriter()
491 // Property<std::vector<std::string>> specialization.
495 bool Property<std::vector<std::string>>::PopValueFromReader( in PopValueFromReader()
506 void Property<std::vector<std::string>>::AppendSetValueToWriter( in AppendSetValueToWriter()
515 // Property<std::vector<ObjectPath>> specialization.
519 bool Property<std::vector<ObjectPath>>::PopValueFromReader( in PopValueFromReader()
530 void Property<std::vector<ObjectPath>>::AppendSetValueToWriter( in AppendSetValueToWriter()
539 // Property<std::vector<uint8_t>> specialization.
543 bool Property<std::vector<uint8_t>>::PopValueFromReader(MessageReader* reader) { in PopValueFromReader()
558 void Property<std::vector<uint8_t>>::AppendSetValueToWriter( in AppendSetValueToWriter()
567 // Property<std::map<std::string, std::string>> specialization.
571 bool Property<std::map<std::string, std::string>>::PopValueFromReader( in PopValueFromReader()
594 void Property<std::map<std::string, std::string>>::AppendSetValueToWriter( in AppendSetValueToWriter()
612 // Property<std::vector<std::pair<std::vector<uint8_t>, uint16_t>>>
617 bool Property<std::vector<std::pair<std::vector<uint8_t>, uint16_t>>>::
645 void Property<std::vector<std::pair<std::vector<uint8_t>, uint16_t>>>::
664 // Property<std::map<std::string, std::vector<uint8_t>>>
669 bool Property<std::map<std::string, std::vector<uint8_t>>>::PopValueFromReader( in PopValueFromReader()
700 void Property<std::map<std::string, std::vector<uint8_t>>>::
728 // Property<std::map<uint16_t, std::vector<uint8_t>>>
733 bool Property<std::map<uint16_t, std::vector<uint8_t>>>::PopValueFromReader( in PopValueFromReader()
764 void Property<std::map<uint16_t, std::vector<uint8_t>>>::AppendSetValueToWriter( in AppendSetValueToWriter()
791 template class Property<uint8_t>; variable
792 template class Property<bool>; variable
793 template class Property<int16_t>; variable
794 template class Property<uint16_t>; variable
795 template class Property<int32_t>; variable
796 template class Property<uint32_t>; variable
797 template class Property<int64_t>; variable
798 template class Property<uint64_t>; variable
799 template class Property<double>; variable
800 template class Property<std::string>; variable
801 template class Property<ObjectPath>; variable
802 template class Property<std::vector<std::string>>; variable
803 template class Property<std::vector<ObjectPath>>; variable
804 template class Property<std::vector<uint8_t>>; variable
805 template class Property<std::map<std::string, std::string>>; variable
806 template class Property<std::vector<std::pair<std::vector<uint8_t>, uint16_t>>>; variable
807 template class Property<std::map<std::string, std::vector<uint8_t>>>; variable
808 template class Property<std::map<uint16_t, std::vector<uint8_t>>>; variable