author | kergoth <kergoth> | 2003-08-09 17:29:36 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-08-09 17:29:36 (UTC) |
commit | a0bab0e281fbaf6f6ebbb1a48e5c06426bfbbb93 (patch) (unidiff) | |
tree | 5ce78e1a5dedd31b7851d53bf9f072bd44edd1b0 /core/obex/obeximpl.cpp | |
parent | a7e015198a8c5ad3b6e144a9032b059086253e00 (diff) | |
download | opie-a0bab0e281fbaf6f6ebbb1a48e5c06426bfbbb93.zip opie-a0bab0e281fbaf6f6ebbb1a48e5c06426bfbbb93.tar.gz opie-a0bab0e281fbaf6f6ebbb1a48e5c06426bfbbb93.tar.bz2 |
Merge from BRANCH_1_0
-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 12a078f..5bfc779 100644 --- a/core/obex/obeximpl.cpp +++ b/core/obex/obeximpl.cpp | |||
@@ -1,28 +1,30 @@ | |||
1 | #include "obexhandler.h" | 1 | #include "obexhandler.h" |
2 | #include "obeximpl.h" | 2 | #include "obeximpl.h" |
3 | 3 | ||
4 | using namespace OpieObex; | 4 | using namespace OpieObex; |
5 | 5 | ||
6 | /* TRANSLATOR OpieObex::ObexImpl */ | ||
7 | |||
6 | ObexImpl::ObexImpl() { | 8 | ObexImpl::ObexImpl() { |
7 | m_handler = new ObexHandler; | 9 | m_handler = new ObexHandler; |
8 | } | 10 | } |
9 | ObexImpl::~ObexImpl() { | 11 | ObexImpl::~ObexImpl() { |
10 | delete m_handler; | 12 | delete m_handler; |
11 | } | 13 | } |
12 | QRESULT ObexImpl::queryInterface( const QUuid& uuid, QUnknownInterface **iface ) { | 14 | QRESULT ObexImpl::queryInterface( const QUuid& uuid, QUnknownInterface **iface ) { |
13 | *iface = 0; | 15 | *iface = 0; |
14 | if ( uuid == IID_QUnknown ) { | 16 | if ( uuid == IID_QUnknown ) { |
15 | *iface = this; | 17 | *iface = this; |
16 | }else if ( uuid == IID_ObexInterface ) | 18 | }else if ( uuid == IID_ObexInterface ) |
17 | *iface = this; | 19 | *iface = this; |
18 | 20 | ||
19 | if (*iface) | 21 | if (*iface) |
20 | (*iface)->addRef(); | 22 | (*iface)->addRef(); |
21 | 23 | ||
22 | return QS_OK; | 24 | return QS_OK; |
23 | } | 25 | } |
24 | 26 | ||
25 | 27 | ||
26 | Q_EXPORT_INTERFACE() { | 28 | Q_EXPORT_INTERFACE() { |
27 | Q_CREATE_INSTANCE( ObexImpl ) | 29 | Q_CREATE_INSTANCE( ObexImpl ) |
28 | } | 30 | } |