summaryrefslogtreecommitdiff
path: root/core/obex/receiver.h
authorzecke <zecke>2003-02-16 15:49:02 (UTC)
committer zecke <zecke>2003-02-16 15:49:02 (UTC)
commit30a098530260176ac20d75ba6cb7abfb3d998c13 (patch) (side-by-side diff)
treeee5c08ca67fa00574414153921ab2de654c60421 /core/obex/receiver.h
parent7fab90d46144843d32e476ada8d0a5f40f50aa60 (diff)
downloadopie-30a098530260176ac20d75ba6cb7abfb3d998c13.zip
opie-30a098530260176ac20d75ba6cb7abfb3d998c13.tar.gz
opie-30a098530260176ac20d75ba6cb7abfb3d998c13.tar.bz2
disable snd in IrDaApplet it hangs on my machine..
Remove the hacky OBEX Implementation Add a more cleaned up more appealing (not yet working) version which will even be able to do OBEX over Bluetooth in the future -It handles receive better let's you choose what to do with custom files and created a DocLnk -Send lets you beam to multiple devices this needs the IrDa Applet to be present
Diffstat (limited to 'core/obex/receiver.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/obex/receiver.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/core/obex/receiver.h b/core/obex/receiver.h
new file mode 100644
index 0000000..5b20146
--- a/dev/null
+++ b/core/obex/receiver.h
@@ -0,0 +1,55 @@
+#ifndef OPIE_OBEX_RECEIVER_H
+#define OPIE_OBEX_RECEIVER_H
+
+#include <qobject.h>
+#include <qvbox.h>
+#include <qstring.h>
+
+class QLabel;
+class QTextView;
+namespace OpieObex {
+ class Obex;
+ class OtherHandler;
+ class Receiver : public QObject {
+ Q_OBJECT
+ public:
+ enum { Datebook , AddressBook, Other };
+ Receiver();
+ ~Receiver();
+
+ private:
+ void handleAddr(const QString& );
+ void handleDateTodo(const QString& );
+ void handleOther(const QString& );
+ int checkFile( const QString& file );
+ bool testDateTodo(const QString& file);
+ bool testAddressbook(const QString& file);
+
+ private slots:
+ void slotReceived( const QString& );
+
+ private:
+ Obex* m_obex;
+ };
+
+ class OtherHandler : public QVBox {
+ Q_OBJECT
+ public:
+ OtherHandler();
+ ~OtherHandler();
+
+ void handle( const QString& file );
+ private slots:
+ void accept();
+ void deny();
+ private:
+ QString targetName( const QString& file );
+ void copy( const QString& src, const QString& dest );
+ QLabel* m_na;
+ QTextView* m_view;
+ QString m_file;
+ };
+}
+
+
+#endif