summaryrefslogtreecommitdiff
path: root/core/obex/obex.h
Unidiff
Diffstat (limited to 'core/obex/obex.h') (more/less context) (show whitespace changes)
-rw-r--r--core/obex/obex.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/core/obex/obex.h b/core/obex/obex.h
index b948ce4..745f1c2 100644
--- a/core/obex/obex.h
+++ b/core/obex/obex.h
@@ -36,80 +36,76 @@
36#include <qobject.h> 36#include <qobject.h>
37#include "obexserver.h" 37#include "obexserver.h"
38 38
39namespace Opie {namespace Core {class OProcess;}} 39namespace Opie {namespace Core {class OProcess;}}
40class QCopChannel; 40class QCopChannel;
41namespace OpieObex { 41namespace OpieObex {
42 class Obex : public ObexBase { 42 class Obex : public ObexBase {
43 Q_OBJECT 43 Q_OBJECT
44 public: 44 public:
45 /** 45 /**
46 * Obex c'tor look 46 * Obex c'tor look
47 */ 47 */
48 Obex( QObject *parent, const char* name); 48 Obex( QObject *parent, const char* name);
49 /** 49 /**
50 * d'tor 50 * d'tor
51 */ 51 */
52 ~Obex(); 52 ~Obex();
53 53
54 /** 54 /**
55 * Starting listening to irda after enabled by the applet 55 * Starting listening to irda after enabled by the applet
56 * a signal gets emitted when received a file 56 * a signal gets emitted when received a file
57 */ 57 */
58 virtual void receive(); 58 virtual void receive();
59 virtual void send(const QString& filename, const QString& addr); 59 virtual void send(const QString& filename, const QString& addr);
60 virtual void setReceiveEnabled( bool = false ); 60 virtual void setReceiveEnabled( bool = false );
61 signals: 61 signals:
62 62
63 /** 63 /**
64 * a signal 64 * a signal
65 * @param path The path to the received file 65 * @param path The path to the received file
66 */ 66 */
67 void receivedFile( const QString& path); 67 void receivedFile( const QString& path);
68 /** 68 /**
69 * error signal if the program couldn't be started or the 69 * error signal if the program couldn't be started or the
70 * the connection timed out 70 * the connection timed out
71 */ 71 */
72 void error( int ); 72 void error( int );
73 /** 73 /**
74 * The current try to receive data 74 * The current try to receive data
75 */ 75 */
76 void currentTry(unsigned int); 76 void currentTry(unsigned int);
77 /** 77 /**
78 * signal sent The file got beamed to the remote location 78 * signal sent The file got beamed to the remote location
79 */ 79 */
80 void sent(bool); 80 void sent(bool);
81 void done(bool); 81 void done(bool);
82 82
83 private: 83 private:
84 uint m_count;
85 QString m_file;
86 QString m_outp;
87 Opie::Core::OProcess *m_send; 84 Opie::Core::OProcess *m_send;
88 ObexServer* m_rec; //The OBEX server 85 ObexServer* m_rec; //The OBEX server
89 bool m_receive : 1;
90 void shutDownReceive(); 86 void shutDownReceive();
91 87
92private slots: 88private slots:
93 89
94 /** 90 /**
95 * send over palm obex 91 * send over palm obex
96 */ 92 */
97 93
98 //void send(const QString&); 94 //void send(const QString&);
99 95
100 // the process exited 96 // the process exited
101 void slotExited(Opie::Core::OProcess* proc) ; 97 void slotExited(Opie::Core::OProcess* proc) ;
102 void slotStdOut(Opie::Core::OProcess*, char*, int); 98 void slotStdOut(Opie::Core::OProcess*, char*, int);
103 virtual void slotError(); 99 virtual void slotError();
104 100
105 private: 101 private:
106 void sendNow(); 102 void sendNow();
107 QString parseOut(); 103 QString parseOut();
108 void received(); 104 void received();
109 void sendEnd(); 105 void sendEnd();
110 106
111 }; 107 };
112}; 108};
113 109
114 110
115#endif 111#endif