00001 #include <qapplication.h> 00002 00003 #include "metal.h" 00004 #include "plugin.h" 00005 00006 00007 MetalInterface::MetalInterface ( ) 00008 { 00009 } 00010 00011 MetalInterface::~MetalInterface ( ) 00012 { 00013 } 00014 00015 QStyle *MetalInterface::style ( ) 00016 { 00017 return new MetalStyle ( ); 00018 } 00019 00020 QString MetalInterface::name ( ) const 00021 { 00022 return qApp-> translate ( "Styles", "Metal" ); 00023 } 00024 00025 00026 QRESULT MetalInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) 00027 { 00028 *iface = 0; 00029 00030 if ( uuid == IID_QUnknown ) 00031 *iface = this; 00032 else if ( uuid == IID_Style ) 00033 *iface = this; 00034 else 00035 return QS_FALSE; 00036 00037 if ( *iface ) 00038 (*iface)-> addRef ( ); 00039 00040 return QS_OK; 00041 } 00042 00043 Q_EXPORT_INTERFACE() 00044 { 00045 Q_CREATE_INSTANCE( MetalInterface ) 00046 } 00047
1.4.2