oopapidocs
2.0
|
00001 #ifndef OBJECTFACTORY_H 00002 #define OBJECTFACTORY_H 00003 00004 class Address; 00005 #include <QHash> 00006 #include <QMetaObject> 00007 00008 #include "dobjs_export.h" 00009 #include "abstractfactory.h" 00010 00030 //start 00031 class DOBJS_EXPORT ObjectFactory : public AbstractFactory { 00032 public: 00033 ObjectFactory(); 00046 virtual QObject* newObject (QString className, QObject* parent=0); 00047 protected: 00048 QHash<QString, QMetaObject> m_knownClasses; 00049 }; 00050 //end 00051 00052 #endif