~ci-train-bot/dbus-cpp/dbus-cpp-ubuntu-yakkety-landing-028

« back to all changes in this revision

Viewing changes to include/core/dbus/impl/property.h

  • Committer: Bileto Bot
  • Date: 2016-08-09 07:31:05 UTC
  • mfrom: (101.1.9 enable-dual-landings)
  • Revision ID: ci-train-bot@canonical.com-20160809073105-slgha9rqxjx9y3b0
* debian/libdbus-cpp4.symbols.32bit: update to released version.
* debian/libdbus-cpp4.symbols.64bit: update to released version.
* Add a proper operator<< for dbus::Message::Type. (LP: #1524131)
* Only run dbus_shutdown if explicitly requested by env var. (LP:
  #1422304, #1526877)
* New rebuild forced.
* Ensure that Signal with non-void argument types correctly narrow
  their match rules. (LP: #1480877)
* New rebuild forced.
* Do not cache emitted values for stub signals. (LP: #1509285)
* Ensure that the signals are correctly emitted for when the services
  appear and go.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
}
65
65
 
66
66
template<typename PropertyType>
 
67
const core::Signal<void>&
 
68
Property<PropertyType>::about_to_be_destroyed() const
 
69
{
 
70
    return signal_about_to_be_destroyed;
 
71
}
 
72
 
 
73
template<typename PropertyType>
67
74
std::shared_ptr<Property<PropertyType>>
68
75
Property<PropertyType>::make_property(const std::shared_ptr<Object>& parent)
69
76
{
109
116
}
110
117
 
111
118
template<typename PropertyType>
 
119
Property<PropertyType>::~Property()
 
120
{
 
121
    try
 
122
    {
 
123
        signal_about_to_be_destroyed();
 
124
    } catch(...)
 
125
    {
 
126
        // Consciously dropping all exceptions here.
 
127
        // There is hardly anything we can do about it while
 
128
        // tearing down the object anyway.
 
129
    }
 
130
}
 
131
 
 
132
template<typename PropertyType>
112
133
void
113
134
Property<PropertyType>::handle_get(const Message::Ptr& msg)
114
135
{