Qt IOC Container 3.5

qic::PropertyListInjector Class Reference

#include <PropertyListInjector.h>

Inheritance diagram for qic::PropertyListInjector:

Inheritance graph
Collaboration diagram for qic::PropertyListInjector:

Collaboration graph
List of all members.

Public Member Functions

virtual ~PropertyListInjector ()
virtual QVariant injectReference (QVariant &prop, ReferenceResolver *resolver, QHash< QString, QObject * > &injector_map)

Detailed Description

PropertyListInjector converts the ReferenceDefinition within QVariantList to actual object reference as a QVariant object.

Zhihong "John" Wang

Definition at line 22 of file PropertyListInjector.h.

Constructor & Destructor Documentation

virtual qic::PropertyListInjector::~PropertyListInjector  )  [inline, virtual]

Definition at line 28 of file PropertyListInjector.h.

Member Function Documentation

QVariant PropertyListInjector::injectReference QVariant &  prop,
ReferenceResolver resolver,
QHash< QString, QObject * > &  injector_map

Replace the ReferenceDefinition structs in property value with the actual object reference.

injector_map is provided for recursive injection of object references.

prop property value as QVariant.
injector_map all the injectors registered in the system.
QVariant after reference injection.

Implements qic::ReferenceInjector.

Definition at line 11 of file PropertyListInjector.cpp.

References qic::ReferenceInjector::injectReference().

The documentation for this class was generated from the following files: