oopapidocs  2.0
customerfactory.h
00001 #ifndef CUSTOMERFACTORY_H
00002 #define CUSTOMERFACTORY_H
00003 
00004 #include <objectfactory.h>
00005 #include <country.h>
00006 #include "customer.h"
00007 #include "address.h"
00008 //start
00009 class CUSTOMER_EXPORT CustomerFactory : 
00010                              public QObject, public ObjectFactory {
00011   public:
00012     static CustomerFactory* instance();                      /* Singleton factory method. */
00013     Customer* newCustomer(QString name, QObject* parent=0);  /* Regular factory method, does not require a typecast. */
00014     Address* newAddress(QString countryType = "USA", QObject* parent=0);
00015   private:
00016     CustomerFactory(QObject* parent=0);
00017 };
00018 //end
00019 #endif
 All Classes Namespaces Functions Enumerations