Lines Matching refs:Property
5 #include "dbus/property.h"
50 PropertyBase* property) {
51 property->Init(this, name);
52 properties_map_[name] = property;
73 LOG(WARNING) << "Property changed signal has wrong parameters: "
82 LOG(WARNING) << "Property changed signal has wrong parameters: "
87 LOG(WARNING) << "Property changed signal has wrong parameters: "
100 void PropertySet::Get(PropertyBase* property, GetCallback callback) {
104 writer.AppendString(property->name());
111 property,
115 void PropertySet::OnGet(PropertyBase* property, GetCallback callback,
118 LOG(WARNING) << property->name() << ": Get: failed.";
123 if (property->PopValueFromReader(&reader)) {
124 property->set_valid(true);
125 NotifyPropertyChanged(property->name());
127 if (property->is_valid()) {
128 property->set_valid(false);
129 NotifyPropertyChanged(property->name());
137 bool PropertySet::GetAndBlock(PropertyBase* property) {
141 writer.AppendString(property->name());
149 LOG(WARNING) << property->name() << ": GetAndBlock: failed.";
154 if (property->PopValueFromReader(&reader)) {
155 property->set_valid(true);
156 NotifyPropertyChanged(property->name());
158 if (property->is_valid()) {
159 property->set_valid(false);
160 NotifyPropertyChanged(property->name());
191 void PropertySet::Set(PropertyBase* property, SetCallback callback) {
195 writer.AppendString(property->name());
196 property->AppendSetValueToWriter(&writer);
203 property,
207 bool PropertySet::SetAndBlock(PropertyBase* property) {
211 writer.AppendString(property->name());
212 property->AppendSetValueToWriter(&writer);
223 void PropertySet::OnSet(PropertyBase* property,
226 LOG_IF(WARNING, !response) << property->name() << ": Set: failed.";
257 PropertyBase* property = it->second;
258 if (property->PopValueFromReader(reader)) {
259 property->set_valid(true);
263 if (property->is_valid()) {
264 property->set_valid(false);
265 NotifyPropertyChanged(property->name());
286 PropertyBase* property = it->second;
287 if (property->is_valid()) {
288 property->set_valid(false);
289 NotifyPropertyChanged(property->name());
302 // Property<Byte> specialization.
306 Property<uint8_t>::Property()
310 bool Property<uint8_t>::PopValueFromReader(MessageReader* reader) {
315 void Property<uint8_t>::AppendSetValueToWriter(MessageWriter* writer) {
320 // Property<bool> specialization.
324 Property<bool>::Property() : value_(false) {
328 bool Property<bool>::PopValueFromReader(MessageReader* reader) {
333 void Property<bool>::AppendSetValueToWriter(MessageWriter* writer) {
338 // Property<int16_t> specialization.
342 Property<int16_t>::Property()
346 bool Property<int16_t>::PopValueFromReader(MessageReader* reader) {
351 void Property<int16_t>::AppendSetValueToWriter(MessageWriter* writer) {
356 // Property<uint16_t> specialization.
360 Property<uint16_t>::Property()
364 bool Property<uint16_t>::PopValueFromReader(MessageReader* reader) {
369 void Property<uint16_t>::AppendSetValueToWriter(MessageWriter* writer) {
374 // Property<int32_t> specialization.
378 Property<int32_t>::Property()
382 bool Property<int32_t>::PopValueFromReader(MessageReader* reader) {
387 void Property<int32_t>::AppendSetValueToWriter(MessageWriter* writer) {
392 // Property<uint32_t> specialization.
396 Property<uint32_t>::Property()
400 bool Property<uint32_t>::PopValueFromReader(MessageReader* reader) {
405 void Property<uint32_t>::AppendSetValueToWriter(MessageWriter* writer) {
410 // Property<int64_t> specialization.
414 Property<int64_t>::Property()
418 bool Property<int64_t>::PopValueFromReader(MessageReader* reader) {
423 void Property<int64_t>::AppendSetValueToWriter(MessageWriter* writer) {
428 // Property<uint64_t> specialization.
432 Property<uint64_t>::Property()
436 bool Property<uint64_t>::PopValueFromReader(MessageReader* reader) {
441 void Property<uint64_t>::AppendSetValueToWriter(MessageWriter* writer) {
446 // Property<double> specialization.
450 Property<double>::Property() : value_(0.0) {
454 bool Property<double>::PopValueFromReader(MessageReader* reader) {
459 void Property<double>::AppendSetValueToWriter(MessageWriter* writer) {
464 // Property<std::string> specialization.
468 bool Property<std::string>::PopValueFromReader(MessageReader* reader) {
473 void Property<std::string>::AppendSetValueToWriter(MessageWriter* writer) {
478 // Property<ObjectPath> specialization.
482 bool Property<ObjectPath>::PopValueFromReader(MessageReader* reader) {
487 void Property<ObjectPath>::AppendSetValueToWriter(MessageWriter* writer) {
492 // Property<std::vector<std::string> > specialization.
496 bool Property<std::vector<std::string> >::PopValueFromReader(
507 void Property<std::vector<std::string> >::AppendSetValueToWriter(
516 // Property<std::vector<ObjectPath> > specialization.
520 bool Property<std::vector<ObjectPath> >::PopValueFromReader(
531 void Property<std::vector<ObjectPath> >::AppendSetValueToWriter(
540 // Property<std::vector<uint8_t> > specialization.
544 bool Property<std::vector<uint8_t>>::PopValueFromReader(MessageReader* reader) {
559 void Property<std::vector<uint8_t>>::AppendSetValueToWriter(
568 // Property<std::map<std::string, std::string>> specialization.
572 bool Property<std::map<std::string, std::string>>::PopValueFromReader(
595 void Property<std::map<std::string, std::string>>::AppendSetValueToWriter(
613 // Property<std::vector<std::pair<std::vector<uint8_t>, uint16_t>>>
618 bool Property<std::vector<std::pair<std::vector<uint8_t>, uint16_t>>>::
646 void Property<std::vector<std::pair<std::vector<uint8_t>, uint16_t>>>::
664 template class Property<uint8_t>;
665 template class Property<bool>;
666 template class Property<int16_t>;
667 template class Property<uint16_t>;
668 template class Property<int32_t>;
669 template class Property<uint32_t>;
670 template class Property<int64_t>;
671 template class Property<uint64_t>;
672 template class Property<double>;
673 template class Property<std::string>;
674 template class Property<ObjectPath>;
675 template class Property<std::vector<std::string> >;
676 template class Property<std::vector<ObjectPath> >;
677 template class Property<std::vector<uint8_t>>;
678 template class Property<std::map<std::string, std::string>>;
679 template class Property<std::vector<std::pair<std::vector<uint8_t>, uint16_t>>>;