-rw-r--r-- | core/obex/obeximpl.cpp | 2 |
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,32 +1,34 @@ | |||
1 | #include "obexhandler.h" | 1 | #include "obexhandler.h" |
2 | #include "obeximpl.h" | 2 | #include "obeximpl.h" |
3 | 3 | ||
4 | |||
5 | |||
4 | using namespace OpieObex; | 6 | using namespace OpieObex; |
5 | 7 | ||
6 | /* TRANSLATOR OpieObex::ObexImpl */ | 8 | /* TRANSLATOR OpieObex::ObexImpl */ |
7 | 9 | ||
8 | ObexImpl::ObexImpl() { | 10 | ObexImpl::ObexImpl() { |
9 | m_handler = new ObexHandler; | 11 | m_handler = new ObexHandler; |
10 | } | 12 | } |
11 | ObexImpl::~ObexImpl() { | 13 | ObexImpl::~ObexImpl() { |
12 | delete m_handler; | 14 | delete m_handler; |
13 | } | 15 | } |
14 | QRESULT ObexImpl::queryInterface( const QUuid& uuid, QUnknownInterface **iface ) { | 16 | QRESULT 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 | } |
28 | 30 | ||
29 | 31 | ||
30 | Q_EXPORT_INTERFACE() { | 32 | Q_EXPORT_INTERFACE() { |
31 | Q_CREATE_INSTANCE( ObexImpl ) | 33 | Q_CREATE_INSTANCE( ObexImpl ) |
32 | } | 34 | } |