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) (unidiff)
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 @@
1#ifndef OPIE_OBEX_RECEIVER_H
2#define OPIE_OBEX_RECEIVER_H
3
4#include <qobject.h>
5#include <qvbox.h>
6#include <qstring.h>
7
8class QLabel;
9class QTextView;
10namespace OpieObex {
11 class Obex;
12 class OtherHandler;
13 class Receiver : public QObject {
14 Q_OBJECT
15 public:
16 enum { Datebook , AddressBook, Other };
17 Receiver();
18 ~Receiver();
19
20 private:
21 void handleAddr(const QString& );
22 void handleDateTodo(const QString& );
23 void handleOther(const QString& );
24 int checkFile( const QString& file );
25 bool testDateTodo(const QString& file);
26 bool testAddressbook(const QString& file);
27
28 private slots:
29 void slotReceived( const QString& );
30
31 private:
32 Obex* m_obex;
33 };
34
35 class OtherHandler : public QVBox {
36 Q_OBJECT
37 public:
38 OtherHandler();
39 ~OtherHandler();
40
41 void handle( const QString& file );
42 private slots:
43 void accept();
44 void deny();
45 private:
46 QString targetName( const QString& file );
47 void copy( const QString& src, const QString& dest );
48 QLabel* m_na;
49 QTextView* m_view;
50 QString m_file;
51 };
52}
53
54
55#endif