

Public Member Functions | |
| QObject * | newObject (QString classname, QObject *parent=0) |
| |
Static Public Member Functions | |
| static CustomerFactory * | instance () |
| |
Protected Member Functions | |
| CustomerFactory () | |
| Create a new customer object. | |
Definition at line 8 of file customerfactory.h.
| CustomerFactory::CustomerFactory | ( | ) | [inline, protected] |
Create a new customer object.
| country | - if defined, will create an empty default address suitable for that country, as a child of the new customer. |
Definition at line 19 of file customerfactory.h.
Referenced by instance().
| QObject * CustomerFactory::newObject | ( | QString | classname, | |
| QObject * | parent = 0 | |||
| ) | [virtual] |
If the className is not a known type, it will return an instance of PropsMap, serving as a catch-all. By default, the new object is a child of "this", which means its lifetime expires when this object is destroyed. Overridden versions of this class may return more specific types.
| className | - the name of the class to create | |
| parent | the parent of the object. |
Reimplemented from ObjectFactory.
Definition at line 16 of file customerfactory.cpp.
References ObjectFactory::newObject().
Here is the call graph for this function:

1.5.1