-rw-r--r-- | core/obex/obexhandler.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/core/obex/obexhandler.h b/core/obex/obexhandler.h index 230c4f0..de2232e 100644 --- a/core/obex/obexhandler.h +++ b/core/obex/obexhandler.h | |||
@@ -1,39 +1,40 @@ | |||
1 | #ifndef OPIE_OBEX_HANDLER_H | 1 | #ifndef OPIE_OBEX_HANDLER_H |
2 | #define OPIE_OBEX_HANDLER_H | 2 | #define OPIE_OBEX_HANDLER_H |
3 | 3 | ||
4 | #include <qobject.h> | 4 | #include <qobject.h> |
5 | #include <qstring.h> | 5 | #include <qstring.h> |
6 | #include "receiver.h" | ||
6 | 7 | ||
7 | namespace OpieObex { | 8 | namespace OpieObex { |
8 | /* | 9 | /* |
9 | * The handler is responsible for handling receiving | 10 | * The handler is responsible for handling receiving |
10 | * and sending | 11 | * and sending |
11 | * It will connect to the IrDa QCOP channel and then | 12 | * It will connect to the IrDa QCOP channel and then |
12 | * wait for activation... | 13 | * wait for activation... |
13 | */ | 14 | */ |
14 | class SendWidget; | 15 | class SendWidget; |
15 | class Receiver; | 16 | class Receiver; |
16 | class ObexHandler : public QObject { | 17 | class ObexHandler : public QObject { |
17 | Q_OBJECT | 18 | Q_OBJECT |
18 | public: | 19 | public: |
19 | ObexHandler(); | 20 | ObexHandler(); |
20 | ~ObexHandler(); | 21 | ~ObexHandler(); |
21 | 22 | ||
22 | private slots: | 23 | private slots: |
23 | void doSend(const QString&,const QString& ); | 24 | void doSend(const QString&,const QString& ); |
24 | void doReceive(bool b); | 25 | void doReceive(RecType type, bool b); |
25 | void slotSent(); | 26 | void slotSent(); |
26 | 27 | ||
27 | private slots: // QCOP message | 28 | private slots: // QCOP message |
28 | void irdaMessage( const QCString&, const QByteArray& ); | 29 | void irdaMessage( const QCString&, const QByteArray& ); |
29 | 30 | ||
30 | private: | 31 | private: |
31 | SendWidget* m_sender; | 32 | SendWidget* m_sender; |
32 | Receiver* m_receiver; | 33 | Receiver* m_receiver[2]; //For IRDA and Bluetooth |
33 | bool m_wasRec : 1; | 34 | bool m_wasRec[2]; |
34 | 35 | RecType m_type; //receiver type (IRDA or Bluetooth) | |
35 | }; | 36 | }; |
36 | } | 37 | } |
37 | 38 | ||
38 | 39 | ||
39 | #endif | 40 | #endif |