summaryrefslogtreecommitdiff
path: root/core/obex/obeximpl.cpp
Unidiff
Diffstat (limited to 'core/obex/obeximpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/obex/obeximpl.cpp28
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 @@
1#include "obexhandler.h"
2#include "obeximpl.h"
3
4using namespace OpieObex;
5
6ObexImpl::ObexImpl() {
7 m_handler = new ObexHandler;
8}
9ObexImpl::~ObexImpl() {
10 delete m_handler;
11}
12QRESULT ObexImpl::queryInterface( const QUuid& uuid, QUnknownInterface **iface ) {
13 *iface = 0;
14 if ( uuid == IID_QUnknown ) {
15 *iface = this;
16 }else if ( uuid == IID_ObexInterface )
17 *iface = this;
18
19 if (*iface)
20 (*iface)->addRef();
21
22 return QS_OK;
23}
24
25
26Q_EXPORT_INTERFACE() {
27 Q_CREATE_INSTANCE( ObexImpl )
28}