-rw-r--r-- | core/obex/receiver.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/obex/receiver.cpp b/core/obex/receiver.cpp index 7d9a42a..e153152 100644 --- a/core/obex/receiver.cpp +++ b/core/obex/receiver.cpp | |||
@@ -1,5 +1,7 @@ | |||
1 | #include "obex.h" | 1 | #include "obex.h" |
2 | #include "btobex.h" | ||
3 | #include "obexbase.h" | ||
2 | #include "receiver.h" | 4 | #include "receiver.h" |
3 | using namespace OpieObex; | 5 | using namespace OpieObex; |
4 | 6 | ||
5 | /* OPIE */ | 7 | /* OPIE */ |
@@ -25,10 +27,13 @@ using namespace Opie::Core; | |||
25 | #include <fcntl.h> | 27 | #include <fcntl.h> |
26 | 28 | ||
27 | /* TRANSLATOR OpieObex::Receiver */ | 29 | /* TRANSLATOR OpieObex::Receiver */ |
28 | 30 | ||
29 | Receiver::Receiver() { | 31 | Receiver::Receiver(RecType type) { |
32 | if (type == REC_IRDA) | ||
30 | m_obex = new Obex(this, "Receiver"); | 33 | m_obex = new Obex(this, "Receiver"); |
34 | else | ||
35 | m_obex = new BtObex(this, "Receiver"); | ||
31 | connect(m_obex, SIGNAL(receivedFile(const QString&) ), | 36 | connect(m_obex, SIGNAL(receivedFile(const QString&) ), |
32 | this, SLOT(slotReceived(const QString&) ) ); | 37 | this, SLOT(slotReceived(const QString&) ) ); |
33 | m_obex->receive(); | 38 | m_obex->receive(); |
34 | } | 39 | } |