00001 #include "obexhandler.h" 00002 #include "obeximpl.h" 00003 00004 00005 00006 using namespace OpieObex; 00007 00008 /* TRANSLATOR OpieObex::ObexImpl */ 00009 00010 ObexImpl::ObexImpl() { 00011 m_handler = new ObexHandler; 00012 } 00013 ObexImpl::~ObexImpl() { 00014 delete m_handler; 00015 } 00016 QRESULT ObexImpl::queryInterface( const QUuid& uuid, QUnknownInterface **iface ) { 00017 *iface = 0; 00018 if ( uuid == IID_QUnknown ) { 00019 *iface = this; 00020 }else if ( uuid == IID_ObexInterface ) 00021 *iface = this; 00022 else 00023 return QS_FALSE; 00024 00025 if (*iface) 00026 (*iface)->addRef(); 00027 00028 return QS_OK; 00029 } 00030 00031 00032 Q_EXPORT_INTERFACE() { 00033 Q_CREATE_INSTANCE( ObexImpl ) 00034 }
1.4.2