summaryrefslogtreecommitdiff
path: root/core/obex/obex.h
authormickeyl <mickeyl>2005-08-22 09:36:38 (UTC)
committer mickeyl <mickeyl>2005-08-22 09:36:38 (UTC)
commit7202ac536ac98e7e433984d98cb9236330b25cc8 (patch) (unidiff)
treec8b5d4e57dd4b9b302999d1f88a89c28e4ee0e5e /core/obex/obex.h
parent140e4dc44a29678de1ae8b2cef5b1d081993223e (diff)
downloadopie-7202ac536ac98e7e433984d98cb9236330b25cc8.zip
opie-7202ac536ac98e7e433984d98cb9236330b25cc8.tar.gz
opie-7202ac536ac98e7e433984d98cb9236330b25cc8.tar.bz2
Replace the existing, apparently non-working, OBEX Send form with a
completely new implementation. The new implementation supports selective send over both IrDA and Bluetooth, to selected receivers (which are discovered as the form pops up). The form also indicates transfer status as the transfers progress. There is a new QT Designer UI form file, integrated into the build. There are also two new source files for the form to supply the abstract methods (typical of QT2). Patch courtesy Michael Haynie - thanks!
Diffstat (limited to 'core/obex/obex.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/obex/obex.h84
1 files changed, 0 insertions, 84 deletions
diff --git a/core/obex/obex.h b/core/obex/obex.h
deleted file mode 100644
index 5993976..0000000
--- a/core/obex/obex.h
+++ b/dev/null
@@ -1,84 +0,0 @@
1
2
3#ifndef OpieObex_H
4#define OpieObex_H
5
6#include <qobject.h>
7
8namespace Opie {namespace Core {class OProcess;}}
9class QCopChannel;
10namespace OpieObex {
11 class Obex : public QObject {
12 Q_OBJECT
13 public:
14 /**
15 * Obex c'tor look
16 */
17 Obex( QObject *parent, const char* name);
18 /**
19 * d'tor
20 */
21 ~Obex();
22
23 /**
24 * Starting listening to irda after enabled by the applet
25 * a signal gets emitted when received a file
26 */
27 void receive();
28 void send( const QString& );
29 void setReceiveEnabled( bool = false );
30 signals:
31
32 /**
33 * a signal
34 * @param path The path to the received file
35 */
36 void receivedFile( const QString& path);
37 /**
38 * error signal if the program couldn't be started or the
39 * the connection timed out
40 */
41 void error( int );
42 /**
43 * The current try to receive data
44 */
45 void currentTry(unsigned int);
46 /**
47 * signal sent The file got beamed to the remote location
48 */
49 void sent(bool);
50 void done(bool);
51
52 private:
53 uint m_count;
54 QString m_file;
55 QString m_outp;
56 Opie::Core::OProcess *m_send;
57 Opie::Core::OProcess *m_rec;
58 bool m_receive : 1;
59 void shutDownReceive();
60
61private slots:
62
63 /**
64 * send over palm obex
65 */
66
67 //void send(const QString&);
68
69 // the process exited
70 void slotExited(Opie::Core::OProcess* proc) ;
71 void slotStdOut(Opie::Core::OProcess*, char*, int);
72 void slotError();
73
74 private:
75 void sendNow();
76 QString parseOut();
77 void received();
78 void sendEnd();
79
80 };
81};
82
83
84#endif