~thalexander/unity/update-fsf-address

« back to all changes in this revision

Viewing changes to shutdown/SessionController.cpp

Introspectable: use IntrospectionData class for collecting data from children

Now each introspectable object is called with an IntrospectionData parameter and calling one
of its methods it's the only way to fill introspection data into unity.
As bonus point, remove all the unneeded UnityCore/Variant.cpp inclusions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
226
226
  return "SessionController";
227
227
}
228
228
 
229
 
void Controller::AddProperties(GVariantBuilder* builder)
 
229
void Controller::AddProperties(debug::IntrospectionData& introspection)
230
230
{
231
 
  variant::BuilderWrapper(builder)
 
231
  introspection
232
232
    .add("visible", Visible());
233
233
}
234
234