00001 /********************************************************************** 00002 ** Copyright (C) 2000 Trolltech AS. All rights reserved. 00003 ** 00004 ** This file is part of Qtopia Environment. 00005 ** 00006 ** This file may be distributed and/or modified under the terms of the 00007 ** GNU General Public License version 2 as published by the Free Software 00008 ** Foundation and appearing in the file LICENSE.GPL included in the 00009 ** GNU General Public License version 2 as published by the Free Software 00010 ** Foundation and appearing in the file LICENSE.GPL included in the 00011 ** packaging of this file. 00012 ** 00013 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00014 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00015 ** 00016 ** See http://www.trolltech.com/gpl/ for GPL licensing information. 00017 ** 00018 ** Contact info@trolltech.com if any conditions of this licensing are 00019 ** not clear to you. 00020 ** 00021 **********************************************************************/ 00022 00023 #include "simplefactory.h" 00024 #include "simpleimpl.h" 00025 #include "engine.h" 00026 00027 QWidget *SimpleInterface::getPlugin ( Engine *e, QWidget *parent ) { 00028 if ( !input ) 00029 input = new FormSimpleImpl ( e, parent ); 00030 return input; 00031 } 00032 00033 #ifndef QT_NO_COMPONENT 00034 QRESULT SimpleInterface::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) 00035 { 00036 *iface = 0; 00037 if ( uuid == IID_QUnknown ) 00038 *iface = this; 00039 else if ( uuid == IID_Calc ) 00040 *iface = this; 00041 00042 if ( *iface ) 00043 (*iface)->addRef(); 00044 return QS_OK; 00045 } 00046 00047 Q_EXPORT_INTERFACE() 00048 { 00049 Q_CREATE_INSTANCE( SimpleInterface ) 00050 } 00051 #endif
1.4.2