CustomerFactory Class Reference

Inheritance diagram for CustomerFactory:

Inheritance graph
[legend]
Collaboration diagram for CustomerFactory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

QObject * newObject (QString classname, QObject *parent=0)
 
Returns:
a QObject-derived instance which can handle the properties of className.


Static Public Member Functions

static CustomerFactoryinstance ()
 
Returns:
a singleton instance


Protected Member Functions

 CustomerFactory ()
 Create a new customer object.

Detailed Description

Definition at line 8 of file customerfactory.h.


Constructor & Destructor Documentation

CustomerFactory::CustomerFactory (  )  [inline, protected]

Create a new customer object.

Parameters:
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().


Member Function Documentation

QObject * CustomerFactory::newObject ( QString  classname,
QObject *  parent = 0 
) [virtual]

Returns:
a QObject-derived instance which can handle the properties of className.

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.

Parameters:
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:


The documentation for this class was generated from the following files:
Generated on Wed Sep 30 01:15:43 2009 for oopapidocs by  doxygen 1.5.1