-rw-r--r-- | core/obex/obexhandler.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/core/obex/obexhandler.h b/core/obex/obexhandler.h new file mode 100644 index 0000000..230c4f0 --- a/dev/null +++ b/core/obex/obexhandler.h @@ -0,0 +1,39 @@ +#ifndef OPIE_OBEX_HANDLER_H +#define OPIE_OBEX_HANDLER_H + +#include <qobject.h> +#include <qstring.h> + +namespace OpieObex { + /* + * The handler is responsible for handling receiving + * and sending + * It will connect to the IrDa QCOP channel and then + * wait for activation... + */ + class SendWidget; + class Receiver; + class ObexHandler : public QObject { + Q_OBJECT + public: + ObexHandler(); + ~ObexHandler(); + + private slots: + void doSend(const QString&,const QString& ); + void doReceive(bool b); + void slotSent(); + + private slots: // QCOP message + void irdaMessage( const QCString&, const QByteArray& ); + + private: + SendWidget* m_sender; + Receiver* m_receiver; + bool m_wasRec : 1; + + }; +} + + +#endif |