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.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/obex/obeximpl.cpp b/core/obex/obeximpl.cpp
index 5b53644..ca6ce7b 100644
--- a/core/obex/obeximpl.cpp
+++ b/core/obex/obeximpl.cpp
@@ -1,27 +1,29 @@
1#include "obexhandler.h" 1#include "obexhandler.h"
2#include "obeximpl.h" 2#include "obeximpl.h"
3 3
4
5
4using namespace OpieObex; 6using namespace OpieObex;
5 7
6/* TRANSLATOR OpieObex::ObexImpl */ 8/* TRANSLATOR OpieObex::ObexImpl */
7 9
8ObexImpl::ObexImpl() { 10ObexImpl::ObexImpl() {
9 m_handler = new ObexHandler; 11 m_handler = new ObexHandler;
10} 12}
11ObexImpl::~ObexImpl() { 13ObexImpl::~ObexImpl() {
12 delete m_handler; 14 delete m_handler;
13} 15}
14QRESULT ObexImpl::queryInterface( const QUuid& uuid, QUnknownInterface **iface ) { 16QRESULT ObexImpl::queryInterface( const QUuid& uuid, QUnknownInterface **iface ) {
15 *iface = 0; 17 *iface = 0;
16 if ( uuid == IID_QUnknown ) { 18 if ( uuid == IID_QUnknown ) {
17 *iface = this; 19 *iface = this;
18 }else if ( uuid == IID_ObexInterface ) 20 }else if ( uuid == IID_ObexInterface )
19 *iface = this; 21 *iface = this;
20 else 22 else
21 return QS_FALSE; 23 return QS_FALSE;
22 24
23 if (*iface) 25 if (*iface)
24 (*iface)->addRef(); 26 (*iface)->addRef();
25 27
26 return QS_OK; 28 return QS_OK;
27} 29}