-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,4 +1,6 @@ #include "obex.h" +#include "btobex.h" +#include "obexbase.h" #include "receiver.h" using namespace OpieObex; @@ -26,8 +28,11 @@ using namespace Opie::Core; /* TRANSLATOR OpieObex::Receiver */ -Receiver::Receiver() { +Receiver::Receiver(RecType type) { + if (type == REC_IRDA) m_obex = new Obex(this, "Receiver"); + else + m_obex = new BtObex(this, "Receiver"); connect(m_obex, SIGNAL(receivedFile(const QString&) ), this, SLOT(slotReceived(const QString&) ) ); m_obex->receive(); |