Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSObjectFactory.h 00003 ------------------- 00004 begin : 29/01/2011 00005 copyright : (C) 2003-2011 by InfoSiAL S.L. 00006 email : mail@infosial.com 00007 ***************************************************************************/ 00008 /*************************************************************************** 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; version 2 of the License. * 00012 ***************************************************************************/ 00013 /*************************************************************************** 00014 Este programa es software libre. Puede redistribuirlo y/o modificarlo 00015 bajo los términos de la Licencia Pública General de GNU en su 00016 versión 2, publicada por la Free Software Foundation. 00017 ***************************************************************************/ 00018 00019 #ifndef AQSOBJECTFACTORY_H_ 00020 #define AQSOBJECTFACTORY_H_ 00021 00022 #include <qsobjectfactory.h> 00023 00024 class AQSObjectFactoryPrivate; 00025 00026 class AQSObjectFactory : public QSObjectFactory 00027 { 00028 public: 00029 AQSObjectFactory(); 00030 ~AQSObjectFactory(); 00031 00032 QObject *create(const QString &className, 00033 const QSArgumentList &arguments, 00034 QObject *context); 00035 static QObject *staticCreate(const QString &className, 00036 const QSArgumentList &arguments, 00037 QObject *context, 00038 QMap<int, QStringList> *candidateCtors = 0); 00039 private: 00040 AQSObjectFactoryPrivate *d; 00041 }; 00042 00043 #endif /* AQSOBJECTFACTORY_H_ */