-rw-r--r-- | core/obex/obeximpl.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/core/obex/obeximpl.cpp b/core/obex/obeximpl.cpp new file mode 100644 index 0000000..12a078f --- a/dev/null +++ b/core/obex/obeximpl.cpp @@ -0,0 +1,28 @@ +#include "obexhandler.h" +#include "obeximpl.h" + +using namespace OpieObex; + +ObexImpl::ObexImpl() { + m_handler = new ObexHandler; +} +ObexImpl::~ObexImpl() { + delete m_handler; +} +QRESULT ObexImpl::queryInterface( const QUuid& uuid, QUnknownInterface **iface ) { + *iface = 0; + if ( uuid == IID_QUnknown ) { + *iface = this; + }else if ( uuid == IID_ObexInterface ) + *iface = this; + + if (*iface) + (*iface)->addRef(); + + return QS_OK; +} + + +Q_EXPORT_INTERFACE() { + Q_CREATE_INSTANCE( ObexImpl ) +} |